source: extensions/GDThumb/template/admin.tpl @ 31401

Last change on this file since 31401 was 31245, checked in by SergeD, 9 years ago

version 1.0.18 - refer to changelog for more details

File size: 9.7 KB
Line 
1<div class="titrePage">
2  <h2>GDThumb - {$GDTHUMB_VERSION}</h2>
3  <div class="left-links{if $CUSTOM_CSS!=="yes"} no-gd{/if}">
4    <ul><li><a href="http://blog.dragonsoft.us/piwigo/" target="_blank">{'Home'|@translate}</a>&nbsp;|&nbsp;</li>
5      {if $CUSTOM_CSS=="yes"}
6      <li><a class="ajax cboxElement" href="{$GDTHUMB_PATH|cat:"/changelog.php"}?version={$GDTHUMB_VERSION}">{'Changelog'|@translate}</a>&nbsp;|&nbsp;</li>
7      {/if}
8      <li><a href="http://piwigo.org/forum/viewtopic.php?id=24413" target="_blank">{'Support'|@translate}</a>&nbsp;|&nbsp;</li>
9      <li><a title="Follow me on Twitter" href="http://twitter.com/greydragon_th" target="_blank">{'Follow'|@translate}</a>&nbsp;|&nbsp;</li>
10      <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GYVNZCNDMSD58" target="_blank">{'Coffee Fund'|@translate}</a>&nbsp;|&nbsp;</li>
11      <li><a href="http://piwigo.org/ext/extension_view.php?eid=771" onclick="return false" target="_blank">{'Download'|@translate}</a></li>
12    </ul>
13  </div>
14</div>
15<form action="" method="post">
16<fieldset id="GDThumb">
17  <legend>{'Configuration'|@translate}</legend>
18  <ul>
19    <li>
20      <select id="direction" name="direction" disabled>
21        <option {if $DIRECTION == 'horizontal'}selected="selected"{/if} value="horizontal">{'Horizontal (Default)'|@translate}</option>
22        {* <option {if $DIRECTION == 'vertical'}selected="selected"{/if} value="vertical">{'Vertical'|@translate}</option> *}
23      </select>
24      <label for="direction">{'Masonry Type'|@translate}</label>
25    </li>
26    <li>
27      <select id="method" name="method" >
28        <option {if $METHOD == 'crop'}selected="selected"{/if} value="crop">{'Crop (Default)'|@translate}</option>
29        <option {if $METHOD == 'resize'}selected="selected"{/if} value="resize">{'Resize'|@translate}</option>
30        <option {if $METHOD == 'square'}selected="selected"{/if} value="square">{'Square'|@translate}</option>
31        <option {if $METHOD == 'slide'}selected="selected"{/if} value="slide">{'Slide'|@translate}</option>
32      </select>
33      <label for="method">{'Thumbnail Mode'|@translate}</label>
34    </li>
35    <li><input id="height" type="text" size="2" maxlength="3" name="height" value="{$HEIGHT}"><label for="height">{'Thumbnails max height'|@translate}&nbsp;(px)</label></li>
36    <li><input id="margin" type="text" size="2" maxlength="3" name="margin" value="{$MARGIN}"><label for="margin">{'Margin between thumbnails'|@translate}&nbsp;px</label></li>
37    <li><input id="nb_image_page" type="text" size="2" maxlength="3" name="nb_image_page" value="{$NB_IMAGE_PAGE}"><label for="nb_image_page">{'Number of photos per page'|@translate}</label></li>
38
39    <li><label><span class="graphicalCheckbox {if $BIG_THUMB}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="big_thumb" id="big_thumb" type="checkbox" value="1" {if $BIG_THUMB}checked="checked"{/if}>{'Double the size of the first thumbnail'|@translate}</label></li>
40    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label><span class="graphicalCheckbox {if $BIG_THUMB_NOINPW}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="big_thumb_noinpw" id="big_thumb_noinpw" type="checkbox" value="1" {if $BIG_THUMB_NOINPW}checked="checked"{/if}>{'Block for Panoramic Photo Page'|@translate} (x2.2+)</label></li>
41    <li><label><span class="graphicalCheckbox {if $CACHE_BIG_THUMB}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="cache_big_thumb" id="cache_big_thumb" type="checkbox" value="1" {if $CACHE_BIG_THUMB}checked="checked"{/if}>{'Cache the big thumbnails (recommended)'|@translate}</label></li>
42    <li><label><span class="graphicalCheckbox {if $THUMB_ANIMATE}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="thumb_animate" id="thumb_animate" type="checkbox" value="1" {if $THUMB_ANIMATE}checked="checked"{/if}>{'Animate thumbnail on hover'|@translate}</label></li>
43    <li>
44      <select id="normalize_title" name="normalize_title" >
45        <option {if $NORMALIZE_TITLE == 'off'}selected="selected"{/if} value="off">{'Do not Normalize (Default)'|@translate}</option>
46        <option {if $NORMALIZE_TITLE == 'on'}selected="selected"{/if} value="on">{'Photo # if FileName Detected'|@translate}</option>
47        <option {if $NORMALIZE_TITLE == 'desc'}selected="selected"{/if} value="desc">{'Use Description if Set'|@translate}</option>
48      </select>
49      <label for="normalize_title">{'Normalize Photo Title'|@translate}</label>
50    </li>
51    <li><label><span class="graphicalCheckbox {if $NO_WORDWRAP}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="no_wordwrap" id="no_wordwrap" type="checkbox" value="1" {if $NO_WORDWRAP}checked="checked"{/if}>{'Prevent word wrap'|@translate}</label></li>
52    <li>
53      <select id="thumb_mode_album" name="thumb_mode_album" >
54        <option {if $THUMB_MODE_ALBUM=="top"}selected="selected"{/if} value="top">{'Overlay Top'|@translate}</option>
55        <option {if $THUMB_MODE_ALBUM=="top_static"}selected="selected"{/if} value="top_static">{'Overlay Top (Static)'|@translate}</option>
56        <option {if $THUMB_MODE_ALBUM=="bottom"}selected="selected"{/if} value="bottom">{'Overlay Bottom'|@translate}</option>
57        <option {if $THUMB_MODE_ALBUM=="bottom_static"}selected="selected"{/if} value="bottom_static">{'Overlay Bottom (Static)'|@translate}</option>
58        <option {if $THUMB_MODE_ALBUM=="overlay"}selected="selected"{/if} value="overlay">{'Overlay'|@translate}</option>
59        {if $CUSTOM_CSS=="yes"}
60        <option {if $THUMB_MODE_ALBUM=="overlay-ex"}selected="selected"{/if} value="overlay-ex">{'Overlay Ex'|@translate}</option>
61        {/if}
62        <option {if $THUMB_MODE_ALBUM=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
63      </select>
64      <label for="thumb_mode_album">{'Title Display Mode (Album)'|@translate}</label>
65    </li>
66    <li>
67      <select id="thumb_mode_photo" name="thumb_mode_photo" >
68        <option {if $THUMB_MODE_PHOTO=="top"}selected="selected"{/if} value="top">{'Overlay Top'|@translate}</option>
69        <option {if $THUMB_MODE_PHOTO=="top_static"}selected="selected"{/if} value="top_static">{'Overlay Top (Static)'|@translate}</option>
70        <option {if $THUMB_MODE_PHOTO=="bottom"}selected="selected"{/if} value="bottom">{'Overlay Bottom'|@translate}</option>
71        <option {if $THUMB_MODE_PHOTO=="bottom_static"}selected="selected"{/if} value="bottom_static">{'Overlay Bottom (Static)'|@translate}</option>
72        <option {if $THUMB_MODE_PHOTO=="overlay"}selected="selected"{/if} value="overlay">{'Overlay'|@translate}</option>
73        {if $CUSTOM_CSS=="yes"}
74        <option {if $THUMB_MODE_PHOTO=="overlay-ex"}selected="selected"{/if} value="overlay-ex">{'Overlay Ex'|@translate}</option>
75        {/if}
76        <option {if $THUMB_MODE_PHOTO=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
77      </select>
78      <label for="thumb_mode_photo">{'Title Display Mode (Photo)'|@translate}</label>
79    </li>
80    <li>
81      <select id="thumb_metamode" name="thumb_metamode" >
82        <option {if $THUMB_METAMODE=="merged"}selected="selected"{/if} value="merged">{'Merged (Default)'|@translate}</option>
83        <option {if $THUMB_METAMODE=="merged_desc"}selected="selected"{/if} value="merged_desc">{'Merged with Description'|@translate}</option>
84        <option {if $THUMB_METAMODE=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
85      </select>
86      <label for="thumb_metamode">{'Metadata Display Mode'|@translate}</label>
87    </li>
88  </ul>
89</fieldset>
90
91<p>
92  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
93  <input type="submit" name="submit" value="{'Submit'|@translate}">
94  <input type="button" name="cachedelete" id="cachedelete" value="{'Purge thumbnails cache'|@translate}" title="{'Delete images in GDThumb cache.'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');">
95  <input type="button" name="cachebuild" id="cachebuild" value="{'Pre-cache thumbnails'|@translate}" title="{'Finds images that have not been cached and creates the cached version.'|@translate}" onclick="jQuery.gdThumb_start();">
96</p>
97</form>
98
99<fieldset id="generate_cache">
100  <legend>{'Pre-cache thumbnails'|@translate}</legend>
101  <p class="buttons">
102    <input id="startLink" value="{'Start'|@translate}" onclick="jQuery.gdThumb_start()" type="button">
103    <input id="pauseLink" value="{'Pause'|@translate}" onclick="jQuery.gdThumb_pause()" type="button" disabled="disbled">
104    <input id="stopLink" value="{'Stop'|@translate}" onclick="jQuery.gdThumb_stop()" type="button" disabled="disbled">
105  </p>
106  <div>
107    <ul>
108      <li>Loaded:&nbsp;<span id="loaded">0</span></li>
109      <li>Remaining:&nbsp;<span id="remaining">0</span></li>
110      <li>Errors:&nbsp;<span id="errors">0</span></li>
111    </ul>
112  </div>
113  <div id="feedbackWrap" style="height:{$HEIGHT}px; min-height:{$HEIGHT}px;">
114  <img id="feedbackImg">
115</div>
116
117<div id="errorList">
118</div>
119</fieldset>
120
121{combine_css path=$GDTHUMB_PATH|cat:"/css/admin.css"}
122
123{if $CUSTOM_CSS=="yes"}
124  {combine_css path="themes/default/js/plugins/colorbox/style2/colorbox.css"}
125  {combine_css path=$GDTHEME_PATH|cat:"admin/css/styles.css"}
126  {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js' }
127  {combine_script id='greydragon.admin' load='footer' require='jquery' path=$GDTHEME_PATH|cat:"admin/js/admin.js" }
128{else}
129{html_head}{literal}
130<style type="text/css">
131  .graphicalCheckbox { display: none; }
132  #generate_cache p.buttons { margin-top: 0; }
133  .content select { width: 20.4em !important; margin-right: 0.6em; }
134</style>
135{/literal}{/html_head}
136{/if}
137
138{combine_script id='iloader' load='footer' path=$GDTHUMB_PATH|cat:"/js/image.loader.js"}
139{combine_script id='admin.precache' load='footer' path=$GDTHUMB_PATH|cat:"/js/gdthumb.admin.js" require='jquery.ui.effect-slide'}
Note: See TracBrowser for help on using the repository browser.