[+] BO : now Back-office has meta-title by controller
// fix back office template, add missing override
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
<div>
|
||||
<h1>{l s='Dashboard'}</h1>
|
||||
<hr style="background-color: #812143;color: #812143;" />
|
||||
<br />
|
||||
{if $upgrade}
|
||||
<div class="warning warn" style="margin-bottom:30px;"><h3>{l s ='New PrestaShop version available'} : <a style="text-decoration: underline;" href="{$upgrade->link}" target="_blank">{l s ='Download'} {$upgrade->version_name}</a> !</h3></div>
|
||||
<div class="warning warn" style="margin-bottom:10px;"><h3>{l s ='New PrestaShop version available'} : <a style="text-decoration: underline;" href="{$upgrade->link}" target="_blank">{l s ='Download'} {$upgrade->version_name}</a> !</h3></div>
|
||||
{else}
|
||||
<p>{l s ='Update notification unavailable'}</p>
|
||||
<p> </p>
|
||||
<p>{l s ='To receive PrestaShop update warnings, you need to activate the <b>allow_url_fopen</b> command in your <b>php.ini</b> config file.'} [<a href="http://www.php.net/manual/'.$isoUser.'/ref.filesystem.php">{l s ='more info'}</a>]</p>
|
||||
<p>{l s ='If you don\'t know how to do that, please contact your host administrator !'}</p><br />
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
{if $show_screencast}
|
||||
<div id="adminpresentation">
|
||||
<iframe src="{$protocol}://screencasts.prestashop.com/screencast.php?iso_lang={$isoUser}" style="border:none;width:100%;height:420px;" scrolling="no"></iframe>
|
||||
@@ -21,7 +18,6 @@
|
||||
<label for="screencast_dont_show_again">{l s='don\'t show again'}</label>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#screencast_dont_show_again').click(function() {
|
||||
@@ -39,76 +35,72 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="clear"></div><br />
|
||||
<div id="column_left">
|
||||
<ul class="F_list clearfix">
|
||||
{foreach from=$quick_links key=k item=link}
|
||||
<li id="{$k}_block">
|
||||
<h4><a href="{$link.href}">{$link.title}</a></h4>
|
||||
<p>{$link.description}</p>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{$monthly_statistics}
|
||||
{$customers_service}
|
||||
|
||||
{$stats_sales}
|
||||
{$last_orders}
|
||||
{/if}
|
||||
<div id="column_left">
|
||||
<ul class="F_list clearfix">
|
||||
{foreach from=$quick_links key=k item=link}
|
||||
<li id="{$k}_block">
|
||||
<h4><a href="{$link.href}">{$link.title}</a></h4>
|
||||
<p>{$link.description}</p>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{$monthly_statistics}
|
||||
{$customers_service}
|
||||
{$stats_sales}
|
||||
{$last_orders}
|
||||
</div>
|
||||
|
||||
<div id="column_right">
|
||||
<div id="column_right">
|
||||
{$tips_optimization}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
url: "ajax-tab.php",
|
||||
type: "POST",
|
||||
data:{
|
||||
token: "{$token}",
|
||||
ajax: "1",
|
||||
controller : "AdminHome",
|
||||
action: "getAdminHomeElement"
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
url: "ajax-tab.php",
|
||||
type: "POST",
|
||||
data:{
|
||||
token: "{$token}",
|
||||
ajax: "1",
|
||||
controller : "AdminHome",
|
||||
action: "getAdminHomeElement"
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
|
||||
if (json.screencast != 'NOK')
|
||||
$('#adminpresentation').fadeIn('slow');
|
||||
else
|
||||
$('#adminpresentation').fadeOut('slow');
|
||||
|
||||
$('#partner_preactivation').fadeOut('slow', function() {
|
||||
if (json.partner_preactivation != 'NOK')
|
||||
$('#partner_preactivation').html(json.partner_preactivation);
|
||||
else
|
||||
$('#partner_preactivation').html('');
|
||||
$('#partner_preactivation').fadeIn('slow');
|
||||
});
|
||||
|
||||
$('#discover_prestashop').fadeOut('slow', function() {
|
||||
if (json.discover_prestashop != 'NOK')
|
||||
$('#discover_prestashop').html(json.discover_prestashop);
|
||||
else
|
||||
$('#discover_prestashop').html('');
|
||||
$('#discover_prestashop').fadeIn('slow');
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
$('#adminpresentation').fadeOut('slow');
|
||||
$('#partner_preactivation').fadeOut('slow');
|
||||
$('#discover_prestashop').fadeOut('slow');
|
||||
}
|
||||
if (json.screencast != 'NOK')
|
||||
$('#adminpresentation').fadeIn('slow');
|
||||
else
|
||||
$('#adminpresentation').fadeOut('slow');
|
||||
|
||||
$('#partner_preactivation').fadeOut('slow', function() {
|
||||
if (json.partner_preactivation != 'NOK')
|
||||
$('#partner_preactivation').html(json.partner_preactivation);
|
||||
else
|
||||
$('#partner_preactivation').html('');
|
||||
$('#partner_preactivation').fadeIn('slow');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="partner_preactivation">
|
||||
<p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
$('#discover_prestashop').fadeOut('slow', function() {
|
||||
if (json.discover_prestashop != 'NOK')
|
||||
$('#discover_prestashop').html(json.discover_prestashop);
|
||||
else
|
||||
$('#discover_prestashop').html('');
|
||||
$('#discover_prestashop').fadeIn('slow');
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
$('#adminpresentation').fadeOut('slow');
|
||||
$('#partner_preactivation').fadeOut('slow');
|
||||
$('#discover_prestashop').fadeOut('slow');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="partner_preactivation">
|
||||
<p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p>
|
||||
</div>
|
||||
{$discover_prestashop}
|
||||
<div class="clear"></div>
|
||||
|
||||
{$HOOK_BACKOFFICEHOME}
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
{$HOOK_BACKOFFICEHOME}
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="robots" content="NOFOLLOW, NOINDEX" />
|
||||
<title>PrestaShop™ - {l s='Administration panel'|escape:'htmlall':'UTF-8'}</title>
|
||||
<title>{$meta_title} - PrestaShop™</title>
|
||||
<script type="text/javascript">
|
||||
var helpboxes = {$help_box};
|
||||
var roundMode = {$round_mode};
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<div class="admin-box1">
|
||||
<h5>{l s='A good beginning...'}
|
||||
<span style="float:right">
|
||||
<a id="optimizationTipsFold" href="#">
|
||||
<img alt="v" style="padding-top:0px; padding-right: 5px;" src="../img/admin/{if $hide_tips}down-white.gif{else}close-white.png{/if}" />
|
||||
</a>
|
||||
</span>
|
||||
</h5>
|
||||
<ul id="list-optimization-tips" class="admin-home-box-list" {if $hide_tips}style="display:none"{/if} >
|
||||
{foreach from=$opti_list item=i key=k}
|
||||
<li style="background-color:{$i.color}">
|
||||
<img src="../img/admin/{$i.image}" class="pico" />
|
||||
<a href="{$i.href}">{$i.title}</a>
|
||||
</li>
|
||||
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
{if !$hide_tips}
|
||||
$("#optimizationTipsFold").click(function(e){
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
url: "ajax-tab.php",
|
||||
type: "POST",
|
||||
data:{
|
||||
token: "{$token}",
|
||||
ajax: "1",
|
||||
controller : "AdminHome",
|
||||
action: "hideOptimizationTips"
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(json){
|
||||
if(json.result == "ok")
|
||||
showSuccessMessage(json.msg);
|
||||
else
|
||||
showErrorMessage(json.msg);
|
||||
|
||||
} ,
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
{/if}
|
||||
$("#optimizationTipsFold").click(function(e){
|
||||
e.preventDefault();
|
||||
$("#list-optimization-tips").toggle(function(){
|
||||
if($("#optimizationTipsFold").children("img").attr("src") == "../img/admin/down-white.gif")
|
||||
$("#optimizationTipsFold").children("img").attr("src","../img/admin/close-white.png");
|
||||
else
|
||||
$("#optimizationTipsFold").children("img").attr("src","../img/admin/down-white.gif");
|
||||
});
|
||||
})
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user