Changeset 4869 for extensions


Ignore:
Timestamp:
Feb 10, 2010, 8:28:43 PM (15 years ago)
Author:
EXFTB
Message:

Compatible extended description

File:
1 edited

Legend:

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

    r4729 r4869  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.0.M
     4Version:  2.0.O
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: Ex-Ftb 
     
    2020  /* 2.0.M       -  fix bug on image alt  attribute
    2121                - 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  */
    2224if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    2325/* création d'une instance de la classe   */
     
    2527global $conf;
    2628
    27 define ('LLGBO_INFO_VERSION','2.0.M');
     29define ('LLGBO_INFO_VERSION','2.0.O');
    2830if (!defined('LLGBO_PATH'))
    2931{define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');}
     
    247249           'SRC_IMG' => $ThePicture['image_url'],
    248250           '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'],           
    251252           'ALT_IMG' =>  $alt ,
    252253       'MAP_TO_USED' =>   $usemap         
     
    263264         { $template->assign('SHOW_PICTURE_NAME_ON_TITLE', false);     
    264265                $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');
     270if (!isset($comment) )
     271                {$template->assign( 'COMMENT_IMG' , $ThePicture['comment']);}
    265272//----------------------------------------------------   
    266273/*              HTML  frame                          */
Note: See TracChangeset for help on using the changeset viewer.