Changeset 4729 for extensions/LLGBO2/main.inc.php
- Timestamp:
- Jan 23, 2010, 11:16:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r4728 r4729 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.0. L4 Version: 2.0.M 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: Ex-Ftb … … 17 17 /* 2.0.J add sample display and fix bug in admin with chrome */ 18 18 /* 2.0.K fix warning du to language file */ 19 /* 2.0.l Avoid problem with Gally */ 19 /* 2.0.L Avoid problem with Gally */ 20 /* 2.0.M - fix bug on image alt attribute 21 - fix bug on active -> erase the paramater when it's not mandatory. */ 20 22 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 21 23 /* création d'une instance de la classe */ … … 23 25 global $conf; 24 26 25 define ('LLGBO_INFO_VERSION','2.0. L');27 define ('LLGBO_INFO_VERSION','2.0.M'); 26 28 if (!defined('LLGBO_PATH')) 27 29 {define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');} … … 31 33 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']); 32 34 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']); 35 33 36 ///////////////////////////////////////////////////// 34 37 /* PLUGIN CLASS */ … … 198 201 {$linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; 199 202 $template->append('head_elements',$linkcss.'css/gbolook.css">'); 200 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;} 201 </STYLE>'); 202 } 203 if ( strtoupper($tpl_name) == 'SIMPLE') { 204 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;} </STYLE>');} 205 } 206 203 207 //---------------------------------------------------- 204 208 //------- Usemap values ------------- 205 209 //---------------------------------------------------- 206 210 If ($conf['LLGBO_SETTINGS'] [3] == 'true' ) // usemap 207 { $usemap = ' " usemap="#prevnext' ;211 { $usemap = ' usemap="#prevnext"' ; 208 212 $imgw = $ThePicture['scaled_width']; 209 213 $imgh = $ThePicture['scaled_height']; … … 230 234 //---------------------------------------------------- 231 235 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 232 /* 236 /* 233 237 $related_cats = $template->get_template_vars('related_categories'); 234 238 if (isset($related_cats)) … … 237 241 $related_cat = str_replace($conf['level_separator'],"-",$related_cat); 238 242 } 239 $alt= $related_cat.' : '.$alt;240 */ 243 $alt= $related_cat.' '.$alt; 244 */ 241 245 //----------------------------------------------------------------- 242 246 $template->assign( array( … … 245 249 'HEIGHT_IMG' => $ThePicture['scaled_height'], 246 250 'COMMENT_IMG' => $conf['allow_html_descriptions'] ? $ThePicture['comment'] : strip_tags($ThePicture['comment']), 247 'ALT_IMG' => $alt.$usemap 251 'ALT_IMG' => $alt , 252 'MAP_TO_USED' => $usemap 248 253 )); 249 254
Note: See TracChangeset
for help on using the changeset viewer.