[30225] | 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> | </li> |
---|
[30485] | 5 | {if $CUSTOM_CSS=="yes"} |
---|
| 6 | <li><a class="ajax cboxElement" href="{$GDTHUMB_PATH|cat:"/changelog.php"}?version={$GDTHUMB_VERSION}">{'Changelog'|@translate}</a> | </li> |
---|
| 7 | {/if} |
---|
[30225] | 8 | <li><a href="http://piwigo.org/forum/viewtopic.php?id=24413" target="_blank">{'Support'|@translate}</a> | </li> |
---|
| 9 | <li><a title="Follow me on Twitter" href="http://twitter.com/greydragon_th" target="_blank">{'Follow'|@translate}</a> | </li> |
---|
| 10 | <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9MWBSVJMWMJEU" target="_blank">{'Coffee Fund'|@translate}</a> | </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} (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} 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}"> </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> <label><span class="graphicalCheckbox {if $BIG_THUMB_NOINPW}icon-check{else}icon-check-empty{/if}"> </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}"> </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> |
---|
[30485] | 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> |
---|
[30225] | 41 | <li><label><span class="graphicalCheckbox {if $NO_WORDWRAP}icon-check{else}icon-check-empty{/if}"> </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 | </ul> |
---|
| 87 | </fieldset> |
---|
| 88 | |
---|
| 89 | <p> |
---|
| 90 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
| 91 | <input type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
| 92 | <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}');"> |
---|
| 93 | <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();"> |
---|
| 94 | </p> |
---|
| 95 | </form> |
---|
| 96 | |
---|
| 97 | <fieldset id="generate_cache"> |
---|
| 98 | <legend>{'Pre-cache thumbnails'|@translate}</legend> |
---|
| 99 | <p class="buttons"> |
---|
| 100 | <input id="startLink" value="{'Start'|@translate}" onclick="jQuery.gdThumb_start()" type="button"> |
---|
| 101 | <input id="pauseLink" value="{'Pause'|@translate}" onclick="jQuery.gdThumb_pause()" type="button" disabled="disbled"> |
---|
| 102 | <input id="stopLink" value="{'Stop'|@translate}" onclick="jQuery.gdThumb_stop()" type="button" disabled="disbled"> |
---|
| 103 | </p> |
---|
| 104 | <div> |
---|
| 105 | <ul> |
---|
| 106 | <li>Loaded: <span id="loaded">0</span></li> |
---|
| 107 | <li>Remaining: <span id="remaining">0</span></li> |
---|
| 108 | <li>Errors: <span id="errors">0</span></li> |
---|
| 109 | </ul> |
---|
| 110 | </div> |
---|
| 111 | <div id="feedbackWrap" style="height:{$HEIGHT}px; min-height:{$HEIGHT}px;"> |
---|
| 112 | <img id="feedbackImg"> |
---|
| 113 | </div> |
---|
| 114 | |
---|
| 115 | <div id="errorList"> |
---|
| 116 | </div> |
---|
| 117 | </fieldset> |
---|
| 118 | |
---|
| 119 | {combine_css path=$GDTHUMB_PATH|cat:"/css/admin.css"} |
---|
| 120 | |
---|
| 121 | {if $CUSTOM_CSS=="yes"} |
---|
[30485] | 122 | {combine_css path="themes/default/js/plugins/colorbox/style2/colorbox.css"} |
---|
[30225] | 123 | {combine_css path=$GDTHEME_PATH|cat:"admin/css/styles.css"} |
---|
[30485] | 124 | {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js' } |
---|
[30225] | 125 | {combine_script id='greydragon.admin' load='footer' require='jquery,jquery.ui.button.js' path=$GDTHEME_PATH|cat:"admin/js/admin.js" } |
---|
| 126 | {else} |
---|
| 127 | {html_head}{literal} |
---|
| 128 | <style type="text/css"> |
---|
| 129 | .graphicalCheckbox { display: none; } |
---|
| 130 | #generate_cache p.buttons { margin-top: 0; } |
---|
| 131 | .content select { width: 20.4em !important; margin-right: 0.6em; } |
---|
| 132 | </style> |
---|
| 133 | {/literal}{/html_head} |
---|
| 134 | {/if} |
---|
| 135 | |
---|
| 136 | {combine_script id='iloader' load='footer' path=$GDTHUMB_PATH|cat:"/js/image.loader.js"} |
---|
| 137 | {combine_script id='admin.precache' load='footer' path=$GDTHUMB_PATH|cat:"/js/gdthumb.admin.js" require='jquery.ui.effect-slide'} |
---|