Changeset 4729 for extensions/LLGBO2


Ignore:
Timestamp:
Jan 23, 2010, 11:16:22 PM (14 years ago)
Author:
EXFTB
Message:

fix bug on activation (reset parameter)

Location:
extensions/LLGBO2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/main.inc.php

    r4728 r4729  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.0.L
     4Version:  2.0.M
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: Ex-Ftb 
     
    1717 /* 2.0.J  add sample display and fix bug in admin with chrome */
    1818 /* 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. */
    2022if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    2123/* création d'une instance de la classe   */
     
    2325global $conf;
    2426
    25 define ('LLGBO_INFO_VERSION','2.0.L');
     27define ('LLGBO_INFO_VERSION','2.0.M');
    2628if (!defined('LLGBO_PATH'))
    2729{define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');}
     
    3133 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']);
    3234 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']);   
     35 
    3336/////////////////////////////////////////////////////
    3437/*  PLUGIN CLASS  */
     
    198201                        {$linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH;
    199202                        $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                           }
     203if ( strtoupper($tpl_name) == 'SIMPLE') {                       
     204                         $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;} </STYLE>');}
     205                         }
     206                         
    203207//----------------------------------------------------   
    204208//-------      Usemap   values         -------------     
    205209//----------------------------------------------------   
    206210If ($conf['LLGBO_SETTINGS'] [3]  == 'true' )  // usemap
    207  {      $usemap = '" usemap="#prevnext' ;
     211 {      $usemap = '  usemap="#prevnext"' ;
    208212        $imgw = $ThePicture['scaled_width'];
    209213                $imgh = $ThePicture['scaled_height'];   
     
    230234//----------------------------------------------------   
    231235$alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']);
    232 /*
     236/* 
    233237$related_cats =   $template->get_template_vars('related_categories');
    234238if (isset($related_cats))
     
    237241        $related_cat = str_replace($conf['level_separator'],"-",$related_cat);
    238242        }
    239 $alt= $related_cat.' : '.$alt;
    240 */
     243$alt= $related_cat.' '.$alt;
     244*/ 
    241245//-----------------------------------------------------------------
    242246$template->assign( array(
     
    245249           'HEIGHT_IMG' => $ThePicture['scaled_height'],
    246250           '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         
    248253           ));
    249254
  • extensions/LLGBO2/maintain.inc.php

    r4603 r4729  
    7171 or  (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',')  != 5)
    7272 or  (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',')  != 32)
    73  or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 21)) 
     73 or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 20)) 
    7474        {         plugin_install(); }
    7575}
  • extensions/LLGBO2/template/picture_content.tpl

    r4713 r4729  
    1818        {/if}
    1919        <div  id="gbo" {$FRAME_SIZE}>
    20           <div id="theImgContainer">
    2120        {$FRAME_BEGIN}
    2221                        {if isset($high) }
     
    2625                                {/if}
    2726                        {/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}
    2928                        {if isset($COMMENT_IMG)}
    3029                                title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
    3130                        {/if}>
    3231        {$FRAME_END}
    33         </div>
    3432</div>
    3533{/if}
Note: See TracChangeset for help on using the changeset viewer.