Changeset 7937


Ignore:
Timestamp:
Nov 29, 2010, 10:01:20 PM (13 years ago)
Author:
gbo
Message:

Improve compliance with themes Gally

File:
1 edited

Legend:

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

    r7891 r7937  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.1.h
     4Version:  2.1.i
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: Ex-Ftb 
     
    1515  2.1.f fix bug   with metatda and video
    1616  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 */
     17  2.1.h language De, Sk, Lv and compliance GMaps
     18  2.1.i Improve compliance with gally   */
    1819if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1920/* création d'une instance de la classe   */
     
    2122global $conf;
    2223
    23 define ('LLGBO_INFO_VERSION','2.1.h');
     24define ('LLGBO_INFO_VERSION','2.1.i');
    2425if (!defined('LLGBO_PATH'))
    2526{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
     
    213214/////////////////////////////////////////////////////////////////       
    214215if ($ThePicture['is_picture'] <> 1 )    {  return $content;  ; }       
    215 //echo  strpos(strtoupper($tpl_name) , 'GALLY');
    216 
    217 //if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) )
    218 //      {       return $content;  ; }   // Not compliant with Gally
     216
    219217/////////////////////////////////////////////////////////////////       
    220218If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  )
     
    323321{$template->clear_assign('FRAME_BEGIN') ;}
    324322
     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// ------------------------------------------------
    325331$template->set_filenames( array('default_content'=> dirname(__FILE__).'/template/picture_content.tpl') );
    326332return $template->parse( 'default_content', true);
Note: See TracChangeset for help on using the changeset viewer.