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

Revision 27882, 7.8 KB checked in by rvelices, 6 years ago (diff)

bug 3056: quick search OR operator priority taken into account
search for 'mary qwerty' will ignore 'qwerty' and return only results for 'mary' if there is no such thing as 'qwerty' in the photos (if there was 'mary' and 'qwerty', the results for both 'mary' AND 'qwerty' would be shown)

  • Property svn:eol-style set to LF
Line 
1{combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'}
2{$MENUBAR}
3
4
5{if isset($errors) or isset($infos)}
6<div class="content messages{if isset($MENUBAR)} contentWithMenu{/if}">
7{include file='infos_errors.tpl'}
8</div>
9{/if}
10
11{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
12<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
13<div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
14        <ul class="categoryActions">
15{if !empty($image_orders)}
16                <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
17                        <span class="pwg-icon pwg-icon-sort"></span><span class="pwg-button-text">{'Sort order'|@translate}</span>
18                </a>
19                <div id="sortOrderBox" class="switchBox">
20                        <div class="switchBoxTitle">{'Sort order'|@translate}</div>
21                        {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
22                        {if $image_order.SELECTED}
23                        <span>&#x2714; </span>{$image_order.DISPLAY}
24                        {else}
25                        <span style="visibility:hidden">&#x2714; </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a>
26                        {/if}
27                        {/foreach}
28                </div>
29                {footer_script}(SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script}
30                {/strip}</li>
31{/if}
32{if !empty($image_derivatives)}
33                <li>{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
34                        <span class="pwg-icon pwg-icon-sizes"></span><span class="pwg-button-text">{'Photo sizes'|@translate}</span>
35                </a>
36                <div id="derivativeSwitchBox" class="switchBox">
37                        <div class="switchBoxTitle">{'Photo sizes'|@translate}</div>
38                        {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
39                        {if $image_derivative.SELECTED}
40                        <span>&#x2714; </span>{$image_derivative.DISPLAY}
41                        {else}
42                        <span style="visibility:hidden">&#x2714; </span><a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a>
43                        {/if}
44                        {/foreach}
45                </div>
46                {footer_script}(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script}
47                {/strip}</li>
48{/if}
49
50{if isset($favorite)}
51                <li id="cmdFavorite"><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
52                        <span class="pwg-icon pwg-icon-favorite-del"></span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span>
53                </a></li>
54{/if}
55{if isset($U_CADDIE)}
56                <li id="cmdCaddie"><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button">
57                        <span class="pwg-icon pwg-icon-caddie-add"></span><span class="pwg-button-text">{'Caddie'|@translate}</span>
58                </a></li>
59{/if}
60{if isset($U_EDIT)}
61                <li id="cmdEditAlbum"><a href="{$U_EDIT}" title="{'Edit album'|@translate}" class="pwg-state-default pwg-button">
62                        <span class="pwg-icon pwg-icon-category-edit"></span><span class="pwg-button-text">{'Edit'|@translate}</span>
63                </a></li>
64{/if}
65{if isset($U_SEARCH_RULES)}
66                {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
67                <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
68                        <span class="pwg-icon pwg-icon-help"></span><span class="pwg-button-text">(?)</span>
69                </a></li>
70{/if}
71{if isset($U_SLIDESHOW)}
72                <li id="cmdSlideshow">{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
73                        <span class="pwg-icon pwg-icon-slideshow"></span><span class="pwg-button-text">{'slideshow'|@translate}</span>
74                </a>{/strip}</li>
75{/if}
76{if isset($U_MODE_FLAT)}
77                <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
78                        <span class="pwg-icon pwg-icon-category-view-flat"></span><span class="pwg-button-text">{'display all photos in all sub-albums'|@translate}</span>
79                </a>{/strip}</li>
80{/if}
81{if isset($U_MODE_NORMAL)}
82                <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button">
83                        <span class="pwg-icon pwg-icon-category-view-normal"></span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span>
84                </a>{/strip}</li>
85{/if}
86{if isset($U_MODE_POSTED)}
87                <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
88                        <span class="pwg-icon pwg-icon-calendar"></span><span class="pwg-button-text">{'Calendar'|@translate}</span>
89                </a>{/strip}</li>
90{/if}
91{if isset($U_MODE_CREATED)}
92                <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
93                        <span class="pwg-icon pwg-icon-camera-calendar"></span><span class="pwg-button-text">{'Calendar'|@translate}</span>
94                </a>{/strip}</li>
95{/if}
96{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
97{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
98        </ul>
99
100<h2>{$TITLE}</h2>
101
102{if isset($chronology_views)}
103<div class="calendarViews">{'View'|@translate}:
104        <a id="calendarViewSwitchLink" href="#">
105        {foreach from=$chronology_views item=view}{if $view.SELECTED}{$view.CONTENT}{/if}{/foreach}
106        </a>
107        <div id="calendarViewSwitchBox" class="switchBox">
108                {foreach from=$chronology_views item=view name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
109                <span{if !$view.SELECTED} style="visibility:hidden"{/if}>&#x2714; </span><a href="{$view.VALUE}">{$view.CONTENT}</a>
110                {/foreach}
111        </div>
112        {footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script}
113</div>
114{/if}
115
116{if isset($chronology.TITLE)}
117<h2 class="calendarTitle">{$chronology.TITLE}</h2>
118{/if}
119
120</div>{* <!-- titrePage --> *}
121
122{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
123
124{if !empty($no_search_results)}
125<p class="search_results">{'No results for'|@translate} :
126        <em><strong>
127        {foreach $no_search_results as $res}
128        {if !$res@first} &mdash; {/if}
129        {$res}
130        {/foreach}
131        </strong></em>
132</p>
133{/if}
134
135{if !empty($category_search_results)}
136<p class="search_results">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
137        <em><strong>
138        {foreach from=$category_search_results item=res name=res_loop}
139        {if !$smarty.foreach.res_loop.first} &mdash; {/if}
140        {$res}
141        {/foreach}
142        </strong></em>
143</p>
144{/if}
145
146{if !empty($tag_search_results)}
147<p class="search_results">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
148        <em><strong>
149        {foreach from=$tag_search_results item=tag name=res_loop}
150        {if !$smarty.foreach.res_loop.first} &mdash; {/if} <a href="{$tag.URL}">{$tag.name}</a>
151        {/foreach}
152        </strong></em>
153</p>
154{/if}
155
156{if isset($FILE_CHRONOLOGY_VIEW)}
157{include file=$FILE_CHRONOLOGY_VIEW}
158{/if}
159
160{if !empty($CONTENT_DESCRIPTION)}
161<div class="additional_info">
162        {$CONTENT_DESCRIPTION}
163</div>
164{/if}
165
166{if !empty($CONTENT)}{$CONTENT}{/if}
167
168{if !empty($CATEGORIES)}{$CATEGORIES}{/if}
169
170{if !empty($cats_navbar)}
171        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
172{/if}
173
174{if !empty($THUMBNAILS)}
175<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
176<ul class="thumbnails" id="thumbnails">
177  {$THUMBNAILS}
178</ul>
179{/if}
180{if !empty($thumb_navbar)}
181        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$thumb_navbar}
182{/if}
183
184{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
185</div>{* <!-- content --> *}
186{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.