Inital commit
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{* -- By default, check admin login ----------------------------------------- *}
|
||||
|
||||
{block name="check-auth"}
|
||||
{check_auth role="ADMIN" resource="{block name="check-resource"}{/block}" access="{block name="check-access"}{/block}" login_tpl="/admin/login"}
|
||||
{check_auth role="ADMIN" resource="{block name="check-resource"}{/block}" module="{block name="check-module"}{/block}" access="{block name="check-access"}{/block}" login_tpl="/admin/login"}
|
||||
{/block}
|
||||
|
||||
{block name="no-return-functions"}{/block}
|
||||
@@ -22,20 +22,19 @@
|
||||
|
||||
<title>{block name="page-title"}Default Page Title{/block} - {intl l='Thelia Back Office'}</title>
|
||||
|
||||
{images file='assets/img/favicon.ico'}<link rel="shortcut icon" href="{$asset_url}" />{/images}
|
||||
<link rel="shortcut icon" href="{image file='assets/img/favicon.ico'}" />
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
{block name="meta"}{/block}
|
||||
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400italic,600,700%7COpen+Sans:300,400,400italic,600,700">
|
||||
{* -- Bootstrap CSS section --------------------------------------------- *}
|
||||
|
||||
{block name="before-bootstrap-css"}{/block}
|
||||
|
||||
{stylesheets file='assets/css/styles.css'}
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
<link rel="stylesheet" href="{stylesheet file='assets/css/styles.css'}">
|
||||
|
||||
{block name="after-bootstrap-css"}{/block}
|
||||
|
||||
@@ -47,7 +46,7 @@
|
||||
|
||||
{* Modules css are included here *}
|
||||
|
||||
{module_include location='head_css'}
|
||||
{hook name="main.head-css" location="head_css" }
|
||||
|
||||
{* HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries *}
|
||||
<!--[if lt IE 9]>
|
||||
@@ -59,215 +58,139 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{* display top bar only if admin is connected *}
|
||||
<div id="wrapper">
|
||||
|
||||
{* display top bar only if admin is connected *}
|
||||
{loop name="top-bar-auth" type="auth" role="ADMIN"}
|
||||
|
||||
{loop name="top-bar-auth" type="auth" role="ADMIN"}
|
||||
{* -- Brand bar section ------------------------------------------------- *}
|
||||
|
||||
{* -- Brand bar section ------------------------------------------------- *}
|
||||
|
||||
{module_include location='before_topbar'}
|
||||
|
||||
<div class="topbar">
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 clearfix">
|
||||
<div class="version-info pull-left">{intl l='Version %ver' ver="{$THELIA_VERSION}"}</div>
|
||||
|
||||
<div class="clearfix pull-right hidden-xs">
|
||||
<div class="button-toolbar pull-righ" role="toolbar">
|
||||
|
||||
<div class="btn-group">
|
||||
<a href="{navigate to="index"}" title="{intl l='View site'}" target="_blank" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> {intl l="View shop"}</a>
|
||||
<button class="btn btn-default btn-primary"><span class="glyphicon glyphicon-user"></span> {admin attr="firstname"} {admin attr="lastname"}</button>
|
||||
<button class="btn btn-default btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="profile" href="{url path='admin/configuration/administrators'}"><span class="glyphicon glyphicon-edit"></span> {intl l="Profil"}</a></li>
|
||||
<li><a class="logout" href="{url path='admin/logout'}" title="{intl l='Close administation session'}"><span class="glyphicon glyphicon-off"></span> {intl l="Logout"}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
{loop type="lang" name="ui-lang" id="{lang attr='id'}"}
|
||||
<button class="btn btn-default">
|
||||
<img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}
|
||||
</button>
|
||||
{/loop}
|
||||
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{loop type="lang" name="ui-lang"}
|
||||
<li><a href="{url path="{navigate to="current"}" lang={$CODE}}"><img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}</a></li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{module_include location='inside_topbar'}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{module_include location='after_topbar'}
|
||||
|
||||
{* -- Top menu section -------------------------------------------------- *}
|
||||
|
||||
{module_include location='before_top_menu'}
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="{if $admin_current_location == 'home'}active{/if}" id="home_menu">
|
||||
<a href="{url path='/admin/home'}">{intl l="Home"}</a>
|
||||
</li>
|
||||
|
||||
{loop name="menu-auth-customer" type="auth" role="ADMIN" resource="admin.customer" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'customer'}active{/if}" id="customers_menu">
|
||||
<a href="{url path='/admin/customers'}">{intl l="Customers"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-order" type="auth" role="ADMIN" resource="admin.order" access="VIEW"}
|
||||
<li class="dropdown {if $admin_current_location == 'order'}active{/if}" id="orders_menu">
|
||||
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{intl l="Orders"} <span class="caret"></span></a>
|
||||
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
|
||||
<li role="menuitem">
|
||||
<a class="clearfix" data-target="{url path='admin/orders'}" href="{url path='admin/orders'}">
|
||||
<span class="pull-left">{intl l="All orders"}</span>
|
||||
<span class="label label-default pull-right">{count type="order" customer="*" backend_context="1"}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{loop name="order-status-list" type="order-status"}
|
||||
{assign "orderStatusLabel" "order_$CODE"}
|
||||
<li role="menuitem">
|
||||
<a class="clearfix" data-target="{url path="admin/orders/$LABEL"}" href="{url path="admin/orders" status={$ID}}">
|
||||
<span class="pull-left">{$TITLE}</span>
|
||||
<span class="label label-{#$orderStatusLabel#} pull-right">{count type="order" customer="*" backend_context="1" status={$ID}}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-catalog" type="auth" role="ADMIN" resource="admin.category" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'catalog'}active{/if}" id="catalog_menu">
|
||||
<a href="{url path='/admin/catalog'}">{intl l="Catalog"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-content" type="auth" role="ADMIN" resource="admin.folder" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'folder'}active{/if}" id="folders_menu">
|
||||
<a href="{url path='/admin/folders'}">{intl l="Folders"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-tools" type="auth" role="ADMIN" resource="admin.tools" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'tools'}active{/if}" id="tools_menu">
|
||||
<a href="{url path='/admin/tools'}">{intl l="Tools"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-modules" type="auth" role="ADMIN" resource="admin.module" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'modules'}active{/if}" id="modules_menu">
|
||||
<a href="{url path='/admin/modules'}">{intl l="Modules"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
{loop name="menu-auth-config" type="auth" role="ADMIN" resource="admin.configuration" access="VIEW"}
|
||||
<li class="{if $admin_current_location == 'configuration'}active{/if}" id="config_menu">
|
||||
<a href="{url path='/admin/configuration'}">{intl l="Configuration"}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
|
||||
{module_include location='in_top_menu_items'}
|
||||
{hook name="main.before-topbar" location="before_topbar" }
|
||||
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{url path='/admin/home'}">
|
||||
{images file='assets/img/logo-white.png'}
|
||||
<img src="{$asset_url}" alt="{intl l='Version %ver' ver="{$THELIA_VERSION}"}">
|
||||
<span>{intl l='Version %ver' ver="{$THELIA_VERSION}"}</span>
|
||||
{/images}
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.navbar-header -->
|
||||
|
||||
<ul class="nav navbar-top-links navbar-right">
|
||||
{hook name="main.topbar-top" }
|
||||
|
||||
<li>
|
||||
<a href="{navigate to="index"}" title="{intl l='View site'}" target="_blank"><span class="glyphicon glyphicon-eye-open"></span> {intl l="View shop"}</a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<button class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-user"></span> {admin attr="firstname"} {admin attr="lastname"}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a class="profile" href="{url path='admin/configuration/administrators/view'}"><span class="glyphicon glyphicon-edit"></span> {intl l="Profil"}</a></li>
|
||||
<li><a class="logout" href="{url path='admin/logout'}" title="{intl l='Close administation session'}"><span class="glyphicon glyphicon-off"></span> {intl l="Logout"}</a></li>
|
||||
</ul>
|
||||
|
||||
{loop name="top-bar-search" type="auth" role="ADMIN" resource="admin.search" access="VIEW"}
|
||||
<form class="navbar-form pull-right hidden-xs" action="{url path='/admin/search'}">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="search_term" name="search_term" placeholder="{intl l='Search'}">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</form>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
{loop type="lang" name="ui-lang" id={lang attr='id'} backend_context="1"}
|
||||
<button class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
<ul class="dropdown-menu">
|
||||
{loop type="lang" name="ui-lang" backend_context="1"}
|
||||
<li><a href="{url path="{navigate to="current"}" lang={$CODE}}"><img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}</a></li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.navbar-top-links -->
|
||||
|
||||
<div class="navbar-default sidebar" role="navigation">
|
||||
<div class="sidebar-nav navbar-collapse">
|
||||
|
||||
{include file="includes/main-menu.html"}
|
||||
|
||||
{hook name="main.inside-topbar" location="inside_topbar" }
|
||||
</div>
|
||||
<!-- /.sidebar-collapse -->
|
||||
</div>
|
||||
<!-- /.navbar-static-side -->
|
||||
|
||||
{hook name="main.after-topbar" location="after_topbar" }
|
||||
</nav>
|
||||
|
||||
<div id="page-wrapper">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">{block name="page-title"}{/block}</h1>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
{* -- Main page content section ----------------------------------------- *}
|
||||
{hook name="main.before-content" location="before_content"}
|
||||
|
||||
<div class="row">
|
||||
{block name="main-content"}Put here the content of the template{/block}
|
||||
</div>
|
||||
|
||||
{hook name="main.after-content" location="after_content"}
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
{/loop}
|
||||
|
||||
{module_include location='after_top_menu'}
|
||||
{hook name="main.before-footer" location="before_footer" }
|
||||
|
||||
{/loop}
|
||||
<footer class="footer">
|
||||
<div class="text-center">
|
||||
<p class="text-center">© Thelia <time datetime="{'Y-m-d'|date}">{'Y'|date}</time>
|
||||
- <a href="http://www.openstudio.fr/" target="_blank">{intl l='Published by OpenStudio'}</a>
|
||||
- <a href="http://thelia.net/forum" target="_blank">{intl l='Thelia support forum'}</a>
|
||||
- <a href="http://thelia.net/modules" target="_blank">{intl l='Thelia contributions'}</a>
|
||||
</p>
|
||||
|
||||
{* A basic brandbar is displayed if user is not connected *}
|
||||
{hook name="main.in-footer" location="in_footer" }
|
||||
|
||||
{elseloop rel="top-bar-auth"}
|
||||
<div class="brandbar brandbar-wide container">
|
||||
<a class="navbar-brand" href="{url path='/admin'}">{images file='assets/img/logo-thelia-34px.png'}<img src="{$asset_url}" alt="{intl l='Thelia, the open source e-commerce solution'}" />{/images}</a>
|
||||
</div>
|
||||
{/elseloop}
|
||||
|
||||
{* -- Main page content section ----------------------------------------- *}
|
||||
|
||||
{block name="main-content"}Put here the content of the template{/block}
|
||||
|
||||
{* -- Footer section ---------------------------------------------------- *}
|
||||
|
||||
{module_include location='before_footer'}
|
||||
|
||||
<hr />
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>{intl l='© Thelia 2013'}
|
||||
- <a href="http://www.openstudio.fr/" target="_blank">{intl l='Published by OpenStudio'}</a>
|
||||
- <a href="http://thelia.net/forum" target="_blank">{intl l='Thelia support forum'}</a>
|
||||
- <a href="#" target="_blank">{intl l='Thelia contributions'}</a>
|
||||
</p>
|
||||
|
||||
{module_include location='in_footer'}
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{module_include location='after_footer'}
|
||||
</div>
|
||||
<ul id="follow-us" class="list-unstyled list-inline">
|
||||
<li>
|
||||
<a href="https://twitter.com/theliaecommerce" target="_blank">
|
||||
<span class="icon-twitter"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.facebook.com/theliaecommerce" target="_blank">
|
||||
<span class="icon-facebook"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/thelia/thelia" target="_blank">
|
||||
<span class="icon-github"></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
{hook name="main.after-footer" location="after_footer" }
|
||||
</div> <!-- #wrapper -->
|
||||
|
||||
{* -- Javascript section ------------------------------------------------ *}
|
||||
|
||||
{block name="before-javascript-include"}{/block}
|
||||
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
|
||||
<script src="//code.jquery.com/jquery-2.0.3.min.js"></script>
|
||||
<script>
|
||||
if (typeof jQuery == 'undefined') {
|
||||
{javascripts file='assets/js/libs/jquery.js'}
|
||||
@@ -281,22 +204,24 @@
|
||||
{javascripts file='assets/js/bootstrap/bootstrap.js'}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{javascripts file='assets/js/libs/jquery.toolbar.min.js'}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{javascripts file='assets/js/libs/metis-menu.min.js'}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{block name="javascript-initialization"}{/block}
|
||||
|
||||
<script>
|
||||
(function($) {
|
||||
$(document).ready(function(){
|
||||
var testModal = $(".modal-force-show");
|
||||
if(testModal.length > 0) {
|
||||
testModal.modal("show");
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
{javascripts file='assets/js/main.js'}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{* Modules scripts are included now *}
|
||||
{module_include location='footer_js'}
|
||||
{hook name='main.footer-js' location="footer_js"}
|
||||
|
||||
{block name="javascript-last-call"}{/block}
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user