'img', 'auto_activate' => TRUE, 'requires_pair' => FALSE, 'load_function' => 'data_img', 'title' => 'Image', 'help_page' => 'DataPluginImg', 'description' => tra( "Allows you to insert an image into your page with little effort and a multitude of styling options." ), 'help_function' => 'data_img_help', 'syntax' => "{img src=http://www.google.at/logos/olympics06_ski_jump.gif}", 'path' => LIBERTY_PKG_PATH.'plugins/data.img.php', 'security' => 'registered', 'plugin_type' => DATA_PLUGIN, 'biticon' => '{biticon iclass="quicktag icon" ipackage=quicktags iname=image iexplain="Image"}', 'taginsert' => '{img src= width= height= align= description= link=}' ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAIMG, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAIMG ); function data_img_help() { return '
| '.tra( "Key" ).' | ' .''.tra( "Type" ).' | ' .''.tra( "Comments" ).' | ' .'
|---|---|---|
| src | ' .''.tra( "string").' '.tra("(required)").' | '
.''.tra( "Specify where the path to the image.").' | ' .'
| link | ' .''.tra( "string").' '.tra("(optional)").' | '
.''.tra( "If you want your image to link to a web address, use link='link/to/page'." ).' | ' .'
| '.tra( "styling" ).' | ' .''.tra( "string").' '.tra("(optional)").' | '
.''.tra( "Multiple styling options available: padding, margin, background, border, text-align, color, font, font-size, font-weight, font-family, align. Please view CSS guidelines on what values these settings take.").' | ' .'