Changeset 11059 for extensions
- Timestamp:
- May 25, 2011, 9:36:23 PM (13 years ago)
- Location:
- extensions/stripped
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/admin.inc.php
r10688 r11059 19 19 $config['replaceActionIcons']=isset($_POST['f_replaceActionIcons']); 20 20 $config['noLowercase']=!isset($_POST['f_forceLowercase']); 21 $config['showThumbLegend']=isset($_POST['f_showThumbLegend']); 21 22 $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']); 22 23 $config['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']); … … 34 35 35 36 36 $query = ' 37 UPDATE '.CONFIG_TABLE.' 38 SET value = "'.addslashes(serialize($config)).'" 39 WHERE param = "stripped" 40 ;'; 41 pwg_query($query); 37 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 42 38 43 39 array_push($page['infos'], l10n('Information data registered in database')); -
extensions/stripped/admin/admin.tpl
r10688 r11059 27 27 <span class="property">{'Force text to lowercase'|@translate}</span> 28 28 <input type="checkbox" name="f_forceLowercase" {if !($options.noLowercase)}checked{/if}> 29 </label></li> 30 <li><label> 31 <span class="property">{'Show thumbnail legend'|@translate}</span> 32 <input type="checkbox" name="f_showThumbLegend" {if $options.showThumbLegend}checked{/if}> 29 33 </label></li> 30 34 </ul> -
extensions/stripped/admin/maintain.inc.php
r10688 r11059 13 13 'replaceActionIcons' => true, 14 14 'noLowercase' => false, 15 'showThumbLegend' => false, 15 16 'showTitleOnBrowsePath' => false, 16 17 'showDescriptionInsteadOfTitle' => false, … … 30 31 $query = ' 31 32 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 32 VALUES ("stripped" , "'. addslashes(serialize($config)).'" , "stripped theme parameters");';33 VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");'; 33 34 34 35 pwg_query($query); -
extensions/stripped/admin/upgrade.inc.php
r10688 r11059 13 13 'replaceActionIcons' => true, 14 14 'noLowercase' => false, 15 'showThumbLegend' => false, 15 16 'showTitleOnBrowsePath' => false, 16 17 'showDescriptionInsteadOfTitle' => false, … … 30 31 $query = ' 31 32 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 32 VALUES ("stripped" , "'. addslashes(serialize($config)).'" , "stripped theme parameters");';33 VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");'; 33 34 34 35 pwg_query($query); -
extensions/stripped/fix-ie7.css
r7989 r11059 7 7 .thumbnailCategories { 8 8 margin-bottom:5px; 9 }10 11 .thumbnails SPAN.wrap2,12 #thumbnails SPAN.wrap2 {13 display: block;14 position: relative;15 text-align: left;16 }17 18 .thumbnails SPAN.wrap2 A,19 .thumbnails SPAN.wrap2 SPAN,20 #thumbnails SPAN.wrap2 A,21 #thumbnails SPAN.wrap2 SPAN {22 width:170px;23 position: absolute;24 top: 50%;25 text-align: center;26 }27 28 .thumbnails SPAN.wrap2 img,29 #thumbnails IMG.thumbnail {30 position: relative;31 top: -49.5%;32 9 } 33 10 … … 43 20 /* */ 44 21 22 .wrap1 .wrap2, 45 23 .thumbnailCategory .illustration { 46 24 display: block; … … 49 27 } 50 28 29 .wrap1 .wrap2 A, 30 .wrap1 .wrap2 SPAN, 51 31 .thumbnailCategory .illustration A, 52 32 .thumbnailCategory .illustration SPAN { … … 59 39 } 60 40 41 .wrap1 .wrap2 img, 61 42 .thumbnailCategory .illustration img { 62 43 position: relative; -
extensions/stripped/language/en_UK/theme.lang.php
r10930 r11059 12 12 $lang['Replace all icons by ALT text']='Replace all icons by ALT text'; 13 13 $lang['Force text to lowercase']='Force text to lowercase'; 14 $lang['Show thumbnail legend']='Show thumbnail legend'; 14 15 $lang['Picture page options']='Picture page options'; 15 16 $lang['Show image title on top of the page (after browse path)']='Show image title on top of the page (after browse path)'; -
extensions/stripped/language/fr_FR/theme.lang.php
r10930 r11059 12 12 $lang['Replace all icons by ALT text']='Remplacer les icones par leur attribut ALT'; 13 13 $lang['Force text to lowercase']='Affichage forcé en minuscules'; 14 $lang['Show thumbnail legend']='Afficher la légende sous les miniatures'; 14 15 $lang['Picture page options']='Page Image'; 15 16 $lang['Show image title on top of the page (after browse path)']='Afficher le titre de l\'image en haut de la page'; -
extensions/stripped/readme.txt
r10688 r11059 27 27 Changelog 28 28 --------- 29 30 *** version 1.3.9 31 32 - fixed issue with category description 33 - fixed issue with ratings 34 - new option to display thumbnail legend 35 - improved compatibility with downloadmulti 36 - minor bug corrections 37 38 *** version 1.3.8 39 40 - new translation 29 41 30 42 *** version 1.3.7 -
extensions/stripped/template/index.tpl
r9960 r11059 68 68 {/if} 69 69 70 {if !empty($CONTENT_DESCRIPTION) } 71 <div class="content_block"><div class="additional_info"> 72 {$CONTENT_DESCRIPTION} 73 </div></div> 74 {/if} 75 70 76 {if !empty($CATEGORIES) }{$CATEGORIES}{/if} 71 77 {if !empty($THUMBNAILS) } … … 82 88 </div> 83 89 {/if} 84 {if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if} 85 {if !empty($CONTENT_DESCRIPTION) } 86 <div class="content_block"><div class="additional_info"> 87 {$CONTENT_DESCRIPTION} 88 </div></div> 89 {/if} 90 {if !empty($PLUGIN_INDEX_CONTENT_END) }<div class="content_block">{$PLUGIN_INDEX_CONTENT_END}</div>{/if} 90 91 {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if} 91 92 </div> <!-- subContent --> -
extensions/stripped/template/picture.tpl
r11051 r11059 282 282 <td class="value"> 283 283 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 284 <div> 285 {foreach from=$rating.marks item=mark name=rate_loop} 286 {if !$smarty.foreach.rate_loop.first} | {/if} 287 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 288 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 289 {else} 290 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 291 {/if} 292 {/foreach} 293 {combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'} 294 {footer_script} 295 makeNiceRatingForm({ldelim} 296 rootUrl: '{$ROOT_URL|@escape:"javascript"}', 297 image_id: {$current.id}, 298 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", 299 ratingSummaryElement: document.getElementById("ratingSummary") 300 {rdelim}); 301 {/footer_script} 302 </div> 284 <div> 285 {foreach from=$rating.marks item=mark name=rate_loop} 286 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 287 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 288 {else} 289 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 290 {/if} 291 {/foreach} 292 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 293 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 294 {footer_script} 295 var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; 296 _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, 297 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 298 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); 299 {/footer_script} 300 {/strip} 301 </div> 303 302 </form> 304 303 </td> -
extensions/stripped/template/thumbnails.tpl
r8081 r11059 1 1 {if !empty($thumbnails)} 2 <ul> 3 {foreach from=$thumbnails item=thumbnail} 4 <li> 5 <span class="wrap1"> 6 <span class="wrap2"> 7 <a href="{$thumbnail.URL}"> 8 <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}"{if isset($thumbnail.NAME)}title="{$thumbnail.NAME}"{else}title="{$thumbnail.TN_TITLE}{/if}" /> 9 </a> 10 </span> 11 <span class="thumbLegend"> 12 {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if} 13 {if !empty($thumbnail.icon_ts)} 14 <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)"> 15 {/if} 16 {if isset($thumbnail.NB_COMMENTS)} 17 <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> 18 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} 2 {php} 3 global $pwg_loaded_plugins, $conf; 4 $this->assign('DonwloadMulti_loaded', isset($pwg_loaded_plugins[ 'DownloadMulti' ])); 5 $config = unserialize( $conf['stripped'] ); 6 $this->assign( 'stripped', $config ); 7 {/php} 8 <ul class="thumbList"> 9 {strip}{foreach from=$thumbnails item=thumbnail} 10 <li> 11 <span class="wrap1"> 12 <span class="wrap2 {if !($stripped.showThumbLegend)}wrap2full{/if}"> 13 <a href="{$thumbnail.URL}"> 14 <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}"{if ((isset($thumbnail.NAME))&!(DownloadMulti_loaded))}title="{$thumbnail.NAME}"{else}title="{$thumbnail.TN_TITLE}{/if}" /> 15 </a> 19 16 </span> 20 {/if} 21 {* {if isset($thumbnail.NB_HITS)} 22 <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 23 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 24 </span> 25 {/if} *} 26 </span> 27 </span> 28 </li> 29 {/foreach} 17 <span class="thumbLegend {if !($stripped.showThumbLegend)}noLegend{/if}"> 18 {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if} 19 {if !empty($thumbnail.icon_ts)} 20 <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)"> 21 {/if} 22 <div class="thumbStats"> 23 {if isset($thumbnail.NB_COMMENTS)} 24 <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> 25 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} 26 </span> 27 {/if} 28 {if isset($thumbnail.NB_HITS)} 29 <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 30 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 31 </span> 32 {/if} 33 </div> 34 </span> 35 </span> 36 </li> 37 {/foreach}{/strip} 30 38 </ul> 31 39 {/if} -
extensions/stripped/theme.css
r10688 r11059 450 450 margin: 0; 451 451 } 452 452 453 453 454 ul.thumbnails, … … 497 498 } 498 499 500 501 / * 502 503 .wrap1 { 504 display:inline-block; 505 height:170px; 506 } 507 508 .wrap1 .wrap2 { 509 margin:5px 0 0; 510 vertical-align:middle; 511 border:none; 512 float:none; 513 width:170px; 514 table-layout:fixed; 515 display:table; 516 } 517 518 .wrap1 .wrap2, 519 .wrap1 .wrap2 a{ 520 height:130px; 521 } 522 523 .wrap1 .wrap2full, 524 .wrap1 .wrap2full a { 525 height:160px!important; 526 } 527 528 .wrap1 .wrap2 a { 529 display:table-cell; 530 width:170px; 531 vertical-align:middle; 532 overflow:hidden; 533 } 534 535 .wrap1 .wrap2 .thumbnail , 536 .wrap1 .wrap2 .thumbnail :hover { 537 display:block; 538 margin:auto; 539 border:solid 1px #404040; 540 max-width:160px; 541 } 542 543 .wrap1 .wrap2 .thumbnail { 544 max-height:128px; 545 } 546 547 .wrap1 .wrap2full .thumbnail { 548 max-height:158px!important; 549 } 550 551 .wrap1 .noLegend { 552 display:none; 553 } 554 555 .wrap1 .thumbLegend { 556 width:160px; 557 height:35px; 558 overflow: hidden; 559 padding:0 5px; 560 display: table-cell; 561 vertical-align:middle; 562 color:#888; 563 } 564 565 .wrap1 .thumbLegend { 566 margin: 0; 567 font-weight:normal; 568 font-variant:normal; 569 font-size:107.692%; 570 line-height:16px; 571 } 572 573 .wrap1 .thumbLegend .thumbStats { 574 display:none 575 } 576 577 /* fin new */ 578 579 .zero { 580 display: none; 581 } 582 583 584 /* 499 585 .stuffs_block .thumbLegend, 500 586 #thumbnails .thumbLegend { … … 527 613 .nb-comments, .nb-hits { 528 614 font-weight: normal; 529 display: none;530 }531 .zero {532 615 display: none; 533 616 } … … 983 1066 #light_slideshow .navButton { 984 1067 opacity:0.5; 985 filter:alpha(opacity:50);1068 /*filter:alpha(opacity:50); not working for IE8 */ 986 1069 -moz-opacity:0.5; 987 1070 -khtml-opacity: 0.5; … … 1335 1418 display: inline-block; 1336 1419 width: 180px; 1420 } 1421 1422 #profile .property { 1423 display: inline-block; 1424 width: 280px; 1337 1425 } 1338 1426
Note: See TracChangeset
for help on using the changeset viewer.