Changeset 8867


Ignore:
Timestamp:
01/24/11 19:13:30 (9 years ago)
Author:
gbo
Message:

compliance Piwigo 2.2rc1

File:
1 edited

Legend:

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

    r7937 r8867  
    22/* 
    33Plugin Name: Look_like_gbo2  
    4 Version:  2.1.i 
     4Version:  2.2.a 
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 
    6 Author: Ex-Ftb  
     6Author: GBo  
    77Author URI: http://www.photos.bouteyron.fr/ 
    88Description:  Display thumbnail under button. Add navigation on picture look like GBo Gallery  
    99Add a border around  picture ...... 
    10   2.1.a compliant 2.1 Piwigo 
    11   2.1.b fix minor bugs in administration  
    12   2.1.c compatibility with simple  
    13   2.1.d bug Css with IE6 & IE8  
    14   2.1.e fix bug   $conf['question_mark_in_urls']  
    15   2.1.f fix bug   with metatda and video  
    16   2.1.g fix bug   with HD Shadowbow on first  and last picture and navigation on picture   
    17   2.1.h language De, Sk, Lv and compliance GMaps 
    18   2.1.i Improve compliance with gally   */ 
     10  2.2.a compliant 2.2 Piwigo 
     11*/ 
    1912if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    2013/* création d'une instance de la classe   */ 
     
    2215global $conf;  
    2316 
    24 define ('LLGBO_INFO_VERSION','2.1.i'); 
     17define ('LLGBO_INFO_VERSION','2.2.a'); 
    2518if (!defined('LLGBO_PATH')) 
    2619{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} 
     
    214207/////////////////////////////////////////////////////////////////        
    215208if ($ThePicture['is_picture'] <> 1 )    {  return $content;  ; }         
    216  
     209//echo  strpos(strtoupper($tpl_name) , 'GALLY'); 
     210 
     211//if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) ) 
     212//      {       return $content;  ; }   // Not compliant with Gally 
    217213/////////////////////////////////////////////////////////////////        
    218214If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  ) 
     
    282278                          $template->append('head_elements', "\n".'<script type="text/javascript">'."\n".'window.onload = function() {'."\n".'Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")['.$nbarea.']);}'."\n".'</script>'  );}  
    283279           else 
    284            {$template->assign('HDHREF','title="'.$lang['Click on the picture to see it in high definition'].'" href="javascript:phpWGOpenWindow('."'".$ThePicture['high_url']."','".$uuid."','"."scrollbars=yes,toolbar=no,status=no,resizable=yes'".')"');}                
     280           {$template->assign('HDHREF','title="'.$lang['Click on the photo to see it in high definition'].'" href="javascript:phpWGOpenWindow('."'".$ThePicture['high_url']."','".$uuid."','"."scrollbars=yes,toolbar=no,status=no,resizable=yes'".')"');}                  
    285281                         
    286282}  
     
    321317{$template->clear_assign('FRAME_BEGIN') ;} 
    322318 
    323 //-------- compliance gally --------------------------------- 
    324 //echo  strpos(strtoupper($tpl_name) , 'GALLY'); 
    325  
    326  if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) ) 
    327  {  
    328         $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{position:static;}</STYLE>');   
    329  }        
    330 // ------------------------------------------------  
    331319$template->set_filenames( array('default_content'=> dirname(__FILE__).'/template/picture_content.tpl') ); 
    332320return $template->parse( 'default_content', true); 
Note: See TracChangeset for help on using the changeset viewer.