Changeset 30224
- Timestamp:
- Oct 19, 2014, 7:23:31 PM (10 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r30030 r30224 76 76 $frame_title = "\n".'<!-- Begin LLGBO -->'."\n".'<span id="llgboh2" style ="background:transparent;z-index:3;color:'.$conf['LLGBO2']['FR-titlecolor'].'">'; 77 77 } 78 78 79 79 $template->append('llgbo', array( 80 80 'FRAME_TITLE1' => $frame_title, … … 86 86 87 87 $template->set_prefilter('default_content', 'LLGBO_prefilter_Content_Frame'); 88 89 if (isset($conf['automatic_size_width_margin'])) // auto size must take care of frame size90 { $template->assign( array(91 'asize_width_margin' => $conf['automatic_size_width_margin'] + $frame_border,92 'asize_height_margin' => $conf['automatic_size_height_margin'] + $frame_border,));93 $template->parse('asize_picture_js');}94 88 } // end frame 95 89 //---------------------------------------------------- … … 128 122 return $content; 129 123 } 124 130 125 ?> -
extensions/LLGBO2/js/jquery_llgboframeresize.js
r29841 r30224 6 6 { var MainImg = jQuery("#theMainImage"); 7 7 if (MainImg.size() > 0) 8 { var nImgH = parseInt(MainImg.height() );9 var nImgW = parse Int(MainImg.width() );8 { var nImgH = parseFloat(MainImg.height() ); 9 var nImgW = parseFloat(MainImg.width() ); 10 10 var FrLstBdr = 0; var frbdr=0; 11 11 jQuery(".llgboFR").each(function(){ 12 frbdr = parse Int(jQuery(this).css('border-top-width'));12 frbdr = parseFloat(jQuery(this).css('border-top-width')); 13 13 FrLstBdr = (frbdr * 2)+FrLstBdr; 14 14 }); 15 } 15 } 16 16 Elmgbo.width (nImgW + FrLstBdr) ; 17 17 Elmgbo.height (nImgH + FrLstBdr) ; 18 19 18 20 } 19 21 } … … 24 26 LlgboFr_Resize(); }); 25 27 26 jQuery("#theMainImage").load(function(){ 28 jQuery("#theMainImage").load(function(){ ; 27 29 LlgboFr_Resize();}); 28 30 }); -
extensions/LLGBO2/main.inc.php
r30030 r30224 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.7. D4 Version: 2.7.E 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 17 17 2.7.D fix bug with frame and theme P0w0 18 18 improve compatibility with Automatic Size 19 2.7.E fix bug with frame in js resize 19 20 */ 20 21 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 23 24 // | Plugin constants | 24 25 // +-----------------------------------------------------------------------+ 25 define('LLGBO_VERSION', '2.7. D');26 define('LLGBO_VERSION', '2.7.E'); 26 27 define('LLGBO_ID', basename(dirname(__FILE__))); 27 28 define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . LLGBO_ID . '/'); … … 47 48 48 49 $conf['LLGBO2'] = safe_unserialize($conf['LLGBO2_Settings']); 50 51 // auto size must take care of frame size 52 if (($conf['LLGBO2']['frame']) ) //Frame on 53 { $framesize =0; 54 foreach ($conf['LLGBO2']['FR-sizes'] as $cle => $value) 55 { if ( $value > 0) 56 { $framesize = $framesize + ( 2 * $value); } 57 } 58 if (defined('ASIZE_PATH')) 59 { $conf['automatic_size_width_margin']= 12 + $framesize; 60 $conf['automatic_size_height_margin']= 40 + $framesize; 61 } 62 } 49 63 } 50 64 /******************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.