Changeset 4729
- Timestamp:
- Jan 23, 2010, 11:16:22 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 3 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 -
extensions/LLGBO2/maintain.inc.php
r4603 r4729 71 71 or (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',') != 5) 72 72 or (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',') != 32) 73 or (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',') != 2 1))73 or (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',') != 20)) 74 74 { plugin_install(); } 75 75 } -
extensions/LLGBO2/template/picture_content.tpl
r4713 r4729 18 18 {/if} 19 19 <div id="gbo" {$FRAME_SIZE}> 20 <div id="theImgContainer">21 20 {$FRAME_BEGIN} 22 21 {if isset($high) } … … 26 25 {/if} 27 26 {/if} 28 <img src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" 27 <img src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED} 29 28 {if isset($COMMENT_IMG)} 30 29 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 31 30 {/if}> 32 31 {$FRAME_END} 33 </div>34 32 </div> 35 33 {/if}
Note: See TracChangeset
for help on using the changeset viewer.