Ignore:
Timestamp:
May 19, 2010, 6:53:38 PM (14 years ago)
Author:
EXFTB
Message:

daily correction for 2.1

File:
1 edited

Legend:

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

    r6234 r6241  
    182182$tpl_name = "";
    183183$currenttheme = $template->get_template_vars('themes');
    184 $tpl_id =  $currenttheme[0]['id'];
     184$tpl_name =  $currenttheme[1]['id'];
    185185/////////////////////////////////////////////
    186186// AN OTHER PLUGIN IS WORKING -> GO BACK
     
    191191/////////////////////////////////////////////////////////////////       
    192192if ($ThePicture['is_picture'] <> 1 )    {  return $content;  ; }       
    193 //echo  $tpl_id;
    194 
    195 $template->assign('GALLY','');
    196 if (( strpos(strtoupper($tpl_id) , 'GALLY') === true) )
    197  {      $template->assign('GALLY','ok');
    198                                         return $content;  ; }   // Not compliant with Gally
     193//echo  strpos(strtoupper($tpl_name) , 'GALLY');
     194
     195if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) )
     196 {                                              return $content;  ; }   // Not compliant with Gally
    199197/////////////////////////////////////////////////////////////////       
    200198If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  )
     
    233231$alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']);
    234232
    235 /* */
     233/*
    236234$related_cats =   $template->get_template_vars('related_categories');
    237235if (isset($related_cats))
     
    240238        $related_cat = str_replace($conf['level_separator'],"-",$related_cat);
    241239        }
    242  $alt = $alt.' - ['.$related_cat.']';
     240 $alt = $alt.' - ['.$related_cat.']';*/
    243241//-----------------------------------------------------------------
    244242$template->assign( array(
     
    256254                                'U_HIGH' => $ThePicture['high_url'] ,
    257255                                'UUID'   => $uuid,      ));
    258                 // compliance HD LIGHTBOX       
     256                // compliance HD Shadowbox     
    259257                If ($conf['LLGBO_SETTINGS'] [9]  == 'true' )
    260258                        {$template->assign('HDHREF', ' href="'.$ThePicture['high_url'].'"'.' title= " HD --> '.$ThePicture['name'].'"');
    261                           $template->append('head_elements', "/n".'<script type="text/javascript">
     259                          $template->append('head_elements', "\n".'<script type="text/javascript">
    262260                                window.onload = function() {
    263261                        Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")[3]);
Note: See TracChangeset for help on using the changeset viewer.