Changeset 25994


Ignore:
Timestamp:
12/17/13 23:11:17 (6 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/PwgCarbon_dft
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/PwgCarbon_dft/local_head.tpl

    r21058 r25994  
    11{combine_script id='reflection' load='header' require='jquery' path='themes/PwgCarbon_dft/js/reflection.js'} 
     2{combine_script id='menu' load='header' require='jquery' path='themes/PwgCarbon_dft/js/menu.js'} 
     3{combine_script id='hoverIntent' load='header' require='jquery' path='themes/PwgCarbon_dft/js/jquery.hoverIntent.minified.js'} 
     4{combine_script id='columnizer' load='footer' require='jquery' path='themes/PwgCarbon_dft/js/jquery.columnizer.js'} 
  • extensions/PwgCarbon_dft/template/header.tpl

    r22310 r25994  
    5757        {/foreach} 
    5858{/if} 
    59 {combine_script id='menu' load='header' require='jquery' path='themes/PwgCarbon_dft/js/menu.js'} 
    60 {combine_script id='hoverIntent' load='header' require='jquery' path='themes/PwgCarbon_dft/js/jquery.hoverIntent.minified.js'} 
    61 {combine_script id='columnizer' load='header' require='jquery' path='themes/PwgCarbon_dft/js/columnizer.js'} 
    6259</head> 
    6360 
  • extensions/PwgCarbon_dft/template/index.tpl

    r22309 r25994  
     1{combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} 
    12{$MENUBAR} 
    23 
     
    1011{if !empty($image_orders)} 
    1112                <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    12                         <span class="pwg-icon pwg-icon-sort">&nbsp;</span><span class="pwg-button-text">{'Sort order'|@translate}</span> 
     13                        <span class="pwg-icon pwg-icon-sort"></span><span class="pwg-button-text">{'Sort order'|@translate}</span> 
    1314                </a> 
    1415                <div id="sortOrderBox" class="switchBox"> 
     
    2324                </div> 
    2425 
     26                {footer_script}(SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script} 
    2527                {/strip}</li> 
    2628{/if} 
    2729{if !empty($image_derivatives)} 
    2830                <li>{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    29                         <span class="pwg-icon pwg-icon-sizes">&nbsp;</span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 
     31                        <span class="pwg-icon pwg-icon-sizes"></span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 
    3032                </a> 
    3133                <div id="derivativeSwitchBox" class="switchBox"> 
     
    4042                </div> 
    4143 
     44                {footer_script}(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script} 
    4245                {/strip}</li> 
    4346{/if} 
    4447 
    4548{if isset($favorite)} 
    46                 <li><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    47                         <span class="pwg-icon pwg-icon-favorite-del">&nbsp;</span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span> 
     49                <li id="cmdFavorite"><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     50                        <span class="pwg-icon pwg-icon-favorite-del"></span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span> 
    4851                </a></li> 
    4952{/if} 
    5053{if isset($U_CADDIE)} 
    51                 <li><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button"> 
    52                         <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'Caddie'|@translate}</span> 
     54                <li id="cmdCaddie"><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button"> 
     55                        <span class="pwg-icon pwg-icon-caddie-add"></span><span class="pwg-button-text">{'Caddie'|@translate}</span> 
    5356                </a></li> 
    5457{/if} 
    5558{if isset($U_EDIT)} 
    56                 <li><a href="{$U_EDIT}" title="{'Edit album'|@translate}" class="pwg-state-default pwg-button"> 
    57                         <span class="pwg-icon pwg-icon-category-edit">&nbsp;</span><span class="pwg-button-text">{'Edit'|@translate}</span> 
     59                <li id="cmdEditAlbum"><a href="{$U_EDIT}" title="{'Edit album'|@translate}" class="pwg-state-default pwg-button"> 
     60                        <span class="pwg-icon pwg-icon-category-edit"></span><span class="pwg-button-text">{'Edit'|@translate}</span> 
    5861                </a></li> 
    5962{/if} 
     
    6164                {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 
    6265                <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    63                         <span class="pwg-icon pwg-icon-help">&nbsp;</span><span class="pwg-button-text">(?)</span> 
     66                        <span class="pwg-icon pwg-icon-help"></span><span class="pwg-button-text">(?)</span> 
    6467                </a></li> 
    6568{/if} 
    6669{if isset($U_SLIDESHOW)} 
    67                 <li>{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    68                         <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span> 
     70                <li id="cmdSlideshow">{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     71                        <span class="pwg-icon pwg-icon-slideshow"></span><span class="pwg-button-text">{'slideshow'|@translate}</span> 
    6972                </a>{/strip}</li> 
    7073{/if} 
    7174{if isset($U_MODE_FLAT)} 
    7275                <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    73                         <span class="pwg-icon pwg-icon-category-view-flat">&nbsp;</span><span class="pwg-button-text">{'display all photos in all sub-albums'|@translate}</span> 
     76                        <span class="pwg-icon pwg-icon-category-view-flat"></span><span class="pwg-button-text">{'display all photos in all sub-albums'|@translate}</span> 
    7477                </a>{/strip}</li> 
    7578{/if} 
    7679{if isset($U_MODE_NORMAL)} 
    7780                <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button"> 
    78                         <span class="pwg-icon pwg-icon-category-view-normal">&nbsp;</span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span> 
     81                        <span class="pwg-icon pwg-icon-category-view-normal"></span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span> 
    7982                </a>{/strip}</li> 
    8083{/if} 
    8184{if isset($U_MODE_POSTED)} 
    8285                <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    83                         <span class="pwg-icon pwg-icon-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span> 
     86                        <span class="pwg-icon pwg-icon-calendar"></span><span class="pwg-button-text">{'Calendar'|@translate}</span> 
    8487                </a>{/strip}</li> 
    8588{/if} 
    8689{if isset($U_MODE_CREATED)} 
    8790                <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    88                         <span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span> 
     91                        <span class="pwg-icon pwg-icon-camera-calendar"></span><span class="pwg-button-text">{'Calendar'|@translate}</span> 
    8992                </a>{/strip}</li> 
    9093{/if} 
     94 
     95{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if} 
    9196{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 
    9297        </ul> 
     
    98103{if isset($chronology_views)} 
    99104<div class="calendarViews">{'View'|@translate}: 
    100         <select onchange="document.location = this.options[this.selectedIndex].value;"> 
    101                 {foreach from=$chronology_views item=view} 
    102                 <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option> 
     105 
     106        <a id="calendarViewSwitchLink" href="#"> 
     107        {foreach from=$chronology_views item=view}{if $view.SELECTED}{$view.CONTENT}{/if}{/foreach} 
     108        </a> 
     109        <div id="calendarViewSwitchBox" class="switchBox"> 
     110                {foreach from=$chronology_views item=view name=loop}{if !$smarty.foreach.loop.first}<br>{/if} 
     111                <span{if !$view.SELECTED} style="visibility:hidden"{/if}>&#x2714; </span><a href="{$view.VALUE}">{$view.CONTENT}</a> 
    103112                {/foreach} 
    104         </select> 
     113 
     114        </div> 
     115        {footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script} 
    105116</div> 
    106117{/if} 
     
    118129 
    119130{if !empty($category_search_results)} 
    120 <div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 
     131<div class="category_search_results" style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 
    121132        <em><strong> 
    122133        {foreach from=$category_search_results item=res name=res_loop} 
     
    129140 
    130141{if !empty($tag_search_results)} 
    131 <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 
     142<div class="tag_search_results" style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 
    132143        <em><strong> 
    133144        {foreach from=$tag_search_results item=res name=res_loop} 
     
    149160{/if} 
    150161 
     162{if !empty($CONTENT)}{$CONTENT}{/if} 
    151163{if !empty($CATEGORIES)}{$CATEGORIES}{/if} 
    152164{if !empty($cats_navbar)} 
     
    155167 
    156168{if !empty($THUMBNAILS)} 
     169<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> 
    157170<ul class="thumbnails" id="thumbnails"> 
    158171{$THUMBNAILS} 
  • extensions/PwgCarbon_dft/template/menubar_categories.tpl

    r19209 r25994  
    1         <span class="dd_wrapper">{'Categories'|@translate}</span> 
     1<span class="dd_wrapper">{'Albums'|@translate}</span> 
    22         
    3                 <div class="sub" style="width:700px"> 
    4                 {assign var='ref_level' value=0} 
    5                         <div id="menu_cat_act"> 
    6                                 <div id="nbImg"> 
    7                         <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> 
    8                                 </div> 
    9                                 <div id="filter"> 
    10                                         {if isset($U_START_FILTER)} 
    11                                                 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 
    12                                                 <span class="pwg-icon pwg-icon-filter"> </span> 
    13                                                 </a> 
    14                                         {/if} 
    15                                         {if isset($U_STOP_FILTER)} 
    16                                         <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span 
    17                                         class="pwg-icon pwg-icon-filter-del"> </span></a> 
    18                                         {/if} 
    19                                 </div> 
    20  
    21                         </div> 
     3<div class="sub" style="width:700px"> 
     4        <div id="menu_cat_act"> 
     5                <div id="nbImg"> 
     6                        <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p> 
     7                </div> 
     8                <div id="filter"> 
     9                        {if isset($U_START_FILTER)} 
     10                        <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 
     11                                <span class="pwg-icon pwg-icon-filter"> </span> 
     12                        </a> 
     13                        {/if} 
     14                         
     15                        {if isset($U_STOP_FILTER)} 
     16                                <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"> 
     17                                <span class="pwg-icon pwg-icon-filter-del"> </span> 
     18                                </a> 
     19                        {/if} 
     20                </div> 
     21        </div> 
     22        <div class="mcol"> 
     23        {assign var='ref_level' value=0}         
     24        {foreach from=$block->data.MENU_CATEGORIES item=cat} 
     25                {if $cat.LEVEL > $ref_level} 
     26                        <ul> 
     27                {else} 
     28                        </li> 
     29                        {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)} 
     30                {/if} 
     31                        <li {if $cat.SELECTED}class="selected dontsplit"{/if}class="level{$cat.LEVEL} dontsplit"> 
     32                                <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}</a> 
     33                                {if $cat.count_images > 0} 
     34                                        <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span> 
     35                                {/if} 
    2236                                 
    23                                  
    24                                 {foreach from=$block->data.MENU_CATEGORIES item=cat} 
    25                                 {if $cat.LEVEL > $ref_level} 
    26                                 <ul class="mcol"> 
    27                                 {else} 
    28  
    29                                                 </li> 
    30                                                         {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} 
    31                                                   {/if} 
    32                                                    <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}"> 
    33                                                    <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}   [{$cat.count_images}] </a> 
    34                                                   {assign var='ref_level' value=$cat.LEVEL} 
    35                                                 {/foreach} 
    36                                         {'</li></ul>'|@str_repeat:$ref_level}    
    37  
    38                                                 {if isset($block->data.U_UPLOAD)} 
    39                                                  
    40                                         <ul> 
    41                                                  
    42                                                         <li> 
    43                                                                 <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> 
    44                                                         </li> 
    45  
    46                                         </ul> 
    47                                                  
    48                                         {/if} 
    49                  
    50  
    51                 </div> 
     37                                {if !empty($cat.icon_ts)} 
     38                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)"> 
     39                                {/if} 
     40                {assign var='ref_level' value=$cat.LEVEL} 
     41        {/foreach} 
     42        {'</li></ul>'|@str_repeat:$ref_level}    
     43        </div> 
     44</div> 
  • extensions/PwgCarbon_dft/template/picture.tpl

    r21058 r25994  
    1 {* Example of resizeable *} 
    2 {* 
    3 {include file='include/autosize.inc.tpl'} 
    4 *} 
    5  
     1{combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} 
    62{combine_script id='tinyscrollbar' load='header' require='jquery' path='themes/PwgCarbon_dft/js/tinyscrollbar.js'} 
    73 
    8  
    9  
    10 {if isset($MENUBAR)}{$MENUBAR}{/if} 
    11 {if isset($errors)} 
    12 <div class="errors"> 
    13   <ul> 
    14     {foreach from=$errors item=error} 
    15     <li>{$error}</li> 
    16     {/foreach} 
    17   </ul> 
    18 </div> 
    19 {/if} 
    20  
    21  
    22  
    23 {if isset($infos)} 
    24 <div class="infos"> 
    25   <ul> 
    26     {foreach from=$infos item=info} 
    27     <li>{$info}</li> 
    28     {/foreach} 
    29   </ul> 
    30 </div> 
     4 {if isset($MENUBAR)}{$MENUBAR}{/if} 
     5  
     6{if isset($errors) or not empty($infos)} 
     7{include file='infos_errors.tpl'} 
    318{/if} 
    329 
     
    3411 
    3512<div id="imageHeaderBar"> 
    36   <div class="browsePath"> 
    37     {$SECTION_TITLE} 
    38     {$LEVEL_SEPARATOR}{$current.TITLE} 
    39   </div> 
     13        <div class="browsePath"> 
     14                {$SECTION_TITLE}<span class="browsePathSeparator">{$LEVEL_SEPARATOR}</span>{$current.TITLE} 
     15        </div> 
    4016  <div class="imageNumber"> {$PHOTO}</div> 
    4117 
    4218</div> 
    4319 
    44  
    45  
    4620<div id="theImage"> 
    47  
    48  
    4921        <div id="imgContainer"> 
    5022 
     
    7547                         
    7648                        {if $comment_add.SHOW_AUTHOR} 
    77                                 <label>{'Author'|@translate}<input type="text" name="author"></label> 
    78                         {/if} 
    79                                 <label class="addcom"><textarea name="content" id="contentid" rows="6" cols="100">{$comment_add.CONTENT}</textarea></label> 
    80                                 <input type="hidden" name="key" value="{$comment_add.KEY}"> 
    81                                 <input type="submit" value="{'Submit'|@translate}"> 
     49                                        <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> 
     50                                        <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p> 
     51                                {/if} 
     52                                {if $comment_add.SHOW_EMAIL} 
     53                                        <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> 
     54                                        <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p> 
     55                                {/if} 
     56                                <p><label for="website_url">{'Website'|@translate} :</label></p> 
     57                                <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p> 
     58                                <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p> 
     59                                <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> 
     60                                <p><input type="hidden" name="key" value="{$comment_add.KEY}"> 
     61                                        <input type="submit" value="{'Submit'|@translate}"></p> 
    8262                </fieldset> 
    8363        </form> 
     
    120100</p> 
    121101{/if} 
    122  
    123  
    124  
    125  
    126  
    127  
    128  
    129  
    130102<div class="panel"> 
    131103 
    132104<div id="imageToolBar"> 
     105 
    133106<div class="actionButtons"> 
    134 {if count($current.unique_derivatives)>1} 
     107{if isset($current.unique_derivatives) && count($current.unique_derivatives)>1} 
    135108{footer_script require='jquery'}{literal} 
    136109function changeImgSrc(url,typeSave,typeMap) 
     
    144117        } 
    145118        jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); 
    146         jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); 
     119        jQuery('#derivativeChecked'+typeMap).css('visibility','visible'); 
    147120        document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; 
    148121} 
    149 jQuery("#derivativeSwitchLink").click(function() { 
    150         var elt = jQuery("#derivativeSwitchBox"); 
    151         elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) 
    152                 .toggle(); 
    153 }); 
    154 jQuery("#derivativeSwitchBox").on("mouseleave click", function() { 
    155         jQuery(this).hide(); 
    156 }); 
     122(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox"); 
    157123{/literal}{/footer_script} 
    158124{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    159   <span class="pwg-icon pwg-icon-sizes">&nbsp;</span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 
     125  <span class="pwg-icon pwg-icon-sizes"></span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 
    160126</a> 
    161127<div id="derivativeSwitchBox" class="switchBox"> 
    162128  <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 
    163129  {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 
    164   <span class="switchCheck" id="derivativeChecked{$derivative_type}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>&#x2714; </span> 
     130  <span class="switchCheck" id="derivativeChecked{$derivative->get_type()}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>&#x2714; </span> 
    165131  <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')"> 
    166132    {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> 
     
    168134  {/foreach} 
    169135  {if isset($U_ORIGINAL)} 
     136    {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 
    170137  <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" rel="nofollow">{'Original'|@translate}</a> 
    171138  {/if} 
     
    175142{strip}{if isset($U_SLIDESHOW_START)} 
    176143        <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    177                 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 
     144                <span class="pwg-icon pwg-icon-slideshow"></span><span class="pwg-button-text">{'slideshow'|@translate}</span> 
    178145        </a> 
    179146{/if}{/strip} 
    180147{strip}{if isset($U_METADATA)} 
    181148        <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    182                 <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 
     149                <span class="pwg-icon pwg-icon-camera-info"></span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 
    183150        </a> 
    184151{/if}{/strip} 
    185152{strip}{if isset($current.U_DOWNLOAD)} 
    186153        <a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    187                 <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'Download'|@translate}</span> 
    188         </a> 
    189 {/if}{/strip} 
     154                <span class="pwg-icon pwg-icon-save"></span><span class="pwg-button-text">{'Download'|@translate}</span> 
     155        </a> 
     156{/if}{/strip} 
     157{if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if} 
    190158{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 
    191159{strip}{if isset($favorite)} 
    192160        <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow"> 
    193                 <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> 
     161                <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"></span><span class="pwg-button-text">{'Favorites'|@translate}</span> 
    194162        </a> 
    195163{/if}{/strip} 
    196164{strip}{if isset($U_SET_AS_REPRESENTATIVE)} 
    197         <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    198                 <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> 
    199         </a> 
    200 {/if}{/strip} 
    201 {strip}{if isset($U_ADMIN)} 
    202         <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    203                 <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'Edit'|@translate}</span> 
     165        <a id="cmdSetRepresentative" href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     166                <span class="pwg-icon pwg-icon-representative"></span><span class="pwg-button-text">{'representative'|@translate}</span> 
     167        </a> 
     168{/if}{/strip} 
     169{strip}{if isset($U_PHOTO_ADMIN)} 
     170        <a id="cmdEditPhoto" href="{$U_PHOTO_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     171                <span class="pwg-icon pwg-icon-edit"></span><span class="pwg-button-text">{'Edit'|@translate}</span> 
    204172        </a> 
    205173{/if}{/strip} 
  • extensions/PwgCarbon_dft/theme.css

    r22310 r25994  
    3737H2{color:#FFF;background-image:url(images/border_dt.png);background-repeat:repeat-x;background-position:center bottom;height:25px;margin:0 5px 5px;padding:5px 0 0} 
    3838#fullTagCloud{background:url(images/bg_content.png) repeat scroll 0 0 transparent;min-height:500px} 
    39 .switchBox{background-color:gray;z-index:1000;margin-top:30px} 
     39.switchBox{background-color:gray;z-index:1000;margin-top:4px} 
    4040#sortOrderBox{width:250px} 
    4141 
     
    7676#topnav{margin:0;padding:0 2px 0 0;list-style:none;height:30px;position:relative;z-index:999;display:inline-block} 
    7777#topnav .liSub{float:left;position:relative;background:url(images/menu/li_border.png) no-repeat right top;padding-right:2px} 
    78 #topnav .sub, #topnav #loger{position:absolute;top:30px;margin-left:0;background:#FFF;padding:5px 8px 10px 5px;float:left;max-width:100em;min-width:200px;display:none;max-height:500px;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px;box-shadow:0px 0px 5px #5A5A5A;z-index:100} 
     78ul#topnav li .sub,ul#topnav li #loger{background:#FFF;position:absolute;top:30px;margin-left:0;padding:5px 8px 10px;float:left;max-width:100em;min-width:200px;max-height:500px;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px;box-shadow:0px 0px 5px #5A5A5A;z-index:0} 
    7979#topnav #loger{z-index:50} 
    8080.sub{z-index:100;max-width:600px} 
     
    8585ul#topnav .sub ul li.selected a{background:url(images/menu/navlist_arrow_hover.png) no-repeat 0 5px;color:#4C4C4C;text-decoration:none;border:none} 
    8686ul#topnav .sub ul .level1 li,ul#topnav .sub ul .level1 li .selected{border:none;background:none} 
    87 ul#topnav .sub ul li a,ul#topnav #loger ul li a{float:none;text-indent:0;height:auto;background:url(images/menu/navlist_arrow.png) no-repeat 0 5px;margin:0 8px;display:block;text-decoration:none;color:#757575;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 12px} 
     87ul#topnav .sub ul li a,ul#topnav #loger ul li a{float:none;text-indent:0;height:auto;background:url(images/menu/navlist_arrow.png) no-repeat 0 5px;margin:0 8px;display:inline;text-decoration:none;color:#757575;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 12px} 
    8888ul#topnav .sub ul li a:hover,ul#topnav .sub #menuTagCloud div a:hover{color:#c4c4c4;background:url(images/menu/navlist_arrow_hover.png) no-repeat 0 5px} 
    8989ul#topnav li .sub ul,ul#topnav #loger ul{list-style:none outside none;margin:0 5px 0 8px;padding:0} 
     
    123123#imageHeaderBar{margin:0 0 20px;padding:50px 0 0} 
    124124#groupbuttons{margin:auto;width:200px} 
    125 #slideshow #groupbuttons{width:30px} 
     125#slideshow #groupbuttons{width:auto} 
    126126#imgContainer{position:relative;margin-left:auto;margin-right:auto;text-align:left} 
    127127#imgContent{position:relative;display:table;margin:auto} 
     
    137137.linkNext{position:absolute;right:-80px;top:40%} 
    138138.imageNumber{text-align:right;margin-right:20px} 
     139.showtitle{background:none} 
    139140 
    140141/*=========================================comment on picture page======================================================*/ 
     
    184185.infoTable .value a,.infoTable .value,.infoTable2 .value a,.infoTable2 .value{color:silver} 
    185186TABLE#Metadata th{font-size:120%;color:#FFF;padding-bottom:10px;text-align:left} 
    186 .panel .switchBox{top:60px} 
     187.panel .switchBox{top:30px} 
    187188 
    188189/*======================================================plugin======================================================*/ 
    189190.contact-form-content{background:url(images/bg_content.png) repeat scroll 0 0 transparent} 
    190191#mbContact dd{padding:0!important} 
     192 
     193 
  • extensions/PwgCarbon_dft/themeconf.inc.php

    r19825 r25994  
    22/* 
    33Theme Name: PwgCarbon_dft 
    4 Version: auto 
     4Version: 1.5 
    55Description: theme PwgCarbon_dft pour Piwigo. 
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=639 
Note: See TracChangeset for help on using the changeset viewer.