Changeset 17242
- Timestamp:
- Jul 31, 2012, 8:33:03 AM (12 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/js/jquery_llgboframeresize.js
r16754 r17242 29 29 var frbdr = 0; 30 30 if (Fr) { 31 frbdr = parseInt(Fr.style.borderWidth); 32 nFrH = nFrH + FrLstBdr ; 33 nFrW = nFrW + FrLstBdr ; 34 Fr.style.height = nFrH + "px"; 35 Fr.style.width = nFrW + "px";} 36 FrLstBdr = (frbdr * 2); 31 frbdr = parseInt(Fr.style.borderWidth);} 32 FrLstBdr = (frbdr * 2)+FrLstBdr; 37 33 } 38 34 elGbo.style.width = (nFrW + FrLstBdr) + "px"; -
extensions/LLGBO2/main.inc.php
r16791 r17242 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.4. D4 Version: 2.4.G 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 14 14 2.4.F Improvement on frame management first size 15 15 Frame available on SlideShow. 16 2.4.G Compliance with plugin RV MAP & EARTH 16 17 */ 17 18 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 18 19 19 20 global $conf; 20 define ('LLGBO_INFO_VERSION','2.4. F');21 define ('LLGBO_INFO_VERSION','2.4.G'); 21 22 if (!defined('LLGBO_PATH')) 22 23 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 72 73 $infofile = $template->get_template_vars('INFO_FILE'); 73 74 $current = $template->get_template_vars('current'); 74 75 75 //---------------------------------------------------- 76 76 /* HTML End frame on Picture.tpl */ 77 77 //---------------------------------------------------- 78 If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) //Frame 78 If (($conf['LLGBO_SETTINGS'] [0] == 'true') //Frame 79 and ($conf['LLGBO_RENDERCONTENT'] == 'true') ) // $content ok for update 79 80 { $target = 'picture'; 80 81 if ($page['slideshow'] and $conf['light_slideshow']) … … 100 101 $frame_height = $frame_height + ( 2* $lastbrdpx); 101 102 $bordcolor = $conf['LLGBO_FRAME'][$x]; 102 $frame_begin = '<div id="llgboframe'.$x.'" class="llgbo" style="border:'.$bordpx.'px solid '.$bordcolor.' ;width:'.$frame_width.'px; height:'.$frame_height.'px;">'."\n".$frame_begin;103 $frame_begin = '<div id="llgboframe'.$x.'" class="llgbo" style="border:'.$bordpx.'px solid '.$bordcolor.'">'."\n".$frame_begin; 103 104 $lastbrdpx = $bordpx;} 104 105 } … … 122 123 {$lang['Show file metadata'] = 'No Metadata';} 123 124 else 125 { 126 if ($conf['show_exif'] == true) // No exif ? 124 127 {$meta = ""; 125 128 $u_metadata = $template->get_template_vars('U_METADATA'); … … 151 154 } 152 155 } 153 } 156 } 157 } 154 158 // Add llgbo requirement to ELEMENT_CONTENT 155 159 $template->set_filenames( array('llgbo_content'=> dirname(__FILE__).'/template/llgbo_content.tpl') ); … … 172 176 173 177 /* If ($conf['LLGBO_SETTINGS'] [3] == 'true' ) switch free {} */ 174 178 $conf['LLGBO_RENDERCONTENT'] = 'false'; 175 179 //----------------------------------------------------------------- 176 180 // AN OTHER PLUGIN IS WORKING -> GO BACK … … 178 182 // frame and navigation on picture are only available on picture extension 179 183 $pictExt = substr($element_info['file'],-3); 180 if (!in_array ( $pictExt,$conf['picture_ext'])) { return $content; ; } 184 if (!in_array ( $pictExt,$conf['picture_ext'])) { return $content; ; } 185 $conf['LLGBO_RENDERCONTENT'] = 'true'; // $content ok for update 181 186 include_once(LLGBO_PATH.'include/manage_picture_content.php'); 182 187 } //end --> llgbo_RenderContent
Note: See TracChangeset
for help on using the changeset viewer.