source: trunk/template/yoga/index.tpl @ 2770

Last change on this file since 2770 was 2770, checked in by rvelices, 16 years ago
  • merge rev 2765,2769 from branch 2.0
  • 2765 mysql potential injection paranoia + code compaction in common.inc.php
  • 2769 added an image sort order by privacy level (admins only)
  • 2769 fix an IE6 display issue with quick search on index page
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1{* $Id: index.tpl 2770 2008-10-18 00:45:45Z rvelices $ *}
2{$MENUBAR}
3{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
4<div id="content" class="content">
5  <div class="titrePage">
6    <ul class="categoryActions">
7      {if !empty($image_orders) }
8      <li>
9      {'Sort order'|@translate}:
10      <select onchange="document.location = this.options[this.selectedIndex].value;">
11        {foreach from=$image_orders item=image_order }
12        <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option>
13        {/foreach}
14      </select>
15      </li>
16      {/if}
17
18      {if isset($U_CADDIE) }
19      <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>
20      {/if}
21
22      {if isset($U_EDIT) }
23      <li><a href="{$U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li>
24      {/if}
25
26      {if isset($U_SEARCH_RULES) }
27      <li><a href="{$U_SEARCH_RULES}" style="border:none;" 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>
28      {/if}
29
30      {if isset($U_SLIDESHOW) }
31      <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>
32      {/if}
33
34      {if isset($U_MODE_FLAT) }
35      <li><a href="{$U_MODE_FLAT}" title="{'mode_flat_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/flat.png" class="button" alt="{'mode_flat_hint'|@translate}" /></a></li>
36      {/if}
37
38      {if isset($U_MODE_NORMAL) }
39      <li><a href="{$U_MODE_NORMAL}" title="{'mode_normal_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/normal_mode.png" class="button" alt="{'mode_normal_hint'|@translate}" /></a></li>
40      {/if}
41
42      {if isset($U_MODE_POSTED) }
43      <li><a href="{$U_MODE_POSTED}" title="{'mode_posted_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar.png" class="button" alt="{'mode_posted_hint'|@translate}" /></a></li>
44      {/if}
45     
46      {if isset($U_MODE_CREATED) }
47      <li><a href="{$U_MODE_CREATED}" title="{'mode_created_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar_created.png" class="button" alt="{'mode_created_hint'|@translate}" /></a></li>
48      {/if}
49     
50      {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
51    </ul>
52
53  <h2>{$TITLE}</h2>
54
55  {if isset($chronology_views) }
56  <div class="calendarViews">{'calendar_view'|@translate}:
57    <select onchange="document.location = this.options[this.selectedIndex].value;">
58      {foreach from=$chronology_views item=view}
59      <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
60      {/foreach}
61    </select>
62  </div>
63  {/if}
64
65  {if isset($chronology.TITLE) }
66  <h2>{$chronology.TITLE}</h2>
67  {/if}
68
69  </div> <!-- titrePage -->
70
71{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
72
73{if !empty($category_search_results) }
74<div style="font-size:16px;margin:10px 16px">{'Category results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
75  <em><strong>
76  {foreach from=$category_search_results item=res name=res_loop}
77  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
78  {$res}
79  {/foreach}
80  </strong></em>
81</div>
82{/if}
83
84{if !empty($tag_search_results) }
85<div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
86  <em><strong>
87  {foreach from=$tag_search_results item=res name=res_loop}
88  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
89  {$res}
90  {/foreach}
91  </strong></em>
92</div>
93{/if}
94
95{if isset($FILE_CHRONOLOGY_VIEW) }
96{include file=$FILE_CHRONOLOGY_VIEW}
97{/if}
98
99{if !empty($CATEGORIES) }{$CATEGORIES}{/if}
100{if !empty($THUMBNAILS) }{$THUMBNAILS}{/if}
101
102
103{if !empty($NAV_BAR) }
104<div class="navigationBar">
105  {$NAV_BAR}
106</div>
107{/if}
108
109{if !empty($CONTENT_DESCRIPTION) }
110<div class="additional_info">
111  {$CONTENT_DESCRIPTION}
112</div>
113{/if}
114
115{if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if}
116</div> <!-- content -->
117
118{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.