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

fix bug on activation (reset parameter)

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.