Changeset 4869 for extensions
- Timestamp:
- Feb 10, 2010, 8:28:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r4729 r4869 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.0. M4 Version: 2.0.O 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: Ex-Ftb … … 20 20 /* 2.0.M - fix bug on image alt attribute 21 21 - fix bug on active -> erase the paramater when it's not mandatory. */ 22 /* 2.0.N - fix bug no navigation on picture, whit out frame */ 23 /* 2.0.O - compliant with extended description */ 22 24 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 23 25 /* création d'une instance de la classe */ … … 25 27 global $conf; 26 28 27 define ('LLGBO_INFO_VERSION','2.0. M');29 define ('LLGBO_INFO_VERSION','2.0.O'); 28 30 if (!defined('LLGBO_PATH')) 29 31 {define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');} … … 247 249 'SRC_IMG' => $ThePicture['image_url'], 248 250 'WIDTH_IMG' => $ThePicture['scaled_width'], 249 'HEIGHT_IMG' => $ThePicture['scaled_height'], 250 'COMMENT_IMG' => $conf['allow_html_descriptions'] ? $ThePicture['comment'] : strip_tags($ThePicture['comment']), 251 'HEIGHT_IMG' => $ThePicture['scaled_height'], 251 252 'ALT_IMG' => $alt , 252 253 'MAP_TO_USED' => $usemap … … 263 264 { $template->assign('SHOW_PICTURE_NAME_ON_TITLE', false); 264 265 $template->assign('TITLE_FRAME_COLOR', $conf['LLGBO_FRAME'][0]); } 266 267 // compatibility with extended description 268 $ThePicture = $template->get_template_vars('current'); 269 $comment = $template->get_template_vars('COMMENT_IMG'); 270 if (!isset($comment) ) 271 {$template->assign( 'COMMENT_IMG' , $ThePicture['comment']);} 265 272 //---------------------------------------------------- 266 273 /* HTML frame */
Note: See TracChangeset
for help on using the changeset viewer.