source: extensions/Slim/template/index.tpl @ 28012

Last change on this file since 28012 was 28012, checked in by Miklfe, 10 years ago

compatible ContactForm

File size: 8.5 KB
Line 
1{if ($Slim.style_slim)!=1}
2{$MENUBAR}
3{/if}
4
5<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
6
7{if ($Slim.style_slim)==1}
8        {if !empty($THUMBNAILS)}
9        <div id="home">
10        <a href="{$U_HOME}"><img src="themes/Slim/images/home.png" height="32px" width="32px"></a>
11        </div>
12        <div class="titrePage">
13        <div id="infoBlock">
14        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
15        <h2>
16        {$cat_name}
17        </h2>
18        {/if}
19
20{else}
21
22        <div id="infoBlock">
23<div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
24
25        <ul class="categoryActions">
26        {if !empty($image_orders)}
27                        <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
28                                <span class="pwg-icon pwg-icon-sort">&nbsp;</span><span class="pwg-button-text">{'Sort order'|@translate}</span>
29                        </a>
30                        <div id="sortOrderBox" class="switchBox">
31                                <div class="switchBoxTitle">{'Sort order'|@translate}</div>
32                                {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
33                                {if $image_order.SELECTED}
34                                <span>&#x2714; </span>{$image_order.DISPLAY}
35                                {else}
36                                <span style="visibility:hidden">&#x2714; </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a>
37                                {/if}
38                                {/foreach}
39                        </div>
40                        {footer_script require='jquery'}{literal}
41        jQuery("#sortOrderLink").click(function() {
42                var elt = jQuery("#sortOrderBox");
43                elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5))
44                        .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true))
45                        .toggle();
46        });
47        jQuery("#sortOrderBox").on("mouseleave", function() {
48                jQuery(this).hide();
49        });
50                        {/literal}{/footer_script}
51                        {/strip}</li>
52        {/if}
53
54        {if isset($favorite)}
55                        <li><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
56                                <span class="pwg-icon pwg-icon-favorite-del">&nbsp;</span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span>
57                        </a></li>
58        {/if}
59        {if isset($U_CADDIE)}
60                        <li><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button">
61                                <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'Caddie'|@translate}</span>
62                        </a></li>
63        {/if}
64        {if isset($U_EDIT)}
65                        <li><a href="{$U_EDIT}" title="{'Edit album'|@translate}" class="pwg-state-default pwg-button">
66                                <span class="pwg-icon pwg-icon-category-edit">&nbsp;</span><span class="pwg-button-text">{'Edit'|@translate}</span>
67                        </a></li>
68        {/if}
69        {if isset($U_SEARCH_RULES)}
70                        {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
71                        <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
72                                <span class="pwg-icon pwg-icon-help">&nbsp;</span><span class="pwg-button-text">(?)</span>
73                        </a></li>
74        {/if}
75        {if isset($U_SLIDESHOW)}
76                        <li>{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
77                                <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
78                        </a>{/strip}</li>
79        {/if}
80        {if isset($U_MODE_FLAT)}
81                        <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
82                                <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>
83                        </a>{/strip}</li>
84        {/if}
85        {if isset($U_MODE_NORMAL)}
86                        <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button">
87                                <span class="pwg-icon pwg-icon-category-view-normal">&nbsp;</span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span>
88                        </a>{/strip}</li>
89        {/if}
90        {if isset($U_MODE_POSTED)}
91                        <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
92                                <span class="pwg-icon pwg-icon-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
93                        </a>{/strip}</li>
94        {/if}
95        {if isset($U_MODE_CREATED)}
96                        <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
97                                <span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
98                        </a>{/strip}</li>
99        {/if}
100        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
101                </ul>
102        <h2>{$TITLE}</h2>
103        {if isset($chronology_views)}
104        <div class="calendarViews">{'View'|@translate}:
105                <select onchange="document.location = this.options[this.selectedIndex].value;">
106                        {foreach from=$chronology_views item=view}
107                        <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
108                        {/foreach}
109                </select>
110        </div>
111        {/if}
112
113        {if isset($chronology.TITLE)}
114        <h2 class="calendarTitle">{$chronology.TITLE}</h2>
115        {/if}
116{/if}
117                </div>{* <!-- titrePage --> *}
118               
119               
120</div>{* <!-- infoBlock --> *}
121
122
123{if isset($errors) or not empty($infos)}
124{include file='infos_errors.tpl'}
125{/if}
126{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
127
128{if !empty($category_search_results)}
129<div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
130        <em><strong>
131        {foreach from=$category_search_results item=res name=res_loop}
132        {if !$smarty.foreach.res_loop.first} &mdash; {/if}
133        {$res}
134        {/foreach}
135        </strong></em>
136</div>
137{/if}
138
139{if !empty($tag_search_results)}
140<div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
141        <em><strong>
142        {foreach from=$tag_search_results item=res name=res_loop}
143        {if !$smarty.foreach.res_loop.first} &mdash; {/if}
144        {$res}
145        {/foreach}
146        </strong></em>
147</div>
148{/if}
149
150{if isset($FILE_CHRONOLOGY_VIEW)}
151{include file=$FILE_CHRONOLOGY_VIEW}
152{/if}
153
154{if !empty($CONTENT_DESCRIPTION)}
155<div class="additional_info">
156        {$CONTENT_DESCRIPTION}
157</div>
158{/if}
159
160{if !empty($CONTENT)}{$CONTENT}{/if}
161
162
163{if !empty($THUMBNAILS)}
164                {$THUMBNAILS}
165{footer_script}{literal}
166        $('.jcarousel')
167            .jcarousel({
168                 wrap: 'circular'
169            })         
170                        .jcarouselAutoscroll({
171                        autostart: false
172                        });     
173                       
174        $('.jcarousel-control-prev')
175            .on('jcarouselcontrol:active', function() {
176                $(this).removeClass('inactive');
177            })
178            .on('jcarouselcontrol:inactive', function() {
179                $(this).addClass('inactive');
180            })
181            .jcarouselControl({
182                target: '-=1'
183            });
184
185        $('.jcarousel-control-next')
186            .on('jcarouselcontrol:active', function() {
187                $(this).removeClass('inactive');
188            })
189            .on('jcarouselcontrol:inactive', function() {
190                $(this).addClass('inactive');
191            })
192            .jcarouselControl({
193                target: '+=1'
194            });
195{/literal}{/footer_script}
196
197{/if}
198
199{if empty($THUMBNAILS)}
200        {if !empty($CATEGORIES)}
201                {$CATEGORIES}
202                {footer_script}{literal}
203        $('.jcarousel')
204            .jcarousel({
205                 wrap: 'circular'
206            })         
207                        .jcarouselAutoscroll({
208                        interval: 3000,
209                        target: '+=1',
210                        autostart: true
211                        });     
212                       
213        $('.jcarousel-control-prev')
214            .on('jcarouselcontrol:active', function() {
215                $(this).removeClass('inactive');
216            })
217            .on('jcarouselcontrol:inactive', function() {
218                $(this).addClass('inactive');
219            })
220            .jcarouselControl({
221                target: '-=1'
222            });
223
224        $('.jcarousel-control-next')
225            .on('jcarouselcontrol:active', function() {
226                $(this).removeClass('inactive');
227            })
228            .on('jcarouselcontrol:inactive', function() {
229                $(this).addClass('inactive');
230            })
231            .jcarouselControl({
232                target: '+=1'
233            });
234               
235                $('.jcarousel')
236                        .on('mouseenter', function(){
237                                $(this).jcarouselAutoscroll('stop')
238                        })
239                        .on('mouseleave', function(){
240                                $(this).jcarouselAutoscroll('start')
241                        });
242{/literal}{/footer_script}
243
244        {/if}
245{/if}
246
247{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
248</div>{* <!-- content --> *}
249{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
250
251
252
Note: See TracBrowser for help on using the repository browser.