'YOUTUBE', 'auto_activate' => false, 'requires_pair' => false, 'load_function' => '\data_youtube', 'title' => 'Youtube', 'help_page' => 'DataPluginYoutube', 'description' => KernelTools::tra( "This plugin allows you to simply and safely insert a YouTube video in a page." ), 'help_function' => '\data_youtube_help', 'syntax' => "{youtube id=}", 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAYOUTUBE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAYOUTUBE ); /** * data_youtube_help * * @access public * @return string HTML help in a table */ function data_youtube_help() { return '
| ' . KernelTools::tra( "Key" ) . ' | ' .'' . KernelTools::tra( "Type" ) . ' | ' .'' . KernelTools::tra( "Comments" ) . ' | ' .'
|---|---|---|
| id | ' .'' . KernelTools::tra( "string" ) . ' ' . KernelTools::tra("(required)") . ' | '
.'' . KernelTools::tra( "ID nr of the Youtube video. You can get this from the URL of the Youtube video you are watching e.g.: pShf2VuAu_Q" ) . ' | ' .'
| width | ' .'' . KernelTools::tra( "numeric" ) . ' ' . KernelTools::tra( "(optional)" ) . ' | '
.'' . KernelTools::tra( "Alternate width of the youtube box in pixels." ) . ' | ' .'
| height | ' .'' . KernelTools::tra( "numeric" ) . ' ' . KernelTools::tra("(optional)") . ' | '
.'' . KernelTools::tra( "Alternate height of the youtube box in pixels." ) . ' | ' .'
| lang | ' .'' . KernelTools::tra( "string" ) . ' ' . KernelTools::tra("(optional)") . ' | '
.'' . KernelTools::tra( "Alternate language of the Youtube interface, default is 'en'" ).' | ' .'
| format | ' .'' . KernelTools::tra( "numeric" ) . ' ' . KernelTools::tra("(optional)") . ' | '
.'' . KernelTools::tra( "Fetch different video format instead of the default one. Format 6 and Format 18 seem to work quite well for some videos. Please note that this might be buggy and is not available for all videos." ).' | ' .'