[25657] | 1 | {strip} |
---|
[25617] | 2 | {combine_css path=$ADMINTOOLS_PATH|cat:'template/style.css'} |
---|
| 3 | {combine_css path='admin/themes/default/fontello/css/fontello.css'} |
---|
| 4 | {combine_css path=$ADMINTOOLS_PATH|cat:'template/fontello/css/fontello-ato.css'} |
---|
| 5 | |
---|
[25654] | 6 | {if isset($ato.QUICK_EDIT)} |
---|
| 7 | {*<!-- colorbox -->*} |
---|
| 8 | {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} |
---|
| 9 | {combine_css id='colorbox' path='themes/default/js/plugins/colorbox/style2/colorbox.css'} |
---|
| 10 | |
---|
[25817] | 11 | {if isset($ato.IS_PICTURE)} |
---|
| 12 | {*<!-- tokeninput -->*} |
---|
| 13 | {combine_script id='jquery.tokeninput' load='footer' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} |
---|
| 14 | {combine_css path='themes/default/js/plugins/jquery.tokeninput.css'} |
---|
[25654] | 15 | |
---|
[25817] | 16 | {*<!-- datepicker -->*} |
---|
| 17 | {combine_script id='jquery.ui.datepicker' load='footer' path='themes/default/js/ui/jquery.ui.datepicker.js'} |
---|
[25654] | 18 | |
---|
[25817] | 19 | {assign var=datepicker_language value='themes/default/js/ui/i18n/jquery.ui.datepicker-'|cat:$lang_info.code|cat:'.js'} |
---|
| 20 | {if 'PHPWG_ROOT_PATH'|constant|cat:$datepicker_language|file_exists} |
---|
| 21 | {combine_script id='jquery.ui.datepicker-'|cat:$lang_info.code load='footer' path=$datepicker_language} |
---|
| 22 | {/if} |
---|
| 23 | |
---|
| 24 | {combine_css path='themes/default/js/ui/theme/jquery.ui.core.css'} |
---|
| 25 | {combine_css path='themes/default/js/ui/theme/jquery.ui.theme.css'} |
---|
| 26 | {combine_css path='themes/default/js/ui/theme/jquery.ui.datepicker.css'} |
---|
[25654] | 27 | {/if} |
---|
[25817] | 28 | {/if} |
---|
[25654] | 29 | |
---|
[25817] | 30 | {combine_script id='admintools.controller' load='footer' require='jquery' path=$ADMINTOOLS_PATH|cat:'template/public_controller.js'} |
---|
[25657] | 31 | {/strip} |
---|
[25654] | 32 | |
---|
[25817] | 33 | {footer_script require='admintools.controller'} |
---|
| 34 | AdminTools.urlWS = '{$ROOT_URL}ws.php?format=json&method='; |
---|
[25845] | 35 | |
---|
| 36 | {if isset($ato.MULTIVIEW)} |
---|
[25817] | 37 | AdminTools.multiView = { |
---|
[25818] | 38 | view_as: {$ato.MULTIVIEW.view_as}, |
---|
| 39 | theme: '{$ato.MULTIVIEW.theme}', |
---|
| 40 | lang: '{$ato.MULTIVIEW.lang}' |
---|
[25817] | 41 | }; |
---|
[25845] | 42 | {/if} |
---|
[25817] | 43 | |
---|
[25818] | 44 | {if $ato.DELETE_CACHE} |
---|
| 45 | AdminTools.deleteCache(); |
---|
| 46 | {/if} |
---|
[25835] | 47 | AdminTools.init("{$ato.U_SELF}"); |
---|
[25817] | 48 | {if $themeconf.mobile} |
---|
| 49 | AdminTools.initMobile(); |
---|
| 50 | {/if} |
---|
| 51 | {if isset($ato.U_SET_REPRESENTATIVE)} |
---|
| 52 | AdminTools.initRepresentative({$current.id}, {$ato.CATEGORY_ID}); |
---|
| 53 | {/if} |
---|
| 54 | {if isset($ato.U_CADDIE) and isset($ato.IS_PICTURE)} |
---|
| 55 | AdminTools.initCaddie({$current.id}); |
---|
| 56 | {/if} |
---|
| 57 | {if isset($ato.QUICK_EDIT)} |
---|
| 58 | AdminTools.initQuickEdit({intval(isset($ato.IS_PICTURE))}, { |
---|
[25818] | 59 | hintText: '{'Type in a search term'|translate|escape:javascript}', |
---|
| 60 | noResultsText: '{'No results'|translate|escape:javascript}', |
---|
| 61 | searchingText: '{'Searching...'|translate|escape:javascript}', |
---|
| 62 | newText: ' ({'new'|translate|escape:javascript})' |
---|
[25817] | 63 | }); |
---|
| 64 | {/if} |
---|
| 65 | {/footer_script} |
---|
| 66 | |
---|
[25619] | 67 | <div id="ato_header_closed"><a href="#" class="icon-tools"></a></div> |
---|
| 68 | |
---|
[25617] | 69 | <div id="ato_header"> |
---|
[25839] | 70 | <ul> |
---|
[25619] | 71 | <li><a href="#" class="icon-ato-cancel close-panel"></a></li> |
---|
[25845] | 72 | {if isset($ato.U_SITE_ADMIN)} |
---|
[25924] | 73 | <li class="parent"><a href="#" class="icon-menu ato-min-1">{'Administration'|translate}</a> |
---|
[25617] | 74 | <ul> |
---|
[25629] | 75 | <li><a class="icon-picture" href="{$ato.U_SITE_ADMIN}batch_manager">{'Photos'|translate}</a></li> |
---|
[25617] | 76 | <li><a class="icon-sitemap" href="{$ato.U_SITE_ADMIN}cat_list">{'Albums'|translate}</a></li> |
---|
| 77 | <li><a class="icon-users" href="{$ato.U_SITE_ADMIN}user_list">{'Users'|translate}</a></li> |
---|
| 78 | <li><a class="icon-puzzle" href="{$ato.U_SITE_ADMIN}plugins">{'Plugins'|translate}</a></li> |
---|
| 79 | <li><a class="icon-wrench" href="{$ato.U_SITE_ADMIN}maintenance">{'Tools'|translate}</a></li> |
---|
| 80 | <li><a class="icon-cog" href="{$ato.U_SITE_ADMIN}configuration">{'Options'|translate}</a></li> |
---|
| 81 | </ul> |
---|
| 82 | </li> |
---|
[25845] | 83 | {/if} |
---|
| 84 | {if isset($ato.U_ADMIN_EDIT)} |
---|
[25924] | 85 | <li class="parent"><a href="#" class="icon-pencil ato-min-2">{'Edit'|translate}</a> |
---|
[25617] | 86 | <ul> |
---|
[25654] | 87 | <li><a href="#ato_quick_edit" class="icon-ato-flash edit-quick">{'Quick edit'|translate}</a></li> |
---|
[25845] | 88 | <li><a class="icon-ato-doc-text-inv" href="{$ato.U_ADMIN_EDIT}">{'Properties page'|translate}</a></li> |
---|
| 89 | {if isset($ato.U_DELETE)} |
---|
| 90 | <li style="margin-top:1em;"><a class="icon-ato-cancel" href="{$ato.U_DELETE}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li> |
---|
[25839] | 91 | {/if} |
---|
[25617] | 92 | </ul> |
---|
| 93 | </li> |
---|
[25845] | 94 | {else if isset($ato.QUICK_EDIT)} |
---|
[25924] | 95 | <li><a href="#ato_quick_edit" class="icon-pencil edit-quick ato-min-2">{'Edit'|translate}</a></li> |
---|
[25845] | 96 | {if isset($ato.U_DELETE)} |
---|
[25924] | 97 | <li><a class="icon-ato-cancel ato-min-2" href="{$ato.U_DELETE}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li> |
---|
[25845] | 98 | {/if} |
---|
[25617] | 99 | {/if} |
---|
| 100 | {if isset($ato.U_SET_REPRESENTATIVE)} |
---|
[25924] | 101 | <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative ato-min-2" href="{$ato.U_SET_REPRESENTATIVE}">{'representative'|translate|ucfirst}</a></li> |
---|
[25617] | 102 | {/if} |
---|
| 103 | {if isset($ato.U_CADDIE)} |
---|
[25924] | 104 | <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-flag add-caddie ato-min-2" href="{$ato.U_CADDIE}">{'Add to caddie'|translate}</a></li> |
---|
[25617] | 105 | {/if} |
---|
[25629] | 106 | {if isset($ato.IS_CATEGORY)} |
---|
[25924] | 107 | <li><a class="icon-plus-circled ato-min-2" href="{$ato.U_SITE_ADMIN}photos_add&album={$ato.CATEGORY_ID}">{'Add Photos'|translate}</a></li> |
---|
[25629] | 108 | {/if} |
---|
[25924] | 109 | <li class="saved"><span class="icon-ato-ok ato-min-1">{'Saved'|translate}</span></li> |
---|
[25629] | 110 | |
---|
[25845] | 111 | {if isset($ato.MULTIVIEW)} |
---|
[25924] | 112 | <li class="parent right multiview"><a class="icon-cog-alt ato-min-1" href="#">{'Tools'|translate}</a> |
---|
[25617] | 113 | <ul> |
---|
[25655] | 114 | <li><label>{'View as'|translate}</label> |
---|
[25817] | 115 | <select class="switcher" data-type="view_as"></select> |
---|
[25617] | 116 | </li> |
---|
[25655] | 117 | <li><label>{'Theme'|translate}</label> |
---|
[25817] | 118 | <select class="switcher" data-type="theme"></select> |
---|
[25617] | 119 | </li> |
---|
[25655] | 120 | <li><label>{'Language'|translate}</label> |
---|
[25817] | 121 | <select class="switcher" data-type="lang"></select> |
---|
[25617] | 122 | </li> |
---|
[25839] | 123 | <li><a class="icon-check{if !$ato.MULTIVIEW.show_queries}-empty{/if}" href="{$ato.U_SELF}ato_show_queries={(int)!$ato.MULTIVIEW.show_queries}">{'Show SQL queries'|translate}</a></li> |
---|
| 124 | <li><a class="icon-check{if !$ato.MULTIVIEW.debug_l10n}-empty{/if}" href="{$ato.U_SELF}ato_debug_l10n={(int)!$ato.MULTIVIEW.debug_l10n}">{'Debug languages'|translate}</a></li> |
---|
| 125 | <li><a class="icon-check{if !$ato.MULTIVIEW.debug_template}-empty{/if}" href="{$ato.U_SELF}ato_debug_template={(int)!$ato.MULTIVIEW.debug_template}">{'Debug template'|translate}</a></li> |
---|
| 126 | <li><a class="icon-check{if !$ato.MULTIVIEW.template_combine_files}-empty{/if}" href="{$ato.U_SELF}ato_template_combine_files={(int)!$ato.MULTIVIEW.template_combine_files}">{'Combine JS&CSS'|translate}</a></li> |
---|
| 127 | <li><a class="icon-check{if $ato.MULTIVIEW.no_history}-empty{/if}" href="{$ato.U_SELF}ato_no_history={(int)!$ato.MULTIVIEW.no_history}">{'Save visit in history'|translate}</a></li> |
---|
[25655] | 128 | <li><a class="icon-ato-null" href="{$ato.U_SELF}ato_purge_template=1">{'Purge compiled templates'|translate}</a></li> |
---|
[25617] | 129 | </ul> |
---|
| 130 | </li> |
---|
[25845] | 131 | {if $ato.USER.id != $ato.MULTIVIEW.view_as} |
---|
[25924] | 132 | <li class="right ato-hide-2"><span> |
---|
| 133 | {'Viewing as <b>%s</b>.'|translate:$ato.CURRENT_USERNAME} |
---|
[25655] | 134 | <a href="{$ato.U_SELF}ato_view_as={$ato.USER.id}">{'Revert'|translate}</a> |
---|
[25924] | 135 | </span></li> |
---|
[25845] | 136 | {/if} |
---|
[25619] | 137 | {/if} |
---|
[25617] | 138 | </ul> |
---|
| 139 | </div> |
---|
| 140 | |
---|
[25654] | 141 | {if isset($ato.QUICK_EDIT)} |
---|
| 142 | <div style="display:none;"> |
---|
[25817] | 143 | <div id="ato_quick_edit" title="{'Quick edit'|translate}"> |
---|
[25654] | 144 | <form method="post" action="{$ato.U_SELF}"> |
---|
| 145 | <fieldset class="left"> |
---|
[25839] | 146 | {if isset($ato.QUICK_EDIT.img)}<img src="{$ato.QUICK_EDIT.img}" width="100" height="100">{/if} |
---|
[25655] | 147 | <input type="submit" value="{'Save'|translate}"> |
---|
| 148 | <a href="#" class="icon-ato-cancel close-edit">{'Cancel'|translate}</a> |
---|
[25654] | 149 | </fieldset> |
---|
| 150 | |
---|
| 151 | <fieldset class="main"> |
---|
| 152 | <label for="quick_edit_name">{'Name'|translate}</label> |
---|
| 153 | <input type="text" name="name" id="quick_edit_name" value="{$ato.QUICK_EDIT.name|escape:html}"> |
---|
| 154 | |
---|
[25655] | 155 | {if isset($ato.IS_PICTURE)} |
---|
[25654] | 156 | <label for="quick_edit_author">{'Author'|translate}</label> |
---|
| 157 | <input type="text" name="author" id="quick_edit_author" value="{$ato.QUICK_EDIT.author|escape:html}"> |
---|
| 158 | |
---|
| 159 | <label for="quick_edit_date_creation">{'Creation date'|translate}</label> |
---|
| 160 | <input type="text" name="date_creation" id="quick_edit_date_creation" class="datepicker" value="{$ato.QUICK_EDIT.date_creation}"> |
---|
| 161 | <input type="hidden" name="date_creation_time" value="{$ato.QUICK_EDIT.date_creation_time}"> |
---|
| 162 | |
---|
| 163 | <label for="quick_edit_tags">{'Tags'|translate}</label> |
---|
| 164 | <select name="tags" id="quick_edit_tags" class="tags"> |
---|
| 165 | {foreach from=$ato.QUICK_EDIT.tag_selection item=tag} |
---|
| 166 | <option value="{$tag.id}" class="selected">{$tag.name}</option> |
---|
| 167 | {/foreach} |
---|
| 168 | </select> |
---|
| 169 | |
---|
[25845] | 170 | {if isset($available_permission_levels)} |
---|
[25654] | 171 | <label for="quick_edit_level">{'Who can see this photo?'|@translate}</label> |
---|
| 172 | <select name="level" size="1"> |
---|
| 173 | {html_options options=$available_permission_levels selected=$ato.QUICK_EDIT.level} |
---|
| 174 | </select> |
---|
[25845] | 175 | {/if} |
---|
[25655] | 176 | {/if} |
---|
| 177 | |
---|
| 178 | <label for="quick_edit_comment">{'Description'|translate}</label> |
---|
| 179 | <textarea name="comment" id="quick_edit_comment">{$ato.QUICK_EDIT.comment}</textarea> |
---|
[25654] | 180 | </fieldset> |
---|
| 181 | |
---|
| 182 | <input type="hidden" name="action" value="quick_edit"> |
---|
| 183 | </form> |
---|
| 184 | </div> |
---|
| 185 | </div> |
---|
[25817] | 186 | {/if} |
---|