Changeset 16145
- Timestamp:
- Jun 28, 2012, 6:23:28 PM (12 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r15076 r16145 41 41 $csstheme = 'default'; 42 42 $themeconf = $template->get_template_vars('themeconf'); 43 if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) )44 { $csstheme = 'stripped';}45 43 $frame_width = $frame_width + ( 2* $lastbrdpx); 46 44 $frame_height = $frame_height + ( 2* $lastbrdpx); 47 45 $frame_size = 'style="border:0 ;width:'.$frame_width.'px; height:'.$frame_height.'px;"'; 46 $themestyle = $themeconf['parent']; 47 If ($themestyle == 'default') 48 { $themestyle = $themeconf['id'];} 49 // print_r($themestyle); 48 50 $template->append('llgbo', array( 49 51 'FRAME_SIZE' => $frame_size, 50 52 'FRAME_BEGIN' => $frame_begin, 51 53 'FRAME_END' => $frame_end, 52 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$ csstheme.".css" ), true);54 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$themestyle.".css" ), true); 53 55 54 56 -
extensions/LLGBO2/js/jquery_llgbotip.js
r15107 r16145 1 1 jQuery(document).ready(function(jQuery){ 2 /* CONFIG */ 3 // these 2 variables determine popup's gap from the cursor 4 var xGap = 10; 5 var yGap = 10; 6 var MyTT = ""; 7 var MainTitle =""; 2 /* CONFIG */ 3 // these 2 variables determine popup's gap from the cursor 4 var xGap = 10; 5 var yGap = 10; 6 var MainTitle =""; 7 8 var maxTop = 0; 9 var maxLeft =0; 10 /* END CONFIG */ 11 jQuery("#theMainImage").mouseover(function(){ 12 // tooltip IMG title remove 13 MainTitle = this.title; 14 this.title =""; 15 }); 16 jQuery("#theMainImage").mouseout(function(){ 17 // tooltip IMG title restaure 18 this.title = MainTitle; 19 }); 8 20 9 var maxTop = 0; 10 var maxLeft =0; 11 12 /* END CONFIG */ 13 jQuery("#theMainImage").mouseover(function(){ 14 // tooltip IMG title remove 15 MainTitle = this.title; 16 this.title =""; 17 }); 18 jQuery("#theMainImage").mouseout(function(){ 19 // tooltip IMG title restaure 20 this.title = MainTitle ; 21 }); 22 23 jQuery("area,a").mouseover(function(e){ 24 MainTitle = jQuery("#theMainImage").attr("title"); 25 jQuery("#theMainImage").attr("title",""); // for IE 26 this.t = this.title; 27 // llgbo conf 28 var val = this.title.split("||",15); 29 if (val[0].length<1) { return; } 30 maxLeft = jQuery(window).width(); 31 maxTop = jQuery(window).height(); 32 // 33 this.activate ='ok'; 34 this.title = ""; 35 this.tt = "<p id='title'>"+val[0]+"</p>"; 36 var pid = "dflt"; 37 if (this.className != "navThumb") // no picture for navthumb 38 {for (var i=1; i<val.length; i++) { 39 if ( val[i].toLowerCase().indexOf("<img") == 0) 40 { pid = "pict";} 41 this.tt += "<p id="+pid+">"+ val[i]+"</p>";} 42 } 43 jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>"); 44 45 MyTT = jQuery("#toolTip"); 46 if (this.id == "Rules") 47 { MyTT.css( {'border-color' : '#c92'});} 48 if (this.id == "RulesEx") 49 { MyTT.css( {'border-color' : '#d3fed2'}) 50 jQuery("#toolTip #title").css( {'color' : '#d3fed2'}); } 51 52 updateXY(e); 53 MyTT.css("opacity", 0.25) 54 .show; 55 MyTT.fadeTo(1500,.95); 56 }); 57 58 jQuery("area,a").mouseout(function(e){ 59 if (this.activate =='ok') // mouseout without mouseover we keep the right title 60 { this.title = this.t; 61 jQuery("#toolTip") 62 .fadeOut("slow") 63 .remove(); 64 jQuery("#theMainImage").attr("title",MainTitle); // for IE 65 } 21 jQuery("area,a").mouseover(function(e){ 22 MainTitle = jQuery("#theMainImage").attr("title"); 23 jQuery("#theMainImage").attr("title",""); // for IE 24 this.t = this.title; 25 // llgbo conf 26 var val = this.title.split("||",15); 27 if (val[0].length<1) { return; } 28 maxLeft = jQuery(window).width(); 29 maxTop = jQuery(window).height(); 30 // 31 this.activate ='ok'; 32 this.title = ""; 33 this.tt = "<p id='title'>"+val[0]+"</p>"; 34 var pid = "dflt"; 35 if (this.className != "navThumb") // no picture for navthumb 36 {for (var i=1; i<val.length; i++) { 37 if ( val[i].toLowerCase().indexOf("<img") == 0) 38 { pid = "pict";} 39 this.tt += "<p id="+pid+">"+ val[i]+"</p>";} 40 } 41 jQuery("body").append("<div id='toolTip'>"+this.tt+"</div>"); 42 43 var MyTT = jQuery("#toolTip"); 44 if (this.id == "Rules") 45 { MyTT.css( {'border-color':'#c92'});} 46 if (this.id == "RulesEx") 47 { MyTT.css( {'border-color':'#d3fed2'}) 48 jQuery("#toolTip #title").css({'color':'#d3fed2'});} 49 50 updateXY(e); 51 MyTT.css("opacity", 0.25) 52 .show; 53 MyTT.fadeTo(1200,.95); 54 }); 55 56 jQuery("area,a").mouseout(function(e){ 57 if (this.activate =='ok') // mouseout without mouseover we keep the right title 58 { this.title = this.t; 59 jQuery("#toolTip") 60 .fadeOut("slow") 61 .remove(); 62 jQuery("#theMainImage").attr("title",MainTitle); // for IE 63 } 66 64 }); 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 65 jQuery("area,a").mousemove(function(e){ 66 updateXY(e); 67 }); 68 var updateXY = function(e) { 69 var xLeft,yCord,xCord; 70 var MyTT = jQuery("#toolTip"); 71 var wT = MyTT.width() + 6 /* border */+ xGap; 72 var hT = MyTT.height() + 6 /* border */+ yGap; 73 74 if ( e.pageX < (maxLeft/2) ) // piwigo left 75 {xCord = wT *-1;} 76 else { 77 xCord =( maxLeft < (e.pageX + wT )) ? xCord = wT * -1 : xCord = xGap;} 78 xLeft = (e.pageX + xCord < 3 ) ? xLeft = e.pageX + xGap : xLeft = e.pageX + xCord; 79 yCord =( maxTop < (e.pageY + hT )) ? yCord = hT * -1 : yCord = yGap; 80 MyTT 81 .css("top",(e.pageY + yCord) + "px") 82 .css("left",(xLeft) + "px"); 83 } 86 84 }); -
extensions/LLGBO2/main.inc.php
r15107 r16145 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.4. B4 Version: 2.4.D 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add a border around picture ...... 10 2.4.A Compliance Piwigo 2.4 + jquery 11 2.4.B Compliance with Theme Stripped and plugin Piwishak 10 2.4.A Beta1 Compliance Piwigo 2.4 + jquery 11 2.4.B beta 2 Compliance with Theme Stripped and plugin Piwishak 12 2.4.C First version for official Piwigo 2.4 13 2.4.D Compliance with Theme Simple 12 14 */ 13 15 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 14 16 15 17 global $conf; 16 define ('LLGBO_INFO_VERSION','2.4. B');18 define ('LLGBO_INFO_VERSION','2.4.D'); 17 19 if (!defined('LLGBO_PATH')) 18 20 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 117 119 // ----------- add CSS tooltip in footer -------------------- 118 120 //----------------------------------------------------------------- 119 If (( $conf['LLGBO'][1] == 'true' ) /* tooltip */121 If ((($conf['LLGBO_SETTINGS'][1] == 'true' ) /* tooltip */ 120 122 or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ ) 121 123 { $template->append('footer_elements',$sweetcss); … … 143 145 // ------------------------ 144 146 // End frame 145 $search = '{$ALT_IMG}{/if}">'; 147 $search = '{foreach from=$current.unique_derivatives'; 148 $replacement = "\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->"."\n".$search; 146 149 if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) ) 147 {$search = 'class="hideTabs">'; }148 $replacement = $search."\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->"; 150 {$search = 'class="hideTabs">'; 151 $replacement = $search."\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->";} 149 152 return str_replace($search, $replacement, $content); 150 153 }
Note: See TracChangeset
for help on using the changeset viewer.