Changeset 25655 for extensions/AdminTools/template/public_controller.tpl
- Timestamp:
- Nov 23, 2013, 5:47:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/template/public_controller.tpl
r25654 r25655 64 64 <li class="parent right"><a class="icon-cog-alt" href="#">{'Tools'|translate}</a> 65 65 <ul> 66 <li><label> View as</label>66 <li><label>{'View as'|translate}</label> 67 67 <select class="switcher" data-type="view_as"> 68 68 {html_options options=$ato.USERS selected=$ato.MULTIVIEW.view_as} 69 69 </select> 70 70 </li> 71 <li><label> Theme</label>71 <li><label>{'Theme'|translate}</label> 72 72 <select class="switcher" data-type="theme"> 73 73 {html_options options=$ato.THEMES selected=$ato.MULTIVIEW.theme} 74 74 </select> 75 75 </li> 76 <li><label> Language</label>76 <li><label>{'Language'|translate}</label> 77 77 <select class="switcher" data-type="lang"> 78 78 {html_options options=$ato.LANGS selected=$ato.MULTIVIEW.lang} 79 79 </select> 80 80 </li> 81 <li><a class="icon-ato-check{if !$ato.MULTIVIEW.show_queries}-empty{/if}" href="{$ato.U_SELF} show_queries={(int)!$ato.MULTIVIEW.show_queries}">{'Show SQL queries'|translate}</a></li>82 <li><a class="icon-ato-check{if !$ato.MULTIVIEW.debug_l10n}-empty{/if}" href="{$ato.U_SELF} debug_l10n={(int)!$ato.MULTIVIEW.debug_l10n}">{'Debug languages'|translate}</a></li>83 <li><a class="icon-ato-check{if !$ato.MULTIVIEW.debug_template}-empty{/if}" href="{$ato.U_SELF} debug_template={(int)!$ato.MULTIVIEW.debug_template}">{'Debug template'|translate}</a></li>84 <li><a class="icon-ato-check{if !$ato.MULTIVIEW.template_combine_files}-empty{/if}" href="{$ato.U_SELF} template_combine_files={(int)!$ato.MULTIVIEW.template_combine_files}">{'Combine JS&CSS'|translate}</a></li>85 <li><a class="icon-ato-check{if $ato.MULTIVIEW.no_history}-empty{/if}" href="{$ato.U_SELF} no_history={(int)!$ato.MULTIVIEW.no_history}">{'Save visit in history'|translate}</a></li>86 <li><a class="icon-ato-null" href="{$ato.U_SELF} purge_template=1">{'Purge compiled templates'|translate}</a></li>81 <li><a class="icon-ato-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> 82 <li><a class="icon-ato-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> 83 <li><a class="icon-ato-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> 84 <li><a class="icon-ato-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> 85 <li><a class="icon-ato-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> 86 <li><a class="icon-ato-null" href="{$ato.U_SELF}ato_purge_template=1">{'Purge compiled templates'|translate}</a></li> 87 87 </ul> 88 88 </li> 89 89 {if $ato.USER.id != $ato.MULTIVIEW.view_as} 90 90 <li class="right"> 91 {' Logged as <b>%s</b>, viewing as <b>%s</b>.'|translate:$ato.USER.username:$ato.CURRENT_USERNAME}92 <a href="{$ato.U_SELF} view_as={$ato.USER.id}">{'Revert'|translate}</a>91 {'Viewing as <b>%s</b>.'|translate:$ato.CURRENT_USERNAME} 92 <a href="{$ato.U_SELF}ato_view_as={$ato.USER.id}">{'Revert'|translate}</a> 93 93 </li> 94 94 {/if} … … 101 101 <form method="post" action="{$ato.U_SELF}"> 102 102 <fieldset class="left"> 103 <img src="{$ current.derivatives.square->get_url()}" width="100" height="100">104 < br><input type="submit" value="{'Save'|translate}">105 < br><a href="#" class="icon-ato-cancel close-edit">{'Cancel'|translate}</a>103 <img src="{$ato.QUICK_EDIT.img->get_url()}" width="100" height="100"> 104 <input type="submit" value="{'Save'|translate}"> 105 <a href="#" class="icon-ato-cancel close-edit">{'Cancel'|translate}</a> 106 106 </fieldset> 107 107 … … 110 110 <input type="text" name="name" id="quick_edit_name" value="{$ato.QUICK_EDIT.name|escape:html}"> 111 111 112 {if isset($ato.IS_PICTURE)} 112 113 <label for="quick_edit_author">{'Author'|translate}</label> 113 114 <input type="text" name="author" id="quick_edit_author" value="{$ato.QUICK_EDIT.author|escape:html}"> 114 115 115 116 116 <label for="quick_edit_date_creation">{'Creation date'|translate}</label> … … 125 125 </select> 126 126 127 <label for="quick_edit_comment">{'Description'|translate}</label>128 <textarea name="comment" id="quick_edit_comment">{$ato.QUICK_EDIT.comment}</textarea>129 130 127 <label for="quick_edit_level">{'Who can see this photo?'|@translate}</label> 131 128 <select name="level" size="1"> 132 129 {html_options options=$available_permission_levels selected=$ato.QUICK_EDIT.level} 133 130 </select> 131 {/if} 132 133 <label for="quick_edit_comment">{'Description'|translate}</label> 134 <textarea name="comment" id="quick_edit_comment">{$ato.QUICK_EDIT.comment}</textarea> 134 135 </fieldset> 135 136 … … 142 143 {footer_script require='jquery'} 143 144 (function($){ 145 function moveBody(dir, anim) { 146 var operator = dir=='show' ? '+=' : '-='; 147 148 if (anim) { 149 $('body').animate({ldelim}'margin-top': operator+ato_height}); 150 151 if ($('#the_page').css('position')=='absolute') { 152 $('#the_page').animate({ldelim}'top': operator+ato_height}); 153 } 154 } 155 else { 156 $('body').css({ldelim}'margin-top': operator+ato_height}); 157 158 if ($('#the_page').css('position')=='absolute') { 159 $('#the_page').css({ldelim}'top': operator+ato_height}); 160 } 161 } 162 } 163 144 164 var $ato = $('#ato_header'), 145 165 $ato_closed = $('#ato_header_closed'), … … 155 175 if (window.localStorage.ato_panel_open == "true") { 156 176 $ato.show(); 157 $('body').css({ldelim}'margin-top': '+='+ato_height});177 moveBody('show', false); 158 178 } 159 179 else { … … 184 204 $ato.find('.switcher').on({ 185 205 'change': function() { 186 window.location.href = '{$ato.U_SELF} '+ $(this).data('type') +'='+ $(this).val();206 window.location.href = '{$ato.U_SELF}ato_'+ $(this).data('type') +'='+ $(this).val(); 187 207 }, 188 208 'click': function(e) { … … 195 215 $ato.slideUp(); 196 216 $ato_closed.slideDown(); 197 $('body').animate({ldelim}'margin-top': '-='+ato_height});217 moveBody('hide', true); 198 218 199 219 window.localStorage.ato_panel_open = "false"; … … 204 224 $ato.slideDown(); 205 225 $ato_closed.slideUp(); 206 $('body').animate({ldelim}'margin-top': '+='+ato_height});226 moveBody('show', true); 207 227 208 228 window.localStorage.ato_panel_open = "true"; … … 269 289 var $ato_edit = $('#ato_quick_edit'); 270 290 271 $ato_edit.css('background-color', $("#the_page #content").css('background-color')); 291 var bg_color = $('#the_page #content').css('background-color'); 292 if (!bg_color || bg_color=='transparent') { 293 bg_color = $('body').css('background-color'); 294 } 295 $ato_edit.css('background-color', bg_color); 272 296 273 297 $ato_edit.find('.close-edit').on('click', function(e) { … … 276 300 }); 277 301 302 {if isset($ato.IS_PICTURE)} 278 303 $ato_edit.find('.datepicker').datepicker({ 279 304 dateFormat: 'yy-mm-dd' … … 292 317 } 293 318 ); 319 {/if} 294 320 295 321 $(".edit-quick").colorbox({
Note: See TracChangeset
for help on using the changeset viewer.