source: trunk/themes/default/template/index.tpl @ 13773

Revision 13773, 7.7 KB checked in by rvelices, 8 years ago (diff)
  • remove unnecessary classes switchSelected switchUnselected (same effect acheved through visibility)
  • remove unused css
  • Property svn:eol-style set to LF
Line 
1{$MENUBAR}
2{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
3<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
4<div class="titrePage">
5        <ul class="categoryActions">
6{if !empty($image_orders)}
7                <li>{strip}<a href="javascript:toggleSortOrderBox()" id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
8                        <span class="pwg-icon pwg-icon-sort">&nbsp;</span><span class="pwg-button-text">{'Sort order'|@translate}</span>
9                </a>
10                <div id="sortOrderBox" class="switchBox" style="display:none" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox(1)">
11                        <div class="switchBoxTitle">{'Sort order'|@translate}</div>
12                        {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
13                        {if $image_order.SELECTED}
14                        <span>&#x2714; </span>{$image_order.DISPLAY}
15                        {else}
16                        <span style="visibility:hidden">&#x2714; </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a>
17                        {/if}
18                        {/foreach}
19                </div>
20                {footer_script}{literal}
21function toggleSortOrderBox(forceHide) {
22        var elt = document.getElementById("sortOrderBox"),
23                ePos = document.getElementById("sortOrderLink");
24        if (!forceHide && elt.style.display==="none") {
25                elt.style.left = ePos.offsetLeft+"px";
26                elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px";
27                elt.style.display="";
28        }
29        else
30                elt.style.display="none";
31}
32                {/literal}{/footer_script}
33                {/strip}</li>
34{/if}
35
36{if !empty($image_derivatives)}
37                <li>{strip}<a href="javascript:toggleImageDerivativesBox()" id="derivativeChooseLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
38                        <span class="pwg-icon pwg-icon-sizes">&nbsp;</span><span class="pwg-button-text">{'Photo sizes'|@translate}</span>
39                </a>
40                <div id="derivativeSwitchBox" class="switchBox" style="display:none" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox(1)">
41                        <div class="switchBoxTitle">{'Photo sizes'|@translate}</div>
42                        {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
43                        {if $image_derivative.SELECTED}
44                        <span>&#x2714; </span>{$image_derivative.DISPLAY}
45                        {else}
46                        <span style="visibility:hidden">&#x2714; </span><a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a>
47                        {/if}
48                        {/foreach}
49                </div>
50                {footer_script}{literal}
51function toggleImageDerivativesBox(forceHide) {
52        var elt = document.getElementById("derivativeSwitchBox"),
53                ePos = document.getElementById("derivativeChooseLink");
54        if (!forceHide && elt.style.display==="none") {
55                elt.style.left = (ePos.offsetLeft-25)+"px";
56                elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px";
57                elt.style.display="";
58        }
59        else
60                elt.style.display="none";
61}
62                {/literal}{/footer_script}
63                {/strip}</li>
64{/if}
65
66{if isset($favorite)}
67                <li><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
68                        <span class="pwg-icon pwg-icon-favorite-del">&nbsp;</span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span>
69                </a></li>
70{/if}
71{if isset($U_CADDIE)}
72                <li><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button">
73                        <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'Caddie'|@translate}</span>
74                </a></li>
75{/if}
76{if isset($U_EDIT)}
77                <li><a href="{$U_EDIT}" title="{'Edit album'|@translate}" class="pwg-state-default pwg-button">
78                        <span class="pwg-icon pwg-icon-category-edit">&nbsp;</span><span class="pwg-button-text">{'Edit'|@translate}</span>
79                </a></li>
80{/if}
81{if isset($U_SEARCH_RULES)}
82                {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
83                <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
84                        <span class="pwg-icon pwg-icon-help">&nbsp;</span><span class="pwg-button-text">(?)</span>
85                </a></li>
86{/if}
87{if isset($U_SLIDESHOW)}
88                <li>{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
89                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
90                </a>{/strip}</li>
91{/if}
92{if isset($U_MODE_FLAT)}
93                <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
94                        <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>
95                </a>{/strip}</li>
96{/if}
97{if isset($U_MODE_NORMAL)}
98                <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button">
99                        <span class="pwg-icon pwg-icon-category-view-normal">&nbsp;</span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span>
100                </a>{/strip}</li>
101{/if}
102{if isset($U_MODE_POSTED)}
103                <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
104                        <span class="pwg-icon pwg-icon-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
105                </a>{/strip}</li>
106{/if}
107{if isset($U_MODE_CREATED)}
108                <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
109                        <span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
110                </a>{/strip}</li>
111{/if}
112{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
113        </ul>
114
115<h2>{$TITLE}</h2>
116
117{if isset($chronology_views)}
118<div class="calendarViews">{'View'|@translate}:
119        <select onchange="document.location = this.options[this.selectedIndex].value;">
120                {foreach from=$chronology_views item=view}
121                <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
122                {/foreach}
123        </select>
124</div>
125{/if}
126
127{if isset($chronology.TITLE)}
128<h2>{$chronology.TITLE}</h2>
129{/if}
130
131</div>{* <!-- titrePage --> *}
132
133{if isset($errors) or not empty($infos)}
134{include file='infos_errors.tpl'}
135{/if}
136{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
137
138{if !empty($category_search_results)}
139<div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
140        <em><strong>
141        {foreach from=$category_search_results item=res name=res_loop}
142        {if !$smarty.foreach.res_loop.first} &mdash; {/if}
143        {$res}
144        {/foreach}
145        </strong></em>
146</div>
147{/if}
148
149{if !empty($tag_search_results)}
150<div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
151        <em><strong>
152        {foreach from=$tag_search_results item=res name=res_loop}
153        {if !$smarty.foreach.res_loop.first} &mdash; {/if}
154        {$res}
155        {/foreach}
156        </strong></em>
157</div>
158{/if}
159
160{if isset($FILE_CHRONOLOGY_VIEW)}
161{include file=$FILE_CHRONOLOGY_VIEW}
162{/if}
163
164{if !empty($CONTENT_DESCRIPTION)}
165<div class="additional_info">
166        {$CONTENT_DESCRIPTION}
167</div>
168{/if}
169
170{if !empty($CATEGORIES)}{$CATEGORIES}{/if}
171{if !empty($THUMBNAILS)}
172<ul class="thumbnails" id="thumbnails">
173{$THUMBNAILS}
174</ul>
175{/if}
176
177{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
178
179{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
180</div>{* <!-- content --> *}
181{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.