Changeset 11059 for extensions


Ignore:
Timestamp:
May 25, 2011, 9:36:23 PM (13 years ago)
Author:
Zaphod
Message:

version 1.3.9

Location:
extensions/stripped
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/admin/admin.inc.php

    r10688 r11059  
    1919        $config['replaceActionIcons']=isset($_POST['f_replaceActionIcons']);
    2020        $config['noLowercase']=!isset($_POST['f_forceLowercase']);
     21        $config['showThumbLegend']=isset($_POST['f_showThumbLegend']);
    2122        $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']);
    2223        $config['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']);
     
    3435
    3536       
    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)));
    4238
    4339  array_push($page['infos'], l10n('Information data registered in database'));
  • extensions/stripped/admin/admin.tpl

    r10688 r11059  
    2727                                        <span class="property">{'Force text to lowercase'|@translate}</span>&nbsp;
    2828                                        <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>&nbsp;
     32                                        <input type="checkbox" name="f_showThumbLegend" {if $options.showThumbLegend}checked{/if}>
    2933                                </label></li>
    3034                        </ul>
  • extensions/stripped/admin/maintain.inc.php

    r10688 r11059  
    1313        'replaceActionIcons'                    => true,
    1414        'noLowercase'                                   => false,
     15        'showThumbLegend'                               => false,
    1516        'showTitleOnBrowsePath'                 => false,
    1617        'showDescriptionInsteadOfTitle' => false,
     
    3031    $query = '
    3132INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    32 VALUES ("stripped" , "'.addslashes(serialize($config)).'" , "stripped theme parameters");';
     33VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");';
    3334
    3435    pwg_query($query);
  • extensions/stripped/admin/upgrade.inc.php

    r10688 r11059  
    1313        'replaceActionIcons'                    => true,
    1414        'noLowercase'                                   => false,
     15        'showThumbLegend'                               => false,
    1516        'showTitleOnBrowsePath'                 => false,
    1617        'showDescriptionInsteadOfTitle' => false,
     
    3031    $query = '
    3132INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    32 VALUES ("stripped" , "'.addslashes(serialize($config)).'" , "stripped theme parameters");';
     33VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");';
    3334
    3435    pwg_query($query);
  • extensions/stripped/fix-ie7.css

    r7989 r11059  
    77.thumbnailCategories {
    88        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%;
    329}
    3310
     
    4320/* */
    4421
     22.wrap1 .wrap2,
    4523.thumbnailCategory .illustration {
    4624  display: block;
     
    4927}
    5028
     29.wrap1 .wrap2 A,
     30.wrap1 .wrap2 SPAN,
    5131.thumbnailCategory .illustration A,
    5232.thumbnailCategory .illustration SPAN {
     
    5939}
    6040
     41.wrap1 .wrap2 img,
    6142.thumbnailCategory .illustration img {
    6243  position: relative;
  • extensions/stripped/language/en_UK/theme.lang.php

    r10930 r11059  
    1212$lang['Replace all icons by ALT text']='Replace all icons by ALT text';
    1313$lang['Force text to lowercase']='Force text to lowercase';
     14$lang['Show thumbnail legend']='Show thumbnail legend';
    1415$lang['Picture page options']='Picture page options';
    1516$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  
    1212$lang['Replace all icons by ALT text']='Remplacer les icones par leur attribut ALT';
    1313$lang['Force text to lowercase']='Affichage forc&eacute; en minuscules';
     14$lang['Show thumbnail legend']='Afficher la l&eacute;gende sous les miniatures';
    1415$lang['Picture page options']='Page Image';
    1516$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  
    2727Changelog
    2828---------
     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
    2941
    3042*** version 1.3.7
  • extensions/stripped/template/index.tpl

    r9960 r11059  
    6868                {/if}
    6969
     70                {if !empty($CONTENT_DESCRIPTION) }
     71                        <div class="content_block"><div class="additional_info">
     72                                {$CONTENT_DESCRIPTION}
     73                        </div></div>
     74                {/if}
     75
    7076                {if !empty($CATEGORIES) }{$CATEGORIES}{/if}
    7177                {if !empty($THUMBNAILS) }
     
    8288                        </div>
    8389                {/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}
    9091                {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
    9192        </div> <!-- subContent -->
  • extensions/stripped/template/picture.tpl

    r11051 r11059  
    282282                                                                <td class="value">
    283283                                                                        <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;">
    284                                                                         <div>&nbsp;
    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>
    303302                                                                        </form>
    304303                                                                </td>
  • extensions/stripped/template/thumbnails.tpl

    r8081 r11059  
    11{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>
    1916                                </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}
    3038</ul>
    3139{/if}
  • extensions/stripped/theme.css

    r10688 r11059  
    450450  margin: 0;
    451451}
     452
    452453
    453454ul.thumbnails,
     
    497498}
    498499
     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/*
    499585.stuffs_block .thumbLegend,
    500586#thumbnails .thumbLegend {
     
    527613.nb-comments, .nb-hits {
    528614        font-weight: normal;
    529         display: none;
    530 }
    531 .zero {
    532615        display: none;
    533616}
     
    9831066#light_slideshow .navButton {
    9841067        opacity:0.5;
    985         filter:alpha(opacity:50);
     1068        /*filter:alpha(opacity:50); not working for IE8 */
    9861069        -moz-opacity:0.5;
    9871070        -khtml-opacity: 0.5;
     
    13351418        display: inline-block;
    13361419        width: 180px;
     1420}
     1421
     1422#profile .property {
     1423        display: inline-block;
     1424        width: 280px;
    13371425}
    13381426
Note: See TracChangeset for help on using the changeset viewer.