Changeset 8867
- Timestamp:
- Jan 24, 2011, 7:13:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r7937 r8867 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2. 1.i4 Version: 2.2.a 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 Author: Ex-Ftb6 Author: GBo 7 7 Author URI: http://www.photos.bouteyron.fr/ 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add 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 */ 19 12 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 20 13 /* création d'une instance de la classe */ … … 22 15 global $conf; 23 16 24 define ('LLGBO_INFO_VERSION','2. 1.i');17 define ('LLGBO_INFO_VERSION','2.2.a'); 25 18 if (!defined('LLGBO_PATH')) 26 19 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 214 207 ///////////////////////////////////////////////////////////////// 215 208 if ($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 217 213 ///////////////////////////////////////////////////////////////// 218 214 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) … … 282 278 $template->append('head_elements', "\n".'<script type="text/javascript">'."\n".'window.onload = function() {'."\n".'Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")['.$nbarea.']);}'."\n".'</script>' );} 283 279 else 284 {$template->assign('HDHREF','title="'.$lang['Click on the p ictureto 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'".')"');} 285 281 286 282 } … … 321 317 {$template->clear_assign('FRAME_BEGIN') ;} 322 318 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 // ------------------------------------------------331 319 $template->set_filenames( array('default_content'=> dirname(__FILE__).'/template/picture_content.tpl') ); 332 320 return $template->parse( 'default_content', true);
Note: See TracChangeset
for help on using the changeset viewer.