'YOUTUBE', 'auto_activate' => FALSE, 'requires_pair' => FALSE, 'load_function' => 'data_youtube', 'title' => 'Youtube', 'help_page' => 'DataPluginYoutube', 'description' => 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 HTML help in a table */ function data_youtube_help() { return '
| ' . tra( "Key" ) . ' | ' .'' . tra( "Type" ) . ' | ' .'' . tra( "Comments" ) . ' | ' .'
|---|---|---|
| id | ' .'' . tra( "string" ) . ' ' . tra("(required)") . ' | '
.'' . 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 | ' .'' . tra( "numeric" ) . ' ' . tra( "(optional)" ) . ' | '
.'' . tra( "Alternate width of the youtube box in pixels." ) . ' | ' .'
| height | ' .'' . tra( "numeric" ) . ' ' . tra("(optional)") . ' | '
.'' . tra( "Alternate height of the youtube box in pixels." ) . ' | ' .'
| lang | ' .'' . tra( "string" ) . ' ' . tra("(optional)") . ' | '
.'' . tra( "Alternate language of the Youtube interface, default is 'en'" ).' | ' .'
| format | ' .'' . tra( "numeric" ) . ' ' . tra("(optional)") . ' | '
.'' . 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." ).' | ' .'