Changeset 15076


Ignore:
Timestamp:
May 17, 2012, 8:38:07 PM (12 years ago)
Author:
gbo
Message:

2.4.B Compliance with Theme Stripped and plugin Piwishak

Location:
extensions/LLGBO2
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/llgbo_admin.php

    r14421 r15076  
    330330                if (!isset($_POST['llgbo_header_favorites'])) {$_POST['llgbo_header_favorites'] = 'true';}
    331331                if (!isset($_POST['llgbo_header_recent_cats'])) {$_POST['llgbo_header_recent_cats'] = 'true';}         
    332                        
     332                if (!isset($_POST['llgbo_header_thePiwiShackControllerPage'])) {$_POST['llgbo_header_thePiwiShackControllerPage'] = 'true';}    
    333333                 
    334334                 $param_llgbo_header = array(
     
    343343                                        $_POST['llgbo_header_notification'], $_POST['llgbo_header_register'],
    344344                                        $_POST['llgbo_header_identification'], $_POST['llgbo_header_favorites'],
    345                                         $_POST['llgbo_header_recent_cats']);
     345                                        $_POST['llgbo_header_recent_cats'],  $_POST['llgbo_header_thePiwiShackControllerPage']);
    346346                $llgbo_newheader_value = implode ("," , $param_llgbo_header);
    347347               
     
    380380 if (isset($conf['LLGBO_HEADER'][19])) {$template->assign(array( 'LLGBO_HEADER_FAVORITES' => $conf['LLGBO_HEADER'][19]));}
    381381 if (isset($conf['LLGBO_HEADER'][20])) {$template->assign(array( 'LLGBO_HEADER_RECENT_CATS' => $conf['LLGBO_HEADER'][20]));}
     382 if (isset($conf['LLGBO_HEADER'][21])) {$template->assign(array( 'LLGBO_HEADER_THEPIWISHACKCONTROLLERPAGE' => $conf['LLGBO_HEADER'][21]));}
    382383
    383384 }
  • extensions/LLGBO2/admin/llgbo_adminheader.tpl

    r10453 r15076  
    6767                <td class="llgboinput"> {html_radios name='llgbo_header_about' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER_ABOUT}</td>
    6868         </tr> 
     69          <tr>
     70                <td class="llgbolabel">{'llgbo_header_thePiwiShackControllerPage'|@translate}</td>
     71                <td class="llgboinput"> {html_radios name='llgbo_header_thePiwiShackControllerPage' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER_THEPIWISHACKCONTROLLERPAGE}</td>
     72         </tr> 
     73         
     74
    6975    <tr><td colspan="2"><br></td></tr>
    7076        <tr>
  • extensions/LLGBO2/defaultvalues.php

    r6234 r15076  
    55$ttvalues = "150,2,#fff,#000,#c92,#dadada";
    66$frvalues = "#16195f,#ffffff,3,#040404,1,#ffffff,7,#ffffff,1,#fdfdfd,1,#fcfcfc,1,#fafafa,1,#eaeaea,1,#d3d3d3,1,#bababa,1,#9f9f9f,1,#858585,1,#777777,1,#646464,1,#575757,1,#474747,1";
    7 $headvalues = "true,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true";
     7$headvalues = "true,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true";
    88
    99?>
  • extensions/LLGBO2/include/manage_header.php

    r14421 r15076  
    2727                if ((strpos( $input,'favorites') == true ) and ($conf['LLGBO_HEADER'][19] == 'false')) {$no_header = true;}
    2828                if ((strpos( $input,'recent_cats') == true ) and ($conf['LLGBO_HEADER'][20] == 'false')) {$no_header = true;;}
     29                if ((strpos( $input,'thePiwiShackControllerPage') == true ) and ($conf['LLGBO_HEADER'][21] == 'false')) {$no_header = true;;}
    2930         
    3031        }
  • extensions/LLGBO2/include/manage_picture_content.php

    r14421 r15076  
    22$prev = $template->get_template_vars('previous');
    33$next  = $template->get_template_vars('next');
     4$current  = $template->get_template_vars('current');
     5$themeconf = $template->get_template_vars('themeconf');
    46//print_r($next);
    57$swtimg =   '||<img src=';     
     
    810//----------------------------------------------------   
    911If ($conf['LLGBO_SETTINGS'][1]  == 'true' )//   tooltip 
    10  if (isset($prev)){$template->append('previous',  array('TITLE' =>  $prev['TITLE'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);}
    11         if (isset($next)){$template->append('next',  array('TITLE' =>  $next['TITLE'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);}
     12if (isset($prev)){$template->append('previous',  array('TITLE' =>  $prev['TITLE'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);}
     13   if (isset($next)){$template->append('next',  array('TITLE' =>  $next['TITLE'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);}
    1214        $template->append('llgbo', array('tooltipCSS'  => $sweetcss), true);
    1315        }       
     
    1719//----------------------------------------------------   
    1820If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) //Frame
    19         {       $template->set_prefilter('default_content', 'LLGBO_prefilter_Frame');
     21        {       
     22        $template->set_prefilter('default_content', 'LLGBO_prefilter_Frame');
    2023        // selected picture Size                       
    2124        $deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE);
     
    3639                                $lastbrdpx = $bordpx;}
    3740                }
     41        $csstheme = 'default';
     42        $themeconf = $template->get_template_vars('themeconf');
     43         if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) )
     44                                                {  $csstheme = 'stripped';}
    3845                $frame_width = $frame_width + ( 2* $lastbrdpx);                         
    3946                $frame_height = $frame_height + ( 2* $lastbrdpx);
     
    4350                         'FRAME_BEGIN' => $frame_begin,
    4451                          'FRAME_END' => $frame_end,
    45                           'GBOCSS' => $gbolook ), true);
     52                          'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$csstheme.".css" ), true);
    4653
    4754                         
    48         If ($conf['LLGBO_SETTINGS'] [5]  == 'true' )  /* title on frame */
     55        If (($conf['LLGBO_SETTINGS'] [5]  == 'true' )  /* title on frame */
     56        and ($conf['LLGBO_SETTINGS'] [0]  == 'true' ) )// frame
    4957                 {  $template->append('llgbo', array(
    50                                  'TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0],), true);
     58                                 'TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0],
     59                                 'TITLE_FRAME' => $current['name'] ), true);
    5160                        $template->assign('SHOW_PICTURE_NAME_ON_TITLE' , false);
     61       
    5262                        }
    5363} // end frame
  • extensions/LLGBO2/js/jquery_llgboframeresize.js

    r14421 r15076  
    11// LLGBO frame resize
    2 jQuery(document).ready(function($){ 
    3         $("#theMainImage").load(function(){
    4                 var FrmHeight =   parseInt(this.height);
    5                 var FrmWidth =     parseInt(this.width);
    6                 var FrmLastBorder = 0;
    7                 var gboid = document.getElementById("gbo")
    8                 if (gboid)
    9                         {for ( i=1; i<32; i=i+2 )
    10                                 {var tgname = "llgboframe"+(i);
    11                                 var FrmS = document.getElementById(tgname);
    12                                         if (FrmS)       
    13                                                 {
    14                                                 FrmHeight = FrmHeight + (FrmLastBorder * 2);
    15                                                 FrmWidth= FrmWidth + (FrmLastBorder * 2);
    16                                                 FrmS.style.height = FrmHeight+"px";
    17                                                 FrmS.style.width  = FrmWidth+"px";
    18                                                 FrmLastBorder = parseInt(FrmS.style.borderWidth);
    19                                                 }
    20                                 }
    21                         FrmHeight = FrmHeight + (FrmLastBorder * 2);
    22                         FrmWidth = FrmWidth + (FrmLastBorder * 2);
    23                         gboid.style.height = FrmHeight+"px";
    24                         gboid.style.width  = FrmWidth+"px";
     2jQuery(document).ready(function(jQuery){
     3        jQuery("#theMainImage").load(function(){LlgboFr_Resize();});   
     4        jQuery(window).resize(function(){ LlgboFr_Resize(); });
     5});
     6var LlgboFr_Resize = function () {
     7        var MainImg = jQuery("img#theMainImage").get(0);       
     8        var nFrH = parseInt(MainImg.height);
     9        var nFrW = parseInt(MainImg.width);
     10        var FrLstBdr = 0, i = 0;
     11        var elGbo = jQuery("div#llgbo");
     12        if  (elGbo.get(0)) {
     13                for ( i=1; i<32; i=i+2 )
     14                        {var Fr = jQuery("div#llgboframe"+(i));
     15                         var frbdr = 0;
     16                         if (Fr.get(0)) {
     17                                frbdr = parseInt(Fr.css('border-left-width'));
     18                                nFrH = nFrH + FrLstBdr ;
     19                                nFrW = nFrW + FrLstBdr ;
     20                                Fr.css("height", (nFrH) + "px");
     21                                Fr.css("width", (nFrW) + "px");}
     22                                FrLstBdr = (frbdr * 2);
    2523                        }
    26         });     
    27 });
    28 
     24                        elGbo.css("width", (nFrW + FrLstBdr) + "px");
     25                        elGbo.css("height", (nFrH + FrLstBdr) + "px");
     26                }
     27}
  • extensions/LLGBO2/js/jquery_llgbotip.js

    r14421 r15076  
    1 jQuery(document).ready(function($){ 
     1jQuery(document).ready(function(jQuery){ 
    22        /* CONFIG */           
    33                // these 2 variables determine popup's gap from the cursor             
     
    1111       
    1212        /* END CONFIG */       
    13         $("#theMainImage").mouseover(function(){
     13        jQuery("#theMainImage").mouseover(function(){
    1414  //  tooltip IMG title remove   
    1515                MainTitle = this.title;
    1616                this.title ="";
    1717                });     
    18         $("#theMainImage").mouseout(function(){
     18        jQuery("#theMainImage").mouseout(function(){
    1919  //   tooltip IMG  title restaure       
    2020                this.title = MainTitle ;
    2121                });     
    2222               
    23         $("area,a").mouseover(function(e){     
    24                         MainTitle = $("#theMainImage").attr("title");
    25                 $("#theMainImage").attr("title",""); // for IE
     23        jQuery("area,a").mouseover(function(e){
     24                        MainTitle = jQuery("#theMainImage").attr("title");
     25                jQuery("#theMainImage").attr("title",""); // for IE
    2626                this.t = this.title;
    2727                 // llgbo conf
     
    4141                                        this.tt += "<p id="+pid+">"+ val[i]+"</p>";}
    4242                                        }               
    43                         $("body").append("<div id='toolTip'>"+this.tt+"</div>");
     43                        jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>");
    4444               
    45                     MyTT = $("#toolTip");
     45                    MyTT = jQuery("#toolTip");
    4646                        if (this.id == "Rules")
    4747                                        { MyTT.css( {'border-color' : '#c92'});}
    4848                    if (this.id == "RulesEx")
    4949                                { MyTT.css( {'border-color' : '#d3fed2'})
    50                                 $("#toolTip #title").css( {'color' : '#d3fed2'}); }
     50                                jQuery("#toolTip #title").css( {'color' : '#d3fed2'}); }
    5151               
    5252                        updateXY(e);
     
    5656                                });                     
    5757 
    58         $("area,a").mouseout(function(e){       
     58        jQuery("area,a").mouseout(function(e){ 
    5959                if (this.activate =='ok') // mouseout without mouseover we keep the right title
    6060                        { this.title = this.t;   
    61                                 $("#toolTip")
     61                                jQuery("#toolTip")
    6262                                .fadeOut("slow")
    6363                                .remove();
    64                                  $("#theMainImage").attr("title",MainTitle); // for IE
     64                                 jQuery("#theMainImage").attr("title",MainTitle); // for IE
    6565                                 }
    6666 });   
    67         $("area,a").mousemove(function(e){
     67        jQuery("area,a").mousemove(function(e){
    6868                updateXY(e);
    6969        });     
    7070            var updateXY = function(e) {
    7171                        var xLeft,xCord;
    72             MyTT = $("#toolTip");
     72            MyTT = jQuery("#toolTip");
    7373                        var wT = MyTT.width() + 6 /* border */+ xGap;
    7474                        var hT = MyTT.height() + 6 /* border */+ yGap;
  • extensions/LLGBO2/language/ar_SA/plugin.lang.php

    r10079 r15076  
    8686$lang['llgbo_hdShadowbox'] ='التكامل HD الظل وتحريك الصور <br> HD الظل يجب ان يفعل!';
    8787$lang['llgbo_dispinshadowbox'] ='اعرض في صندوق الظل --> ';
     88/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8889?>
  • extensions/LLGBO2/language/cs_CZ/plugin.lang.php

    r10791 r15076  
    8686$lang['llgo_warning_setting'] = 'pro použití s Gally šablonami,  plugin cl_conflit musí být nainstalován';
    8787$lang['llgbo_dispinshadowbox'] ='Zobrazit v shadowboxu --> ';
     88/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8889?>
  • extensions/LLGBO2/language/de_DE/plugin.lang.php

    r11464 r15076  
    8686$lang['llgbo_hdShadowbox'] ='Kompatibilität zwischen HD Shadowbox und In-Bild-Navigation. <br> HD Shadowbox muss aktiviert sein!';
    8787$lang['llgbo_dispinshadowbox'] ='In Shadowbox anzeigen --> ';
     88/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8889?>
  • extensions/LLGBO2/language/en_UK/plugin.lang.php

    r11108 r15076  
    8686$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated!';
    8787$lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> ';
     88// Translation to do
     89$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8890?>
  • extensions/LLGBO2/language/es_ES/index.php

    r4246 r15076  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     3// | Piwigo - a PHP based photo gallery                                    |
    64// +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
     5// | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
     6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
     7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    118// +-----------------------------------------------------------------------+
    129// | This program is free software; you can redistribute it and/or modify  |
  • extensions/LLGBO2/language/es_ES/plugin.lang.php

    r9954 r15076  
    8686/*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated !';
    8787/*TODO*/$lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> ';
     88/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8889?>
  • extensions/LLGBO2/language/fr_FR/plugin.lang.php

    r9954 r15076  
    8686$lang['llgo_warning_setting'] = 'Pour utiliser les thémes Gally , vous devez installer le plugin cl_conflit';
    8787$lang['llgbo_dispinshadowbox'] ='Affichage dans Shadowbox --> ';
     88$lang['llgbo_header_thePiwiShackControllerPage']= 'Affichage sur la page de controle du plugin  PiwiShack';
    8889?>
  • extensions/LLGBO2/language/hu_HU/index.php

    r4245 r15076  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     3// | Piwigo - a PHP based photo gallery                                    |
    64// +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
     5// | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
     6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
     7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    118// +-----------------------------------------------------------------------+
    129// | This program is free software; you can redistribute it and/or modify  |
  • extensions/LLGBO2/language/hu_HU/plugin.lang.php

    r12114 r15076  
    8787$lang['llgbo_dispinshadowbox'] = 'Shadowbox megjelenítő --> ';
    8888$lang['llgo_frame_setting'] = 'Keret beállítások';
     89/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8990?>
  • extensions/LLGBO2/language/it_IT/plugin.lang.php

    r13344 r15076  
    100100$lang['save'] = 'Salva';
    101101$lang['Step2_Title'] = 'Impostazioni tooltip';
     102/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    102103?>
  • extensions/LLGBO2/language/lv_LV/plugin.lang.php

    r11150 r15076  
    8787$lang['llgo_warning_setting'] = 'lai lietotu ar Gally tēmām, jābūt instalētam cl_conflit spraudnim';
    8888$lang['llgbo_dispinshadowbox'] = 'Rādīt ēnu kastē (shadowbox) --> ';
    89 
     89/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    9090?>
  • extensions/LLGBO2/language/nl_NL/plugin.lang.php

    r14824 r15076  
    4545$lang['llgbo_usemap_thumb'] = 'Toon thumbnails indien navigatie actief is op de afbeelding:';
    4646$lang['llgo_tooltip_width'] = 'Tooltipbreedte';
     47/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    4748?>
  • extensions/LLGBO2/language/no_NO/plugin.lang.php

    r9954 r15076  
    8787$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox og navigeirng på bilder. <br> Må HD Shadowbox være aktivert!';
    8888/*TODO*/$lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> ';
    89 
     89/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    9090?>
  • extensions/LLGBO2/language/pl_PL/index.php

    r4244 r15076  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     3// | Piwigo - a PHP based photo gallery                                    |
    64// +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
     5// | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
     6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
     7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    118// +-----------------------------------------------------------------------+
    129// | This program is free software; you can redistribute it and/or modify  |
  • extensions/LLGBO2/language/pl_PL/plugin.lang.php

    r11087 r15076  
    8484$lang['llgo_warning_setting'] = 'Aby mógł używać ze skórką Gally, musisz zainstalować wtyczkę cl_conflit';
    8585$lang['llgbo_hdShadowbox'] = 'Wymuś HD Shadowbox i strzałki nawigacji na zdjęciu. HD Shadowbox musi być aktywne!';
    86 
     86/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8787?>
  • extensions/LLGBO2/language/ru_RU/plugin.lang.php

    r11899 r15076  
    8181$lang['llgo_warning_setting'] = 'Чтобы использовать темы Gally нужно установить плагин cl_conflit';
    8282$lang['llgbo_dispinshadowbox'] = 'Показывать на затененном фоне --> ';
    83 
    84 
    85 
     83/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8684?>
  • extensions/LLGBO2/language/sk_SK/plugin.lang.php

    r11156 r15076  
    8686$lang['llgo_warning_setting'] = 'pre použitie s Gally šablónou musí byť inštalovaný doplnok cl_conflit';
    8787$lang['llgbo_dispinshadowbox'] = 'Zobraziť v shadowboxe --> ';
     88/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8889?>
  • extensions/LLGBO2/language/sv_SE/plugin.lang.php

    r11108 r15076  
    8585$lang['llgbo_hdShadowbox'] = 'Compliance HD Shadowbox och bildnavigation. <br> HDShadowbox måste vara aktiverad!';
    8686$lang['llgbo_dispinshadowbox'] = 'Visa i shadowbox --> ';
    87 
     87/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    8888?>
  • extensions/LLGBO2/language/uk_UA/plugin.lang.php

    r13657 r15076  
    100100$lang['submit'] = 'Прийняти';
    101101$lang['Title'] = 'Подивіться, що GBo';
     102/*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin  PiwiShack Controller Page';
    102103?>
  • extensions/LLGBO2/main.inc.php

    r14421 r15076  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.4.A
     4Version:  2.4.B
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    99Add a border around  picture ......
    1010        2.4.A Compliance Piwigo 2.4 + jquery
     11        2.4.B Compliance Theme Stripped and plugin Piwishak 
    1112 */
    1213if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1314
    1415global $conf;
    15 define ('LLGBO_INFO_VERSION','2.4.A');
     16define ('LLGBO_INFO_VERSION','2.4.B');
    1617if (!defined('LLGBO_PATH'))
    1718{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
     
    6667{ global $template,$conf;
    6768$infofile = $template->get_template_vars('INFO_FILE');
     69//----------------------------------------------------   
     70//-------    Tooltip    Arrow Stripped   -------------   
     71//---------------------------------------------------- 
     72$prev = $template->get_template_vars('previous');
     73$next  = $template->get_template_vars('next');
     74$swtimg =   '||<img src=';     
     75// If (($conf['LLGBO_SETTINGS'][1]  == 'true' ) and ($conf['LLGBO_SETTINGS'] [2]  == 'true' ))//   tooltip 
     76// {   if (isset($prev)){$template->append('previous',  array('TITLE' =>  $prev['TITLE'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);}
     77//      if (isset($next)){$template->append('next',  array('TITLE' =>  $next['TITLE'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);}
     78//      }
    6879// ---- Metadata ----------     
    6980$pictExt = substr($infofile,-3);
     
    109120//-----------------------------------------------------------------
    110121function llgbo_RenderContent($content,$element_info )
    111 {global $template,$conf,$user,$lang;   
     122{global $template,$conf,$user,$lang,$themeconf;
    112123$template->assign('LLGBO_PATH',LLGBO_PATH);
    113124include_once(LLGBO_PATH.'/css/sweettitles.css.php');
    114 include_once(LLGBO_PATH.'/css/gbolook.css.php');
    115125//-----------------------------------------------------------------
    116126// -----------  add CSS tooltip in footer --------------------
     
    133143
    134144function LLGBO_prefilter_Frame($content, &$smarty)
    135 { //  begin frame
     145{  global $themeconf;
     146// ------------------------
     147//  begin frame
    136148 $search = '<img src="';
    137   $replacement = '{if isset($llgbo.TITLE_FRAME)}'."\n".'<span  id="gboh2" style ="background:transparent;z-index:3;color:{$llgbo.TITLE_FRAME_COLOR}">{$llgbo.TITLE_FRAME}</span>';
    138   $replacement = $replacement."\n".'{/if}'."\n".'<div  id="gbo" {$llgbo.FRAME_SIZE}>'."\n".'{$llgbo.FRAME_BEGIN}'."\n".$search;
    139   $step1 = str_replace($search, $replacement, $content);
    140 //  End frame   
    141   $search = '{foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip}';
    142   $replacement = '{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->"."\n".$search;
    143     return str_replace($search, $replacement, $step1);
     149  $replacement = '{if isset($llgbo.TITLE_FRAME)}'."\n".'<span  id="llgboh2" style ="background:transparent;z-index:3;color:{$llgbo.TITLE_FRAME_COLOR}">{$llgbo.TITLE_FRAME}</span>';
     150  $replacement = $replacement."\n".'{/if}'."\n".'<div  id="llgbo" {$llgbo.FRAME_SIZE}>'."\n".'{$llgbo.FRAME_BEGIN}'."\n".$search;
     151  $content = str_replace($search, $replacement, $content);
     152// ------------------------
     153  //  End frame 
     154  $search = '{$ALT_IMG}{/if}">';
     155 if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) )
     156        {$search = 'class="hideTabs">';}
     157  $replacement =  $search."\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->";
     158  return str_replace($search, $replacement, $content);
    144159}
    145160
  • extensions/LLGBO2/template/llgbo_content.tpl

    r14421 r15076  
    33                {$llgbo.TOOLTIPCSS}
    44{/if} 
    5 {if  isset($llgbo.GBOCSS)}       
    6                 {$llgbo.GBOCSS}
     5{if  isset($llgbo.GBOCSS)}     
     6        { if file_exists($llgbo.GBOCSS) }
     7                        {combine_css path=$llgbo.GBOCSS order=+10}
     8                {else}
     9                  {combine_css path=$LLGBO_PATH|@cat:"css/llgbo_content_default.css" order=+10}
     10        {/if}
    711{/if} 
    812{if  !isset($llgbo.NOJS)}
    913                {if  isset($llgbo.TOOLTIP)}       
    10                         {combine_script id='llgbojqtooltip'   require='jquery'  path=$LLGBO_PATH|@cat:"js/jquery_llgbotip.js"}
     14                        {combine_script id='llgbojqtooltip' load='header' require='jquery'  path=$LLGBO_PATH|@cat:"js/jquery_llgbotip.js"}
    1115                 {/if}
    1216                 {if  isset($llgbo.FRAME_BEGIN)}       
    13                         {combine_script id='llgbojqframe'  require='jquery'  path=$LLGBO_PATH|@cat:"js/jquery_llgboframeresize.js"}
     17                        {combine_script id='llgbojqframe' load='footer' require='jquery'  path=$LLGBO_PATH|@cat:"js/jquery_llgboframeresize.js" }
    1418                {/if}
    1519{/if}
Note: See TracChangeset for help on using the changeset viewer.