source: extensions/AdminTools/template/public_controller.tpl @ 25839

Revision 25839, 8.5 KB checked in by mistic100, 6 years ago (diff)

remove font icons integrated in core + replace "OK" alert by a blinking message

Line 
1{strip}
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
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
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'}
15
16    {*<!-- datepicker -->*}
17    {combine_script id='jquery.ui.datepicker' load='footer' path='themes/default/js/ui/jquery.ui.datepicker.js'}
18
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'}
27  {/if}
28{/if}
29
30{combine_script id='admintools.controller' load='footer' require='jquery' path=$ADMINTOOLS_PATH|cat:'template/public_controller.js'}
31{/strip}
32
33{footer_script require='admintools.controller'}
34AdminTools.urlWS = '{$ROOT_URL}ws.php?format=json&method=';
35AdminTools.multiView = {
36  view_as: {$ato.MULTIVIEW.view_as},
37  theme: '{$ato.MULTIVIEW.theme}',
38  lang: '{$ato.MULTIVIEW.lang}'
39};
40
41{if $ato.DELETE_CACHE}
42  AdminTools.deleteCache();
43{/if}
44  AdminTools.init("{$ato.U_SELF}");
45{if $themeconf.mobile}
46  AdminTools.initMobile();
47{/if}
48{if isset($ato.U_SET_REPRESENTATIVE)}
49  AdminTools.initRepresentative({$current.id}, {$ato.CATEGORY_ID});
50{/if}
51{if isset($ato.U_CADDIE) and isset($ato.IS_PICTURE)}
52  AdminTools.initCaddie({$current.id});
53{/if}
54{if isset($ato.QUICK_EDIT)}
55  AdminTools.initQuickEdit({intval(isset($ato.IS_PICTURE))}, {
56    hintText: '{'Type in a search term'|translate|escape:javascript}',
57    noResultsText: '{'No results'|translate|escape:javascript}',
58    searchingText: '{'Searching...'|translate|escape:javascript}',
59    newText: ' ({'new'|translate|escape:javascript})'
60  });
61{/if}
62{/footer_script}
63
64<div id="ato_header_closed"><a href="#" class="icon-tools"></a></div>
65
66<div id="ato_header">
67  <ul>
68    <li><a href="#" class="icon-ato-cancel close-panel"></a></li>
69    <li class="parent"><a href="#" class="icon-menu ato-hide-1">{'Administration'|translate}</a>
70      <ul>
71        <li><a class="icon-picture" href="{$ato.U_SITE_ADMIN}batch_manager">{'Photos'|translate}</a></li>
72        <li><a class="icon-sitemap" href="{$ato.U_SITE_ADMIN}cat_list">{'Albums'|translate}</a></li>
73        <li><a class="icon-users" href="{$ato.U_SITE_ADMIN}user_list">{'Users'|translate}</a></li>
74        <li><a class="icon-puzzle" href="{$ato.U_SITE_ADMIN}plugins">{'Plugins'|translate}</a></li>
75        <li><a class="icon-wrench" href="{$ato.U_SITE_ADMIN}maintenance">{'Tools'|translate}</a></li>
76        <li><a class="icon-cog" href="{$ato.U_SITE_ADMIN}configuration">{'Options'|translate}</a></li>
77      </ul>
78    </li>
79  {if isset($ato.U_EDIT)}
80    <li class="parent"><a href="#" class="icon-pencil ato-hide-2">{'Edit'|translate}</a>
81      <ul>
82        <li><a href="#ato_quick_edit" class="icon-ato-flash edit-quick">{'Quick edit'|translate}</a></li>
83        <li><a class="icon-ato-doc-text-inv" href="{$ato.U_EDIT}">{'Properties page'|translate}</a></li>
84      {if isset($ato.IS_PICTURE)}
85                                <li style="margin-top:1em;"><a class="icon-ato-cancel" href="{$ato.U_SELF}delete&amp;pwg_token={$ato.PWG_TOKEN}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
86      {/if}
87      </ul>
88    </li>
89  {/if}
90  {if isset($ato.U_SET_REPRESENTATIVE)}
91    <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative ato-hide-2" href="{$ato.U_SET_REPRESENTATIVE}">{'representative'|translate|ucfirst}</a></li>
92  {/if}
93  {if isset($ato.U_CADDIE)}
94    <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-flag add-caddie ato-hide-2" href="{$ato.U_CADDIE}">{'Add to caddie'|translate}</a></li>
95  {/if}
96  {if isset($ato.IS_CATEGORY)}
97    <li><a class="icon-plus-circled ato-hide-2" href="{$ato.U_SITE_ADMIN}photos_add&amp;album={$ato.CATEGORY_ID}">{'Add Photos'|translate}</a></li>
98  {/if}
99    <li class="saved"><span class="icon-ato-ok ato-hide-1">{'Saved'|translate}</span></li>
100
101    <li class="parent right multiview"><a class="icon-cog-alt ato-hide-1" href="#">{'Tools'|translate}</a>
102      <ul>
103        <li><label>{'View as'|translate}</label>
104          <select class="switcher" data-type="view_as"></select>
105        </li>
106        <li><label>{'Theme'|translate}</label>
107          <select class="switcher" data-type="theme"></select>
108        </li>
109        <li><label>{'Language'|translate}</label>
110          <select class="switcher" data-type="lang"></select>
111        </li>
112        <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>
113        <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>
114        <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>
115        <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>
116        <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>
117        <li><a class="icon-ato-null" href="{$ato.U_SELF}ato_purge_template=1">{'Purge compiled templates'|translate}</a></li>
118      </ul>
119    </li>
120  {if $ato.USER.id != $ato.MULTIVIEW.view_as}
121    <li class="right">
122      &nbsp;&nbsp;{'Viewing as <b>%s</b>.'|translate:$ato.CURRENT_USERNAME}
123      <a href="{$ato.U_SELF}ato_view_as={$ato.USER.id}">{'Revert'|translate}</a>
124    </li>
125  {/if}
126  </ul>
127</div>
128
129{if isset($ato.QUICK_EDIT)}
130<div style="display:none;">
131  <div id="ato_quick_edit" title="{'Quick edit'|translate}">
132    <form method="post" action="{$ato.U_SELF}">
133      <fieldset class="left">
134        {if isset($ato.QUICK_EDIT.img)}<img src="{$ato.QUICK_EDIT.img}" width="100" height="100">{/if}
135        <input type="submit" value="{'Save'|translate}">
136        <a href="#" class="icon-ato-cancel close-edit">{'Cancel'|translate}</a>
137      </fieldset>
138
139      <fieldset class="main">
140        <label for="quick_edit_name">{'Name'|translate}</label>
141        <input type="text" name="name" id="quick_edit_name" value="{$ato.QUICK_EDIT.name|escape:html}">
142
143      {if isset($ato.IS_PICTURE)}
144        <label for="quick_edit_author">{'Author'|translate}</label>
145        <input type="text" name="author" id="quick_edit_author" value="{$ato.QUICK_EDIT.author|escape:html}">
146
147        <label for="quick_edit_date_creation">{'Creation date'|translate}</label>
148        <input type="text" name="date_creation" id="quick_edit_date_creation" class="datepicker" value="{$ato.QUICK_EDIT.date_creation}">
149        <input type="hidden" name="date_creation_time" value="{$ato.QUICK_EDIT.date_creation_time}">
150
151        <label for="quick_edit_tags">{'Tags'|translate}</label>
152        <select name="tags" id="quick_edit_tags" class="tags">
153        {foreach from=$ato.QUICK_EDIT.tag_selection item=tag}
154          <option value="{$tag.id}" class="selected">{$tag.name}</option>
155        {/foreach}
156        </select>
157
158        <label for="quick_edit_level">{'Who can see this photo?'|@translate}</label>
159        <select name="level" size="1">
160          {html_options options=$available_permission_levels selected=$ato.QUICK_EDIT.level}
161        </select>
162      {/if}
163
164        <label for="quick_edit_comment">{'Description'|translate}</label>
165        <textarea name="comment" id="quick_edit_comment">{$ato.QUICK_EDIT.comment}</textarea>
166      </fieldset>
167
168      <input type="hidden" name="action" value="quick_edit">
169    </form>
170  </div>
171</div>
172{/if}
Note: See TracBrowser for help on using the repository browser.