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

Last change on this file since 7975 was 7975, checked in by rvelices, 13 years ago

new template features: combine_script, footer_script and get_combined_scripts
migrated public templates only; need more code doc

  • Property svn:eol-style set to LF
File size: 4.8 KB
Line 
1{$MENUBAR}
2{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
3<div id="content" class="content">
4  <div class="titrePage">
5    <ul class="categoryActions">
6      {if !empty($image_orders) }
7      <li>
8      {'Sort order'|@translate}:
9      <select onchange="document.location = this.options[this.selectedIndex].value;">
10        {foreach from=$image_orders item=image_order }
11        <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option>
12        {/foreach}
13      </select>
14      </li>
15      {/if}
16
17      {if isset($favorite) }
18      <li><a href="{$favorite.U_FAVORITE}" title="{'delete all images from your favorites'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/del_all_favorites.png" class="button" alt="favorite" title="{'delete all images from your favorites'|@translate}"></a></li>
19      {/if}
20
21      {if isset($U_CADDIE) }
22      <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a></li>
23      {/if}
24
25      {if isset($U_EDIT) }
26      <li><a href="{$U_EDIT}" title="{'edit'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"></a></li>
27      {/if}
28
29      {if isset($U_SEARCH_RULES) }
30                        {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
31      <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
32      {/if}
33
34      {if isset($U_SLIDESHOW) }
35      <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a></li>
36      {/if}
37
38      {if isset($U_MODE_FLAT) }
39      <li><a href="{$U_MODE_FLAT}" title="{'display all elements in all sub-albums'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/flat.png" class="button" alt="{'display all elements in all sub-albums'|@translate}"></a></li>
40      {/if}
41
42      {if isset($U_MODE_NORMAL) }
43      <li><a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/normal_mode.png" class="button" alt="{'return to normal view mode'|@translate}"></a></li>
44      {/if}
45
46      {if isset($U_MODE_POSTED) }
47      <li><a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar.png" class="button" alt="{'display a calendar by posted date'|@translate}"></a></li>
48      {/if}
49     
50      {if isset($U_MODE_CREATED) }
51      <li><a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar_created.png" class="button" alt="{'display a calendar by creation date'|@translate}"></a></li>
52      {/if}
53     
54      {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
55    </ul>
56
57  <h2>{$TITLE}</h2>
58
59  {if isset($chronology_views) }
60  <div class="calendarViews">{'View'|@translate}:
61    <select onchange="document.location = this.options[this.selectedIndex].value;">
62      {foreach from=$chronology_views item=view}
63      <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
64      {/foreach}
65    </select>
66  </div>
67  {/if}
68
69  {if isset($chronology.TITLE) }
70  <h2>{$chronology.TITLE}</h2>
71  {/if}
72
73  </div> <!-- titrePage -->
74
75{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
76
77{if !empty($category_search_results) }
78<div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
79  <em><strong>
80  {foreach from=$category_search_results item=res name=res_loop}
81  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
82  {$res}
83  {/foreach}
84  </strong></em>
85</div>
86{/if}
87
88{if !empty($tag_search_results) }
89<div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
90  <em><strong>
91  {foreach from=$tag_search_results item=res name=res_loop}
92  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
93  {$res}
94  {/foreach}
95  </strong></em>
96</div>
97{/if}
98
99{if isset($FILE_CHRONOLOGY_VIEW) }
100{include file=$FILE_CHRONOLOGY_VIEW}
101{/if}
102
103{if !empty($CATEGORIES) }{$CATEGORIES}{/if}
104{if !empty($THUMBNAILS) }{$THUMBNAILS}{/if}
105
106{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
107
108{if !empty($CONTENT_DESCRIPTION) }
109<div class="additional_info">
110  {$CONTENT_DESCRIPTION}
111</div>
112{/if}
113
114{if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if}
115</div> <!-- content -->
116
117{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.