source: branches/2.4/themes/default/template/index.tpl @ 16930

Last change on this file since 16930 was 14180, checked in by rvelices, 12 years ago

"home url" is not always absolute with host name + html compaction - through removal of unused attributes, some white spaces ...

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