Ignore:
Timestamp:
Oct 2, 2011, 10:12:02 PM (13 years ago)
Author:
Zaphod
Message:

version 1.5.0 update

Location:
extensions/stripped/template
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/footer.tpl

    r11833 r12321  
    3333
    3434                {if isset($U_ADMIN)}
    35                         <a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a>
     35                        <a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}" class="uadmin">{'Administration'|@translate}</a>
    3636                {/if}
    3737
  • extensions/stripped/template/index.tpl

    r12269 r12321  
    55        </div>
    66        {if isset($U_EDIT) or isset($U_SLIDESHOW) or !empty($PLUGIN_INDEX_ACTIONS)}
    7                 <ul class="categoryActions">
    8                         {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
    9                         {if isset($U_EDIT)}
    10                                 <li><a href="{$U_EDIT}" title="{'edit'|@translate}">{'edit'|@translate}</a></li>
    11                         {/if}
    12                         {if isset($U_CADDIE) }
    13                                 <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}">{'caddie'|@translate}</a></li>
    14                         {/if}
    15                         {if isset($U_SLIDESHOW)}
    16                                 <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li>
    17                         {/if}
    18                 </ul>
     7                <div class="categoryActionsContainer">
     8                        <ul class="categoryActions group1">
     9                                {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     10                                {if isset($U_SLIDESHOW)}
     11                                        <li class="mainAction"><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li>
     12                                {/if}
     13                                {if isset($U_EDIT)}
     14                                        <li class="mainAction"><a href="{$U_EDIT}" title="{'edit'|@translate}">{'edit'|@translate}</a></li>
     15                                {/if}
     16                                {if isset($U_CADDIE) }
     17                                        <li class="mainAction"><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}">{'caddie'|@translate}</a></li>
     18                                {/if}
     19                        </ul>
     20                </div>
    1921        {/if}
    2022        {php}
  • extensions/stripped/template/picture.tpl

    r12153 r12321  
    2424        </div>
    2525    <ul class="randomButtons">
    26         {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
     26                <li id="imageToolBar">
     27                        {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
     28                </li>
     29                {strip}{if isset($U_SLIDESHOW_START) }
     30                        <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li>
     31                {/if}{/strip}
     32        {strip}{if isset($U_ADMIN) }
     33                        <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li>
     34        {/if}{/strip}
     35                {strip}{if isset($U_CADDIE)}
     36                        <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" rel="nofollow">{'caddie'|@translate}</a></li>
     37        {/if}{/strip}
    2738                {strip}{if isset($favorite) }
    2839                        <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{'Favorites'|@translate}</a></li>
     40        {/if}{/strip}
     41        {strip}{if !empty($U_SET_AS_REPRESENTATIVE) }
     42                        <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li>
    2943        {/if}{/strip}
    3044                {strip}{if isset($current.U_DOWNLOAD)}
    3145                        <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li>
    3246                {/if}{/strip}
    33         {strip}{if !empty($U_SET_AS_REPRESENTATIVE) }
    34                         <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li>
    35         {/if}{/strip}
    36         {strip}{if isset($U_ADMIN) }
    37                         <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li>
    38         {/if}{/strip}
    39 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*}
    40 
    41 {footer_script}
    42 {literal}function addToCadie(aElement, rootUrl, id)
    43 {
    44 if (aElement.disabled) return;
    45 aElement.disabled=true;
    46 var y = new PwgWS(rootUrl);
    47 
    48 y.callService(
    49         "pwg.caddie.add", {image_id: id} ,
    50         {
    51                 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
    52                 onSuccess: function(result) { aElement.disabled = false; }
    53         }
    54         );
    55 }{/literal}
    56 {/footer_script}
    57         <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    58                 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span>
    59         </a></li>
    60 {/if}{/strip}{*caddie management END*}
    61         {strip}{if isset($U_SLIDESHOW_START) }
    62                 <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li>
    63         {/if}{/strip}
    64                 <li id="imageToolBar">
    65                         {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    66                 </li>
    67 <!--            <li class="imageNumber">{$PHOTO}</li>-->
     47                {strip}{if isset($PLUGIN_PICTURE_ACTIONS)}
     48                        <li class="plugin_buttons plugin_buttons_group1">{$PLUGIN_PICTURE_ACTIONS}</li>
     49                {/if}{/strip}
     50                {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*}
     51                        {footer_script}
     52                                {literal}
     53                                        function addToCadie(aElement, rootUrl, id)
     54                                        {
     55                                                if (aElement.disabled) return;
     56                                                aElement.disabled=true;
     57                                                var y = new PwgWS(rootUrl);
     58                                                y.callService(
     59                                                        "pwg.caddie.add", {image_id: id} ,
     60                                                        {
     61                                                                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
     62                                                                onSuccess: function(result) { aElement.disabled = false; }
     63                                                        }
     64                                                );
     65                                        }
     66                                {/literal}
     67                        {/footer_script}
     68                {/if}{/strip}
     69                <li class="plugin_buttons plugin_buttons_group2">{*caddie management END*}</li>
     70    </ul>
    6871                {php}
    6972                        global $pwg_loaded_plugins;
     
    7174                {/php}
    7275                {if ($GMaps_loaded)}<div id="text_gmaps" style="display:none">{'GMap'|@translate}</div>{/if}
    73     </ul>
    7476        <div style="clear:both;"></div>
    7577</div> <!-- imageHeaderBar -->
     
    166168                                {/if}
    167169                                {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) }
    168                                         <li id="tabT_comments" class="tabTitle" title="{'Add a comment'|@translate}" name="comments">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</li>
     170                                        <li id="tabTcomments" class="tabTitle" title="{'Add a comment'|@translate}" name="comments">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</li>
    169171                                {/if}
    170172                        </ul>
  • extensions/stripped/template/picture_content.tpl

    r12153 r12321  
    11{php}
    2         global $pwg_loaded_plugins, $conf;
     2        global $pwg_loaded_plugins, $conf, $stripped;
    33        $this->assign('HDShadowbox_loaded', isset($pwg_loaded_plugins[ 'HDShadowbox' ]));
    4         $config = unserialize( $conf['stripped'] );
    5         $this->assign( 'stripped', $config );
     4        $this->assign( 'stripped', $stripped );
    65{/php}
    76{if isset($high)}
  • extensions/stripped/template/thumbnails.tpl

    r12153 r12321  
    11{if !empty($thumbnails)}
    22{php}
    3         global $pwg_loaded_plugins, $conf;
     3        global $pwg_loaded_plugins, $conf, $stripped;
    44        $this->assign('downloadMulti_loaded', isset($pwg_loaded_plugins[ 'download_multi' ]));
    5         $config = unserialize( $conf['stripped'] );
    6         $this->assign( 'stripped', $config );
     5        $this->assign( 'stripped', $stripped );
    76{/php}
    87<ul class="thumbList">
Note: See TracChangeset for help on using the changeset viewer.