tra('Vue'), 'documentation' => 'PluginVue', 'description' => tra('Add a Vue.js component'), 'prefs' => [ 'wikiplugin_vue' ], 'body' => tra('HTML'), 'validate' => 'all', 'filter' => 'none', 'iconname' => 'vuejs', 'introduced' => 21, 'format' => 'html', 'params' => [ 'app' => [ 'required' => false, 'name' => tra('Create App'), 'description' => tra('Make the base App object and initialise Vue.js'), 'since' => '21.0', 'filter' => 'alpha', 'options' => [ ['text' => '', 'value' => ''], ['text' => tra('Yes'), 'value' => 'y'], ['text' => tra('No'), 'value' => 'n'], ], 'default' => '', 'advanced' => true, ], 'name' => [ 'required' => false, 'name' => tra('Name'), 'description' => tra('Identifier of the component.'), 'since' => '21.0', 'default' => '', ], ] ]; } function wikiplugin_vue($data, $params) { global $prefs; if ($prefs['vuejs_enable'] === 'n') { Feedback::error(tr('Vue.js is not enabled.')); return ''; } $smarty = TikiLib::lib('smarty'); $smarty->loadPlugin('smarty_block_vue'); $repeat = false; $ret = smarty_block_vue($params, $data, $smarty, $repeat); return $ret; }