Changeset 12631


Ignore:
Timestamp:
Nov 15, 2011, 8:48:22 PM (9 years ago)
Author:
gbo
Message:

version 2.3.b remove modification on alt_img attribut

Location:
extensions/LLGBO2
Files:
2 edited

Legend:

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

    r12536 r12631  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.3.a
     4Version:  2.3.b
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    1313  2.2.d fix bug with $high and openwindow
    1414  2.3.a  new translation
     15  2.3.b  No modification on alt_img
    1516 */
    1617if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    1920global $conf;
    2021
    21 define ('LLGBO_INFO_VERSION','2.3.a');
     22define ('LLGBO_INFO_VERSION','2.3.b');
    2223if (!defined('LLGBO_PATH'))
    2324{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
     
    246247}  // end usemap
    247248
    248 //----------------------------------------------------   
    249 //                  improve alt
    250 //----------------------------------------------------   
    251 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']);
    252 
    253 /*
    254 $related_cats =   $template->get_template_vars('related_categories');
    255 if (isset($related_cats))
    256         {$related_cat = strip_tags($related_cats[0]);
    257         $related_cat = str_replace(' '," ",$related_cat);
    258         $related_cat = str_replace($conf['level_separator'],"-",$related_cat);
    259         }
    260  $alt = $alt.' - ['.$related_cat.']'; */
    261249//-----------------------------------------------------------------
    262250$template->assign( array(
     
    264252           'WIDTH_IMG' => $ThePicture['scaled_width'],
    265253           'HEIGHT_IMG' => $ThePicture['scaled_height'],           
    266            'ALT_IMG' =>  $alt ,
     254           'ALT_IMG' =>  $ThePicture['file'],
    267255       'MAP_TO_USED' =>   $usemap         
    268256           ));
  • extensions/LLGBO2/template/picture_content.tpl

    r10946 r12631  
    44                <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
    55        {/if}
    6                 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG|@strip_tags:false}"    {$MAP_TO_USED}
    7                                 title="{$ALT_IMG|@strip_tags:false}" >
     6                <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG|@strip_tags:false}"    {$MAP_TO_USED} id="theMainImage"
     7                        {if isset($COMMENT_IMG)}
     8                                title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
     9                        {/if}
     10                        >
    811        {if isset($high) and !isset($USEMAP) }
    912         </a>
     
    3740                                <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
    3841                        {/if}
    39                    <img    src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED}
     42                   <img    src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED} id="theMainImage"
    4043                       
    4144                        {if isset($COMMENT_IMG)}
Note: See TracChangeset for help on using the changeset viewer.