Changeset 15076
- Timestamp:
- May 17, 2012, 8:38:07 PM (12 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r14421 r15076 330 330 if (!isset($_POST['llgbo_header_favorites'])) {$_POST['llgbo_header_favorites'] = 'true';} 331 331 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';} 333 333 334 334 $param_llgbo_header = array( … … 343 343 $_POST['llgbo_header_notification'], $_POST['llgbo_header_register'], 344 344 $_POST['llgbo_header_identification'], $_POST['llgbo_header_favorites'], 345 $_POST['llgbo_header_recent_cats'] );345 $_POST['llgbo_header_recent_cats'], $_POST['llgbo_header_thePiwiShackControllerPage']); 346 346 $llgbo_newheader_value = implode ("," , $param_llgbo_header); 347 347 … … 380 380 if (isset($conf['LLGBO_HEADER'][19])) {$template->assign(array( 'LLGBO_HEADER_FAVORITES' => $conf['LLGBO_HEADER'][19]));} 381 381 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]));} 382 383 383 384 } -
extensions/LLGBO2/admin/llgbo_adminheader.tpl
r10453 r15076 67 67 <td class="llgboinput"> {html_radios name='llgbo_header_about' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER_ABOUT}</td> 68 68 </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 69 75 <tr><td colspan="2"><br></td></tr> 70 76 <tr> -
extensions/LLGBO2/defaultvalues.php
r6234 r15076 5 5 $ttvalues = "150,2,#fff,#000,#c92,#dadada"; 6 6 $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"; 8 8 9 9 ?> -
extensions/LLGBO2/include/manage_header.php
r14421 r15076 27 27 if ((strpos( $input,'favorites') == true ) and ($conf['LLGBO_HEADER'][19] == 'false')) {$no_header = true;} 28 28 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;;} 29 30 30 31 } -
extensions/LLGBO2/include/manage_picture_content.php
r14421 r15076 2 2 $prev = $template->get_template_vars('previous'); 3 3 $next = $template->get_template_vars('next'); 4 $current = $template->get_template_vars('current'); 5 $themeconf = $template->get_template_vars('themeconf'); 4 6 //print_r($next); 5 7 $swtimg = '||<img src='; … … 8 10 //---------------------------------------------------- 9 11 If ($conf['LLGBO_SETTINGS'][1] == 'true' )// tooltip 10 { 11 12 { if (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);} 12 14 $template->append('llgbo', array('tooltipCSS' => $sweetcss), true); 13 15 } … … 17 19 //---------------------------------------------------- 18 20 If (($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'); 20 23 // selected picture Size 21 24 $deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE); … … 36 39 $lastbrdpx = $bordpx;} 37 40 } 41 $csstheme = 'default'; 42 $themeconf = $template->get_template_vars('themeconf'); 43 if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) ) 44 { $csstheme = 'stripped';} 38 45 $frame_width = $frame_width + ( 2* $lastbrdpx); 39 46 $frame_height = $frame_height + ( 2* $lastbrdpx); … … 43 50 'FRAME_BEGIN' => $frame_begin, 44 51 'FRAME_END' => $frame_end, 45 'GBOCSS' => $gbolook), true);52 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$csstheme.".css" ), true); 46 53 47 54 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 49 57 { $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); 51 60 $template->assign('SHOW_PICTURE_NAME_ON_TITLE' , false); 61 52 62 } 53 63 } // end frame -
extensions/LLGBO2/js/jquery_llgboframeresize.js
r14421 r15076 1 1 // 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"; 2 jQuery(document).ready(function(jQuery){ 3 jQuery("#theMainImage").load(function(){LlgboFr_Resize();}); 4 jQuery(window).resize(function(){ LlgboFr_Resize(); }); 5 }); 6 var 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); 25 23 } 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( $){1 jQuery(document).ready(function(jQuery){ 2 2 /* CONFIG */ 3 3 // these 2 variables determine popup's gap from the cursor … … 11 11 12 12 /* END CONFIG */ 13 $("#theMainImage").mouseover(function(){13 jQuery("#theMainImage").mouseover(function(){ 14 14 // tooltip IMG title remove 15 15 MainTitle = this.title; 16 16 this.title =""; 17 17 }); 18 $("#theMainImage").mouseout(function(){18 jQuery("#theMainImage").mouseout(function(){ 19 19 // tooltip IMG title restaure 20 20 this.title = MainTitle ; 21 21 }); 22 22 23 $("area,a").mouseover(function(e){24 MainTitle = $("#theMainImage").attr("title");25 $("#theMainImage").attr("title",""); // for IE23 jQuery("area,a").mouseover(function(e){ 24 MainTitle = jQuery("#theMainImage").attr("title"); 25 jQuery("#theMainImage").attr("title",""); // for IE 26 26 this.t = this.title; 27 27 // llgbo conf … … 41 41 this.tt += "<p id="+pid+">"+ val[i]+"</p>";} 42 42 } 43 $("body").append("<div id='toolTip'>"+this.tt+"</div>");43 jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>"); 44 44 45 MyTT = $("#toolTip");45 MyTT = jQuery("#toolTip"); 46 46 if (this.id == "Rules") 47 47 { MyTT.css( {'border-color' : '#c92'});} 48 48 if (this.id == "RulesEx") 49 49 { MyTT.css( {'border-color' : '#d3fed2'}) 50 $("#toolTip #title").css( {'color' : '#d3fed2'}); }50 jQuery("#toolTip #title").css( {'color' : '#d3fed2'}); } 51 51 52 52 updateXY(e); … … 56 56 }); 57 57 58 $("area,a").mouseout(function(e){58 jQuery("area,a").mouseout(function(e){ 59 59 if (this.activate =='ok') // mouseout without mouseover we keep the right title 60 60 { this.title = this.t; 61 $("#toolTip")61 jQuery("#toolTip") 62 62 .fadeOut("slow") 63 63 .remove(); 64 $("#theMainImage").attr("title",MainTitle); // for IE64 jQuery("#theMainImage").attr("title",MainTitle); // for IE 65 65 } 66 66 }); 67 $("area,a").mousemove(function(e){67 jQuery("area,a").mousemove(function(e){ 68 68 updateXY(e); 69 69 }); 70 70 var updateXY = function(e) { 71 71 var xLeft,xCord; 72 MyTT = $("#toolTip");72 MyTT = jQuery("#toolTip"); 73 73 var wT = MyTT.width() + 6 /* border */+ xGap; 74 74 var hT = MyTT.height() + 6 /* border */+ yGap; -
extensions/LLGBO2/language/ar_SA/plugin.lang.php
r10079 r15076 86 86 $lang['llgbo_hdShadowbox'] ='التكامل HD الظل وتحريك الصور <br> HD الظل يجب ان يفعل!'; 87 87 $lang['llgbo_dispinshadowbox'] ='اعرض في صندوق الظل --> '; 88 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 89 ?> -
extensions/LLGBO2/language/cs_CZ/plugin.lang.php
r10791 r15076 86 86 $lang['llgo_warning_setting'] = 'pro použití s Gally šablonami, plugin cl_conflit musí být nainstalován'; 87 87 $lang['llgbo_dispinshadowbox'] ='Zobrazit v shadowboxu --> '; 88 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 89 ?> -
extensions/LLGBO2/language/de_DE/plugin.lang.php
r11464 r15076 86 86 $lang['llgbo_hdShadowbox'] ='Kompatibilität zwischen HD Shadowbox und In-Bild-Navigation. <br> HD Shadowbox muss aktiviert sein!'; 87 87 $lang['llgbo_dispinshadowbox'] ='In Shadowbox anzeigen --> '; 88 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 89 ?> -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r11108 r15076 86 86 $lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated!'; 87 87 $lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> '; 88 // Translation to do 89 $lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 90 ?> -
extensions/LLGBO2/language/es_ES/index.php
r4246 r15076 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 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 | 6 4 // +-----------------------------------------------------------------------+ 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 | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/LLGBO2/language/es_ES/plugin.lang.php
r9954 r15076 86 86 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated !'; 87 87 /*TODO*/$lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> '; 88 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 89 ?> -
extensions/LLGBO2/language/fr_FR/plugin.lang.php
r9954 r15076 86 86 $lang['llgo_warning_setting'] = 'Pour utiliser les thémes Gally , vous devez installer le plugin cl_conflit'; 87 87 $lang['llgbo_dispinshadowbox'] ='Affichage dans Shadowbox --> '; 88 $lang['llgbo_header_thePiwiShackControllerPage']= 'Affichage sur la page de controle du plugin PiwiShack'; 88 89 ?> -
extensions/LLGBO2/language/hu_HU/index.php
r4245 r15076 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 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 | 6 4 // +-----------------------------------------------------------------------+ 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 | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/LLGBO2/language/hu_HU/plugin.lang.php
r12114 r15076 87 87 $lang['llgbo_dispinshadowbox'] = 'Shadowbox megjelenítő --> '; 88 88 $lang['llgo_frame_setting'] = 'Keret beállítások'; 89 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 89 90 ?> -
extensions/LLGBO2/language/it_IT/plugin.lang.php
r13344 r15076 100 100 $lang['save'] = 'Salva'; 101 101 $lang['Step2_Title'] = 'Impostazioni tooltip'; 102 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 102 103 ?> -
extensions/LLGBO2/language/lv_LV/plugin.lang.php
r11150 r15076 87 87 $lang['llgo_warning_setting'] = 'lai lietotu ar Gally tēmām, jābūt instalētam cl_conflit spraudnim'; 88 88 $lang['llgbo_dispinshadowbox'] = 'Rādīt ēnu kastē (shadowbox) --> '; 89 89 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 90 90 ?> -
extensions/LLGBO2/language/nl_NL/plugin.lang.php
r14824 r15076 45 45 $lang['llgbo_usemap_thumb'] = 'Toon thumbnails indien navigatie actief is op de afbeelding:'; 46 46 $lang['llgo_tooltip_width'] = 'Tooltipbreedte'; 47 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 47 48 ?> -
extensions/LLGBO2/language/no_NO/plugin.lang.php
r9954 r15076 87 87 $lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox og navigeirng på bilder. <br> Må HD Shadowbox være aktivert!'; 88 88 /*TODO*/$lang['llgbo_dispinshadowbox'] ='Display in shadowbox --> '; 89 89 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 90 90 ?> -
extensions/LLGBO2/language/pl_PL/index.php
r4244 r15076 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 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 | 6 4 // +-----------------------------------------------------------------------+ 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 | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/LLGBO2/language/pl_PL/plugin.lang.php
r11087 r15076 84 84 $lang['llgo_warning_setting'] = 'Aby mógł używać ze skórką Gally, musisz zainstalować wtyczkę cl_conflit'; 85 85 $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'; 87 87 ?> -
extensions/LLGBO2/language/ru_RU/plugin.lang.php
r11899 r15076 81 81 $lang['llgo_warning_setting'] = 'Чтобы использовать темы Gally нужно установить плагин cl_conflit'; 82 82 $lang['llgbo_dispinshadowbox'] = 'Показывать на затененном фоне --> '; 83 84 85 83 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 86 84 ?> -
extensions/LLGBO2/language/sk_SK/plugin.lang.php
r11156 r15076 86 86 $lang['llgo_warning_setting'] = 'pre použitie s Gally šablónou musí byť inštalovaný doplnok cl_conflit'; 87 87 $lang['llgbo_dispinshadowbox'] = 'Zobraziť v shadowboxe --> '; 88 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 89 ?> -
extensions/LLGBO2/language/sv_SE/plugin.lang.php
r11108 r15076 85 85 $lang['llgbo_hdShadowbox'] = 'Compliance HD Shadowbox och bildnavigation. <br> HDShadowbox måste vara aktiverad!'; 86 86 $lang['llgbo_dispinshadowbox'] = 'Visa i shadowbox --> '; 87 87 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 88 88 ?> -
extensions/LLGBO2/language/uk_UA/plugin.lang.php
r13657 r15076 100 100 $lang['submit'] = 'Прийняти'; 101 101 $lang['Title'] = 'Подивіться, що GBo'; 102 /*TODO*/$lang['llgbo_header_thePiwiShackControllerPage']= 'Display header on the plugin PiwiShack Controller Page'; 102 103 ?> -
extensions/LLGBO2/main.inc.php
r14421 r15076 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.4. A4 Version: 2.4.B 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 9 9 Add a border around picture ...... 10 10 2.4.A Compliance Piwigo 2.4 + jquery 11 2.4.B Compliance Theme Stripped and plugin Piwishak 11 12 */ 12 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 13 14 14 15 global $conf; 15 define ('LLGBO_INFO_VERSION','2.4. A');16 define ('LLGBO_INFO_VERSION','2.4.B'); 16 17 if (!defined('LLGBO_PATH')) 17 18 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 66 67 { global $template,$conf; 67 68 $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 // } 68 79 // ---- Metadata ---------- 69 80 $pictExt = substr($infofile,-3); … … 109 120 //----------------------------------------------------------------- 110 121 function llgbo_RenderContent($content,$element_info ) 111 {global $template,$conf,$user,$lang ;122 {global $template,$conf,$user,$lang,$themeconf; 112 123 $template->assign('LLGBO_PATH',LLGBO_PATH); 113 124 include_once(LLGBO_PATH.'/css/sweettitles.css.php'); 114 include_once(LLGBO_PATH.'/css/gbolook.css.php');115 125 //----------------------------------------------------------------- 116 126 // ----------- add CSS tooltip in footer -------------------- … … 133 143 134 144 function LLGBO_prefilter_Frame($content, &$smarty) 135 { // begin frame 145 { global $themeconf; 146 // ------------------------ 147 // begin frame 136 148 $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); 144 159 } 145 160 -
extensions/LLGBO2/template/llgbo_content.tpl
r14421 r15076 3 3 {$llgbo.TOOLTIPCSS} 4 4 {/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} 7 11 {/if} 8 12 {if !isset($llgbo.NOJS)} 9 13 {if isset($llgbo.TOOLTIP)} 10 {combine_script id='llgbojqtooltip' 14 {combine_script id='llgbojqtooltip' load='header' require='jquery' path=$LLGBO_PATH|@cat:"js/jquery_llgbotip.js"} 11 15 {/if} 12 16 {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" } 14 18 {/if} 15 19 {/if}
Note: See TracChangeset
for help on using the changeset viewer.