1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
piwigo_ynh/sources/admin/themes/default/template/admin.tpl

164 lines
5.4 KiB
Smarty
Raw Normal View History

2015-07-05 19:03:18 +02:00
{footer_script}
jQuery.fn.lightAccordion = function(options) {
var settings = $.extend({
header: 'dt',
content: 'dd',
active: 0
}, options);
return this.each(function() {
var self = jQuery(this);
var contents = self.find(settings.content),
headers = self.find(settings.header);
contents.not(contents[settings.active]).hide();
self.on('click', settings.header, function() {
var content = jQuery(this).next(settings.content);
content.slideDown();
contents.not(content).slideUp();
});
});
};
$('#menubar').lightAccordion({
active: {$ACTIVE_MENU}
2014-07-06 13:21:10 +02:00
});
{/footer_script}
<div id="menubar">
<div id="adminHome"><a href="{$U_ADMIN}">{'Administration Home'|@translate}</a></div>
2015-07-05 19:03:18 +02:00
<dl>
<dt><i class="icon-picture"> </i><span>{'Photos'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
2015-07-05 19:03:18 +02:00
<li><a href="{$U_ADD_PHOTOS}"><i class="icon-plus-circled"></i>{'Add'|@translate}</a></li>
<li><a href="{$U_RATING}"><i class="icon-star"></i>{'Rating'|@translate}</a></li>
<li><a href="{$U_TAGS}"><i class="icon-tags"></i>{'Tags'|@translate}</a></li>
<li><a href="{$U_RECENT_SET}"><i class="icon-clock"></i>{'Recent photos'|@translate}</a></li>
<li><a href="{$U_BATCH}"><i class="icon-pencil"></i>{'Batch Manager'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
{if $NB_PHOTOS_IN_CADDIE > 0}
2015-07-05 19:03:18 +02:00
<li><a href="{$U_CADDIE}"><i class="icon-flag"></i>{'Caddie'|@translate}<span class="adminMenubarCounter">{$NB_PHOTOS_IN_CADDIE}</span></a></li>
2016-08-27 21:53:29 +02:00
{/if}
{if $NB_ORPHANS > 0}
<li><a href="{$U_ORPHANS}"><i class="icon-heart-broken"></i>{'Orphans'|@translate}<span class="adminMenubarCounter">{$NB_ORPHANS}</span></a></li>
2014-07-06 13:21:10 +02:00
{/if}
</ul>
</dd>
2015-07-05 19:03:18 +02:00
</dl>
<dl>
<dt><i class="icon-sitemap"> </i><span>{'Albums'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
2015-07-05 19:03:18 +02:00
<li><a href="{$U_CATEGORIES}"><i class="icon-folder-open"></i>{'Manage'|@translate}</a></li>
<li><a href="{$U_CAT_OPTIONS}"><i class="icon-pencil"></i>{'Properties'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
</ul>
</dd>
2015-07-05 19:03:18 +02:00
</dl>
<dl>
<dt><i class="icon-users"> </i><span>{'Users'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
2015-07-05 19:03:18 +02:00
<li><a href="{$U_USERS}"><i class="icon-user-add"></i>{'Manage'|@translate}</a></li>
<li><a href="{$U_GROUPS}"><i class="icon-group"></i>{'Groups'|@translate}</a></li>
<li><a href="{$U_NOTIFICATION_BY_MAIL}"><i class="icon-mail-1"></i>{'Notification'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
</ul>
</dd>
2015-07-05 19:03:18 +02:00
</dl>
<dl>
<dt><i class="icon-puzzle"> </i><span>{'Plugins'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
2015-07-05 19:03:18 +02:00
<li><a href="{$U_PLUGINS}"><i class="icon-equalizer"></i>{'Manage'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
</ul>
<div id="pluginsMenuSeparator"></div>
{if !empty($plugin_menu_items)}
<ul class="scroll">
{foreach from=$plugin_menu_items item=menu_item}
<li><a href="{$menu_item.URL}">{$menu_item.NAME}</a></li>
{/foreach}
</ul>
{/if}
</dd>
2015-07-05 19:03:18 +02:00
</dl>
<dl>
<dt><i class="icon-wrench"> </i><span>{'Tools'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
{if $ENABLE_SYNCHRONIZATION}
2015-07-05 19:03:18 +02:00
<li><a href="{$U_CAT_UPDATE}"><i class="icon-exchange"></i>{'Synchronize'|@translate}</a></li>
<li><a href="{$U_SITE_MANAGER}"><i class="icon-flow-branch"></i>{'Site manager'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
{/if}
2015-07-05 19:03:18 +02:00
<li><a href="{$U_HISTORY_STAT}"><i class="icon-signal"></i>{'History'|@translate}</a></li>
<li><a href="{$U_MAINTENANCE}"><i class="icon-tools"></i>{'Maintenance'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
{if isset($U_COMMENTS)}
2015-07-05 19:03:18 +02:00
<li><a href="{$U_COMMENTS}"><i class="icon-chat"></i>{'Comments'|@translate}
{if $NB_PENDING_COMMENTS > 0}
<span class="adminMenubarCounter" title="{'%d waiting for validation'|translate:$NB_PENDING_COMMENTS}">{$NB_PENDING_COMMENTS}</span>
{/if}</a></li>
2014-07-06 13:21:10 +02:00
{/if}
2015-07-05 19:03:18 +02:00
<li><a href="{$U_UPDATES}"><i class="icon-arrows-cw"></i>{'Updates'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
</ul>
</dd>
2015-07-05 19:03:18 +02:00
</dl>
<dl>
<dt><i class="icon-cog"> </i><span>{'Configuration'|@translate}&nbsp;</span></dt>
2014-07-06 13:21:10 +02:00
<dd>
<ul>
2015-07-05 19:03:18 +02:00
<li><a href="{$U_CONFIG_GENERAL}"><i class="icon-cog-alt"></i>{'Options'|@translate}</a></li>
<li><a href="{$U_CONFIG_MENUBAR}"><i class="icon-menu"></i>{'Menu Management'|@translate}</a></li>
<li><a href="{$U_CONFIG_EXTENTS}"><i class="icon-code"></i>{'Templates'|@translate}</a></li>
<li><a href="{$U_CONFIG_LANGUAGES}"><i class="icon-language"></i>{'Languages'|@translate}</a></li>
<li><a href="{$U_CONFIG_THEMES}"><i class="icon-brush"></i>{'Themes'|@translate}</a></li>
2014-07-06 13:21:10 +02:00
</ul>
</dd>
</dl>
</div> <!-- menubar -->
<div id="content" class="content">
{if isset($TABSHEET)}
{$TABSHEET}
{/if}
{if isset($U_HELP)}
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
<ul class="HelpActions">
<li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" alt="(?)"></a></li>
</ul>
{/if}
{if isset($errors)}
<div class="errors">
<ul>
{foreach from=$errors item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($infos)}
<div class="infos">
<ul>
{foreach from=$infos item=info}
<li>{$info}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($warnings)}
<div class="warnings">
<ul>
{foreach from=$warnings item=warning}
<li>{$warning}</li>
{/foreach}
</ul>
</div>
{/if}
{$ADMIN_CONTENT}
</div>