Changeset 17961 for extensions/stripped
- Timestamp:
- Sep 16, 2012, 11:31:20 PM (12 years ago)
- Location:
- extensions/stripped
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/admin.inc.php
r14687 r17961 27 27 if(isset($_POST['submit_stripped'])) 28 28 { 29 $config['paramVersion']='2. 2';29 $config['paramVersion']='2.3'; 30 30 31 31 $config['themeStyle']=$_POST['f_themeStyle']; … … 43 43 $config['imageArrows']=isset($_POST['f_imageArrows']); 44 44 $config['navArrows']=isset($_POST['f_navArrows']); 45 $config['HDlightbox']=isset($_POST['f_HDlightbox']); 45 46 $config['defaultZoomSize']=$_POST['f_defaultZoomSize']; 46 47 $config['animatedTabs']=isset($_POST['f_animatedTabs']); -
extensions/stripped/admin/admin.tpl
r17407 r17961 1 1 <div class="titrePage"> 2 <h2>stripped Theme Configuration</h2>2 <h2>stripped Theme v{$options.paramVersion} Configuration</h2> 3 3 </div> 4 4 … … 77 77 <option value="description" {if ($options.imageCaption=="description")}selected{/if}>{'Description'|@translate}</option> 78 78 </select> 79 </label></li> 80 <li><label> 81 <span class="property">{'Activate HD picture lightbox'|@translate}</span> 82 <input type="checkbox" name="f_HDlightbox" {if ($options.HDlightbox)}checked{/if}> 79 83 </label></li> 80 84 <li><label> -
extensions/stripped/admin/maintain.inc.php
r16148 r17961 8 8 { 9 9 $config = array( 10 'paramVersion' => '2. 2',10 'paramVersion' => '2.3', 11 11 12 12 'themeStyle' => 'black', … … 24 24 'imageArrows' => false, 25 25 'navArrows' => true, 26 'HDlightbox' => true, 26 27 'defaultZoomSize' => 'fit', 27 28 'animatedTabs' => true, -
extensions/stripped/admin/upgrade.inc.php
r16847 r17961 8 8 { 9 9 $config = array( 10 'paramVersion' => '2. 2',10 'paramVersion' => '2.3', 11 11 12 12 'themeStyle' => 'black', … … 24 24 'imageArrows' => false, 25 25 'navArrows' => true, 26 'HDlightbox' => true, 26 27 'defaultZoomSize' => 'fit', 27 28 'animatedTabs' => true, … … 69 70 } 70 71 72 $config['HDlightbox']=true; 71 73 $config['imageArrows']=true; 72 74 $config['navArrows']=false; 73 $config['paramVersion']='2. 2';75 $config['paramVersion']='2.3'; 74 76 $config['albumType']='small'; 75 77 $config['albumFrame']=$config['thumbFrame']; … … 85 87 86 88 $config = $stripped; 87 $config['paramVersion']='2. 2';89 $config['paramVersion']='2.3'; 88 90 $config['albumType']='small'; 89 91 $config['albumFrame']=$config['thumbFrame']; … … 92 94 $config['imageSize']='medium'; 93 95 $config['hdSize']='xxlarge'; 96 $config['HDlightbox']=true; 94 97 95 98 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); … … 98 101 99 102 if ($stripped['paramVersion'] == '2.1') { 100 101 $config = $stripped; 102 $config['paramVersion']='2.2'; 103 $config['albumSize']='thumb'; 104 $config['thumbSize']='thumb'; 105 $config['imageSize']='medium'; 106 $config['hdSize']='xxlarge'; 107 108 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 109 103 $config = $stripped; 104 $config['paramVersion']='2.3'; 105 $config['albumSize']='thumb'; 106 $config['thumbSize']='thumb'; 107 $config['imageSize']='medium'; 108 $config['hdSize']='xxlarge'; 109 $config['HDlightbox']=true; 110 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 110 111 } 111 112 113 if ($stripped['paramVersion'] == '2.2') { 114 $config = $stripped; 115 $config['paramVersion']='2.3'; 116 $config['HDlightbox']=true; 117 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 118 } 119 112 120 } 113 121 -
extensions/stripped/js/scripts-tpp.js
r17407 r17961 160 160 var img_ratio=image_w / image_h; 161 161 162 if (options.imageAutosize) { 163 164 // Autosize image 162 if ((options.imageAutosize) || (options.themeStyle != 'original')) { 163 165 164 jQuery(window).resize(function () { 166 165 … … 172 171 var Content=jQuery("#content"); 173 172 174 var marge_cote ;175 173 var marge_cote=5; 174 176 175 var marge_sup = 5 + Content.offset().top; 177 176 var marge_inf; 178 if (options.themeStyle == 'original') { marge_inf = options.imageAutosizeMargin+10;} else { marge_inf = 30;}; 177 if (options.themeStyle == 'original') { 178 marge_inf = options.imageAutosizeMargin+10; 179 if (options.navArrows) marge_cote=20; 180 } else { 181 marge_inf = 30; 182 if (options.navArrows) marge_cote=25; 183 } 179 184 var marge_spec = 0; 180 185 … … 197 202 } 198 203 199 var Hmin = options.imageAutosizeMinHeight;200 201 204 if (Image.length != 1) { 202 205 if (TitleBox.length !=0) TitleBox.css("width","97%"); … … 204 207 } 205 208 209 var win_height = Fenetre.height(); 206 210 marge_inf = ImageContainer.height()-Image.height()+marge_inf; 207 var win_height = Fenetre.height();208 211 var img_H = win_height - marge_sup - marge_inf; 209 var max_H = img_H; 210 211 212 if (img_H >= image_h) img_H = image_h; 213 if (img_H <= Hmin) img_H = Hmin; 214 215 var img_W = Math.round(parseFloat(img_H * img_ratio)); 216 217 218 var marge_image = ImageCadre.outerWidth() - Image.width(); 219 var ext_width; 220 221 if (options.themeStyle == 'original') { ext_width = jQuery("#content").width();} else {ext_width = Fenetre.width();}; 222 var max_W = ext_width - marge_image - marge_cote * 2; 223 224 if (img_W > max_W) { 225 img_H = Math.round(parseFloat(max_W / img_ratio)); 226 img_W = max_W; 227 } 228 229 Image.css("width", img_W + "px"); 230 Image.css("height", img_H + "px"); 212 213 if (options.imageAutosize) { 214 215 var Hmin = options.imageAutosizeMinHeight; 216 217 var max_H = img_H; 218 219 if (img_H >= image_h) img_H = image_h; 220 if (img_H <= Hmin) img_H = Hmin; 221 222 var img_W = Math.round(parseFloat(img_H * img_ratio)); 223 224 var marge_image = ImageCadre.outerWidth() - Image.width(); 225 var ext_width; 226 227 if (options.themeStyle == 'original') { ext_width = jQuery("#content").width();} else {ext_width = Fenetre.width();}; 228 var max_W = ext_width - marge_image - marge_cote * 2; 229 230 if (img_W > max_W) { 231 img_H = Math.round(parseFloat(max_W / img_ratio)); 232 img_W = max_W; 233 } 234 235 Image.css("width", img_W + "px"); 236 Image.css("height", img_H + "px"); 237 238 } else { 239 240 img_H = image_h; 241 242 } 231 243 232 244 if (options.themeStyle != 'original') { … … 252 264 TitleBox.css("opacity","1"); 253 265 254 255 // limit img title Container width256 /*257 if (TitleBox.length != 0) {258 var TBminW = jQuery("#theImg").outerWidth();259 TitleBox.css("min-width",TBminW + "px");260 if (TitleBox.width() > TBminW) {261 TitleBox.children().css("text-align","justify");262 } else {263 TitleBox.children().css("text-align","center");264 }265 }266 */267 // test268 266 if (options.themeStyle != 'original') { 269 267 var max_footer_width = jQuery("#content").width() - jQuery("#tabTitles").width() - 5; … … 281 279 jQuery("#theImg").css("opacity","1"); 282 280 jQuery("#imageTitleContainer").css("opacity","1"); 281 jQuery("#theImageAndTitle").css("position","static"); 282 jQuery("#theImageAndTitle").css("margin-top","10px"); 283 283 var TitleBox=jQuery("#imageTitleContainer"); 284 284 if (TitleBox.length !=0) TitleBox.css("width","97%"); 285 286 285 } 287 286 -
extensions/stripped/language/en_UK/theme.lang.php
r16602 r17961 27 27 $lang['Property to display below picture']='Property to display below picture'; 28 28 $lang['Title']='Title'; 29 $lang['Activate HD picture lightbox']='Activate HD picture lightbox'; 29 30 $lang['HD picture default display']='HD picture default display'; 30 31 $lang['fit to screen']='fit to screen'; -
extensions/stripped/language/fr_FR/theme.lang.php
r16602 r17961 27 27 $lang['Property to display below picture']='Propriété à afficher en dessous de l\'image'; 28 28 $lang['Title']='Titre'; 29 $lang['Activate HD picture lightbox']='Activer la ligthbox pour l\'image HD'; 29 30 $lang['HD picture default display']='Affichage par défaut de l\'image HD'; 30 31 $lang['fit to screen']='Adapter à l\'écran'; -
extensions/stripped/readme.txt
r17407 r17961 31 31 Changelog 32 32 --------- 33 34 *** version 2.3.0 35 36 - new option to choose to activate the HD picture lightbox 37 - bug fixes & language updates 33 38 34 39 *** version 2.2.7 -
extensions/stripped/template/picture_content.tpl
r16298 r17961 4 4 $this->assign( 'stripped', $stripped ); 5 5 {/php} 6 {if ($stripped.hdSize == 'original')} 7 {if isset($U_ORIGINAL)} 8 {assign var='displayHD' value=true} 9 {assign var='HD_url' value=$U_ORIGINAL} 6 {assign var=derivative value=$pwg->derivative($stripped.imageSize, $current.src_image)} 7 8 {if ((!isset($stripped.HDlightbox)) or ($stripped.HDlightbox))} 9 {assign var='HDlightbox' value=true} 10 {/if} 11 12 {if isset($HDlightbox)} 13 {if ($stripped.hdSize == 'original')} 14 {if isset($U_ORIGINAL)} 15 {assign var='displayHD' value=true} 16 {assign var='HD_url' value=$U_ORIGINAL} 17 {/if} 18 {else} 19 {assign var='HDderivative' value=$pwg->derivative($stripped.hdSize, $current.src_image)} 20 {assign var='HD_url' value=$HDderivative->get_url()} 21 {if (($HDderivative->get_size() != $derivative->get_size()) or ($stripped.hdSize == $stripped.imageSize))} 22 {assign var='displayHD' value=true} 23 {/if} 10 24 {/if} 11 {else} 12 {assign var='displayHD' value=true} 13 {assign var='HDderivative' value=$pwg->derivative($stripped.hdSize, $current.src_image)} 14 {assign var='HD_url' value=$HDderivative->get_url()} 15 {/if} 16 {if isset($displayHD)} 17 {if ($HDShadowbox_loaded)} 18 {assign var='pwghigh' value=true} 19 {else} 20 {assign var='winhigh' value=true} 25 {if isset($displayHD)} 26 {if ($HDShadowbox_loaded)} 27 {assign var='pwghigh' value=true} 28 {else} 29 {assign var='winhigh' value=true} 30 {/if} 21 31 {/if} 22 32 {/if} 33 34 35 36 23 37 <div id="theImg" {if ($stripped.imageFrame)}class="img_frame"{/if}> 24 38 {if isset($displayHD)} … … 38 52 {/if} 39 53 {/if} 40 {assign var=derivative value=$pwg->derivative($stripped.imageSize, $current.src_image)}41 54 <img src="{$derivative->get_url()}" {$derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" class="hideTabs"> 42 55 </div> -
extensions/stripped/template/register.tpl
r14687 r17961 47 47 <li> 48 48 <span class="property"> 49 <label for="mail_address">{' Mail address'|@translate}</label>49 <label for="mail_address">{'Email address'|@translate}</label> 50 50 </span> 51 51 <input type="text" name="mail_address" id="mail_address" value="{$F_EMAIL}" > -
extensions/stripped/theme-black.css
r14450 r17961 122 122 } 123 123 124 #theImageAndTitle {124 .js #theImageAndTitle { 125 125 position: fixed; 126 126 margin: 0; 127 width: 100%;128 127 top: 30px; 129 128 left: 0; 129 } 130 131 #theImageAndTitle { 132 width: 100%; 133 margin-top:10px; 130 134 } 131 135 -
extensions/stripped/theme-original.css
r12960 r17961 104 104 } 105 105 106 . hideTabsZone { display:none;}106 .js .hideTabsZone { display:none;} 107 107 108 108 /* Image Nav Arrows ---------------------------------------------------------------------------- */ … … 115 115 116 116 #theImageBox { position: relative;} 117 #imgprev { background: transparent url(icon/arrows.png) 0 0 no-repeat; }118 #imgnext { background: transparent url(icon/arrows.png) -20px 0 no-repeat; }117 #imgprev { background: transparent url(icon/arrows.png) 0 0 no-repeat; left:0;} 118 #imgnext { background: transparent url(icon/arrows.png) -20px 0 no-repeat; right:0;} 119 119 #imgprev:hover { background: transparent url(icon/arrows.png) 0 -150px no-repeat;} 120 120 #imgnext:hover { background: transparent url(icon/arrows.png) -20px -150px no-repeat;} -
extensions/stripped/theme-white.css
r14450 r17961 161 161 } 162 162 163 #theImageAndTitle {163 .js #theImageAndTitle { 164 164 position: fixed; 165 165 margin: 0; 166 width: 100%;167 166 top: 30px; 168 167 left: 0; 168 } 169 170 #theImageAndTitle { 171 width: 100%; 172 margin-top:10px; 169 173 } 170 174 -
extensions/stripped/theme.css
r17407 r17961 741 741 } 742 742 743 #theMainImage { 744 vertical-align:middle; 745 } 746 747 .hideTabsZone { 743 #theMainImage { vertical-align:middle;} 744 745 .hideTabsZone { display:none;} 746 747 .js .hideTabsZone { 748 display: block; 748 749 position: absolute; 749 750 top:25px; -
extensions/stripped/themeconf.inc.php
r14690 r17961 29 29 } 30 30 31 // Need upgrade from v2.1 ?32 if ((isset($stripped['paramVersion'])) && ($stripped['paramVersion'] == '2.1')) {31 // Need upgrade from v2.1 or v2.2? 32 if ((isset($stripped['paramVersion'])) && ($stripped['paramVersion'] != '2.3')) { 33 33 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 34 34 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped );
Note: See TracChangeset
for help on using the changeset viewer.