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

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

version 1.0.15 - refer to changelog for more details

File size: 9.6 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><input id="height" type="text" size="2" maxlength="3" name="height" value="{$HEIGHT}"><label for="height">{'Thumbnails max height'|@translate}&nbsp;(px)</label></li>
27    <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>
28    <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>
29
30    <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>
31    <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>
32    <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>
33    <li>
34      <select id="normalize_title" name="normalize_title" >
35        <option {if $NORMALIZE_TITLE == 'off'}selected="selected"{/if} value="off">{'Do not Normalize (Default)'|@translate}</option>
36        <option {if $NORMALIZE_TITLE == 'on'}selected="selected"{/if} value="on">{'Photo # if FileName Detected'|@translate}</option>
37        <option {if $NORMALIZE_TITLE == 'desc'}selected="selected"{/if} value="desc">{'Use Description if Set'|@translate}</option>
38      </select>
39      <label for="normalize_title">{'Normalize Photo Title'|@translate}</label>
40    </li>
41    <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>
42    <li>
43      <select id="method" name="method" >
44        <option {if $METHOD == 'crop'}selected="selected"{/if} value="crop">{'Crop (Default)'|@translate}</option>
45        <option {if $METHOD == 'resize'}selected="selected"{/if} value="resize">{'Resize'|@translate}</option>
46        <option {if $METHOD == 'square'}selected="selected"{/if} value="square">{'Square'|@translate}</option>
47      </select>
48      <label for="method">{'Scale thumbnails'|@translate}</label>
49    </li>
50    <li>
51      <select id="thumb_mode_album" name="thumb_mode_album" >
52        <option {if $THUMB_MODE_ALBUM=="top"}selected="selected"{/if} value="top">{'Overlay Top'|@translate}</option>
53        <option {if $THUMB_MODE_ALBUM=="top_static"}selected="selected"{/if} value="top_static">{'Overlay Top (Static)'|@translate}</option>
54        <option {if $THUMB_MODE_ALBUM=="bottom"}selected="selected"{/if} value="bottom">{'Overlay Bottom'|@translate}</option>
55        <option {if $THUMB_MODE_ALBUM=="bottom_static"}selected="selected"{/if} value="bottom_static">{'Overlay Bottom (Static)'|@translate}</option>
56        <option {if $THUMB_MODE_ALBUM=="overlay"}selected="selected"{/if} value="overlay">{'Overlay'|@translate}</option>
57        {if $CUSTOM_CSS=="yes"}
58        <option {if $THUMB_MODE_ALBUM=="overlay-ex"}selected="selected"{/if} value="overlay-ex">{'Overlay Ex'|@translate}</option>
59        {/if}
60        <option {if $THUMB_MODE_ALBUM=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
61      </select>
62      <label for="thumb_mode_album">{'Title Display Mode (Album)'|@translate}</label>
63    </li>
64    <li>
65      <select id="thumb_mode_photo" name="thumb_mode_photo" >
66        <option {if $THUMB_MODE_PHOTO=="top"}selected="selected"{/if} value="top">{'Overlay Top'|@translate}</option>
67        <option {if $THUMB_MODE_PHOTO=="top_static"}selected="selected"{/if} value="top_static">{'Overlay Top (Static)'|@translate}</option>
68        <option {if $THUMB_MODE_PHOTO=="bottom"}selected="selected"{/if} value="bottom">{'Overlay Bottom'|@translate}</option>
69        <option {if $THUMB_MODE_PHOTO=="bottom_static"}selected="selected"{/if} value="bottom_static">{'Overlay Bottom (Static)'|@translate}</option>
70        <option {if $THUMB_MODE_PHOTO=="overlay"}selected="selected"{/if} value="overlay">{'Overlay'|@translate}</option>
71        {if $CUSTOM_CSS=="yes"}
72        <option {if $THUMB_MODE_PHOTO=="overlay-ex"}selected="selected"{/if} value="overlay-ex">{'Overlay Ex'|@translate}</option>
73        {/if}
74        <option {if $THUMB_MODE_PHOTO=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
75      </select>
76      <label for="thumb_mode_photo">{'Title Display Mode (Photo)'|@translate}</label>
77    </li>
78    <li>
79      <select id="thumb_metamode" name="thumb_metamode" >
80        <option {if $THUMB_METAMODE=="merged"}selected="selected"{/if} value="merged">{'Merged (Default)'|@translate}</option>
81        <option {if $THUMB_METAMODE=="merged_desc"}selected="selected"{/if} value="merged_desc">{'Merged with Description'|@translate}</option>
82        <option {if $THUMB_METAMODE=="hide"}selected="selected"{/if} value="hide">{'Hide'|@translate}</option>
83      </select>
84      <label for="thumb_metamode">{'Metadata Display Mode'|@translate}</label>
85    </li>
86    <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>
87  </ul>
88</fieldset>
89
90<p>
91  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
92  <input type="submit" name="submit" value="{'Submit'|@translate}">
93  <input type="submit" name="cachedelete" id="cachedelete" value="{'Purge thumbnails cache'|@translate}" title="{'Delete images in GDThumb cache.'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');">
94  <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();">
95</p>
96</form>
97
98<fieldset id="generate_cache">
99  <legend>{'Pre-cache thumbnails'|@translate}</legend>
100  <p class="buttons">
101    <input id="startLink" value="{'Start'|@translate}" onclick="jQuery.gdThumb_start()" type="button">
102    <input id="pauseLink" value="{'Pause'|@translate}" onclick="jQuery.gdThumb_pause()" type="button" disabled="disbled">
103    <input id="stopLink" value="{'Stop'|@translate}" onclick="jQuery.gdThumb_stop()" type="button" disabled="disbled">
104  </p>
105  <div>
106    <ul>
107      <li>Loaded:&nbsp;<span id="loaded">0</span></li>
108      <li>Remaining:&nbsp;<span id="remaining">0</span></li>
109      <li>Errors:&nbsp;<span id="errors">0</span></li>
110    </ul>
111  </div>
112  <div id="feedbackWrap" style="height:{$HEIGHT}px; min-height:{$HEIGHT}px;">
113  <img id="feedbackImg">
114</div>
115
116<div id="errorList">
117</div>
118</fieldset>
119
120{combine_css path=$GDTHUMB_PATH|cat:"/css/admin.css"}
121
122{if $CUSTOM_CSS=="yes"}
123  {combine_css path="themes/default/js/plugins/colorbox/style2/colorbox.css"}
124  {combine_css path=$GDTHEME_PATH|cat:"admin/css/styles.css"}
125  {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js' }
126  {combine_script id='greydragon.admin' load='footer' require='jquery' path=$GDTHEME_PATH|cat:"admin/js/admin.js" }
127{else}
128{html_head}{literal}
129<style type="text/css">
130  .graphicalCheckbox { display: none; }
131  #generate_cache p.buttons { margin-top: 0; }
132  .content select { width: 20.4em !important; margin-right: 0.6em; }
133</style>
134{/literal}{/html_head}
135{/if}
136
137{combine_script id='iloader' load='footer' path=$GDTHUMB_PATH|cat:"/js/image.loader.js"}
138{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.