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