//clean header.tpl
This commit is contained in:
@@ -29,36 +29,38 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="robots" content="NOFOLLOW, NOINDEX" />
|
<meta name="robots" content="NOFOLLOW, NOINDEX" />
|
||||||
<title>{$meta_title} - PrestaShop™</title>
|
<title>{$meta_title} - PrestaShop™</title>
|
||||||
<script type="text/javascript">
|
{if $display_header}
|
||||||
var helpboxes = {$help_box};
|
<script type="text/javascript">
|
||||||
var roundMode = {$round_mode};
|
var helpboxes = {$help_box};
|
||||||
{if isset($shop_context)}
|
var roundMode = {$round_mode};
|
||||||
{if $shop_context == 'all'}
|
{if isset($shop_context)}
|
||||||
var youEditFieldFor = "{l s='A modification of this field will be applied for all shops'}";
|
{if $shop_context == 'all'}
|
||||||
{elseif $shop_context == 'group'}
|
var youEditFieldFor = "{l s='A modification of this field will be applied for all shops'}";
|
||||||
var youEditFieldFor = "{l s='A modification of this field will be applied for all shops of group '}<b>{$shop_name}</b>";
|
{elseif $shop_context == 'group'}
|
||||||
|
var youEditFieldFor = "{l s='A modification of this field will be applied for all shops of group '}<b>{$shop_name}</b>";
|
||||||
|
{else}
|
||||||
|
var youEditFieldFor = "{l s='A modification of this field will be applied for the shop '}<b>{$shop_name}</b>";
|
||||||
|
{/if}
|
||||||
{else}
|
{else}
|
||||||
var youEditFieldFor = "{l s='A modification of this field will be applied for the shop '}<b>{$shop_name}</b>";
|
var youEditFieldFor = '';
|
||||||
{/if}
|
{/if}
|
||||||
{else}
|
{* Notifications vars *}
|
||||||
var youEditFieldFor = '';
|
var autorefresh_notifications = '{$autorefresh_notifications}';
|
||||||
{/if}
|
var new_order_msg = '{l s='A new order has been made on your shop.'}';
|
||||||
|
var order_number_msg = '{l s='Order number : '}';
|
||||||
{* Notifications vars *}
|
var total_msg = '{l s='Total : '}';
|
||||||
var new_order_msg = '{l s='A new order has been made on your shop.'}';
|
var from_msg = '{l s='From : '}';
|
||||||
var order_number_msg = '{l s='Order number : '}';
|
var see_order_msg = '{l s='Click here to see that order'}';
|
||||||
var total_msg = '{l s='Total : '}';
|
var new_customer_msg = '{l s='A new customer registered on your shop.'}';
|
||||||
var from_msg = '{l s='From : '}';
|
var customer_name_msg = '{l s='Customer name : '}';
|
||||||
var see_order_msg = '{l s='Click here to see that order'}';
|
var see_customer_msg = '{l s='Click here to see that customer'}';
|
||||||
var new_customer_msg = '{l s='A new customer registered on your shop.'}';
|
var new_msg = '{l s='A new message posted on your shop.'}';
|
||||||
var customer_name_msg = '{l s='Customer name : '}';
|
var excerpt_msg = '{l s='Excerpt : '}';
|
||||||
var see_customer_msg = '{l s='Click here to see that customer'}';
|
var see_msg = '{l s='Click here to see that message'}';
|
||||||
var new_msg = '{l s='A new message posted on your shop.'}';
|
var token_admin_orders = '{getAdminToken tab='AdminOrders'}';
|
||||||
var excerpt_msg = '{l s='Excerpt : '}';
|
var token_admin_customers = '{getAdminToken tab='AdminCustomers'}';
|
||||||
var see_msg = '{l s='Click here to see that message'}';
|
</script>
|
||||||
var token_admin_orders = '{getAdminToken tab='AdminOrders'}';
|
{/if}
|
||||||
var token_admin_customers = '{getAdminToken tab='AdminCustomers'}';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{if isset($css_files)}
|
{if isset($css_files)}
|
||||||
{foreach from=$css_files key=css_uri item=media}
|
{foreach from=$css_files key=css_uri item=media}
|
||||||
@@ -70,23 +72,25 @@
|
|||||||
<script type="text/javascript" src="{$js_uri}"></script>
|
<script type="text/javascript" src="{$js_uri}"></script>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
<script type="text/javascript">
|
{if $display_header}
|
||||||
$(function() {
|
<script type="text/javascript">
|
||||||
$.ajax({
|
$(function() {
|
||||||
type: 'POST',
|
$.ajax({
|
||||||
url: 'ajax.php',
|
type: 'POST',
|
||||||
data: 'helpAccess=1&item={$class_name}&isoUser={$iso_user}&country={$country_iso_code}&version={$version}',
|
url: 'ajax.php',
|
||||||
async : true,
|
data: 'helpAccess=1&item={$class_name}&isoUser={$iso_user}&country={$country_iso_code}&version={$version}',
|
||||||
success: function(msg) {
|
async : true,
|
||||||
$("#help-button").html(msg);
|
success: function(msg) {
|
||||||
$("#help-button").fadeIn("slow");
|
$("#help-button").html(msg);
|
||||||
}
|
$("#help-button").fadeIn("slow");
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
{/if} <link rel="shortcut icon" href="{$img_dir}favicon.ico" />
|
||||||
|
{if $display_header}
|
||||||
<link rel="shortcut icon" href="{$img_dir}favicon.ico" />
|
{$HOOK_HEADER}
|
||||||
{$HOOK_HEADER}
|
{/if}
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<link type="text/css" rel="stylesheet" href="'._PS_CSS_DIR_.'admin-ie.css" />
|
<link type="text/css" rel="stylesheet" href="'._PS_CSS_DIR_.'admin-ie.css" />
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
@@ -95,56 +99,6 @@
|
|||||||
color:{$brightness}
|
color:{$brightness}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function()
|
|
||||||
{
|
|
||||||
var hints = $('.translatable span.hint');
|
|
||||||
if (youEditFieldFor)
|
|
||||||
{
|
|
||||||
hints.html(hints.html() + '<br /><span class="red">' + youEditFieldFor + '</span>');
|
|
||||||
}
|
|
||||||
var html = "";
|
|
||||||
var nb_notifs = 0;
|
|
||||||
var wrapper_id = "";
|
|
||||||
var type = new Array();
|
|
||||||
|
|
||||||
$(".notifs").live("click", function(){
|
|
||||||
// Add class "open_notifs" to the clicked notification, remove the class from other notificationqs
|
|
||||||
$('.notifs').removeClass('open_notifs');
|
|
||||||
$(this).addClass('open_notifs');
|
|
||||||
|
|
||||||
wrapper_id = $(this).attr("id");
|
|
||||||
type = wrapper_id.split("s_notif")
|
|
||||||
$.post("ajax.php",
|
|
||||||
{
|
|
||||||
"updateElementEmployee" : "1", "updateElementEmployeeType" : type[0]
|
|
||||||
}, function(data) {
|
|
||||||
if(data)
|
|
||||||
{
|
|
||||||
if(!$("#" + wrapper_id + "_wrapper").is(":visible"))
|
|
||||||
{
|
|
||||||
$(".notifs_wrapper").hide();
|
|
||||||
$("#" + wrapper_id + "_number_wrapper").hide();
|
|
||||||
$("#" + wrapper_id + "_wrapper").show();
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
$("#" + wrapper_id + "_wrapper").hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#main").click(function(){
|
|
||||||
$(".notifs_wrapper").hide();
|
|
||||||
$('.notifs').removeClass('open_notifs');
|
|
||||||
});
|
|
||||||
|
|
||||||
// call it once immediately, then use setTimeout if refresh is activated
|
|
||||||
getPush({$autorefresh_notifications});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body {if $bo_color} style="background:{$bo_color}" {/if}>
|
<body {if $bo_color} style="background:{$bo_color}" {/if}>
|
||||||
{if $display_header}
|
{if $display_header}
|
||||||
@@ -266,13 +220,13 @@ $(document).ready(function()
|
|||||||
{/if}
|
{/if}
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{if $install_dir_exists}
|
{if $display_header && $install_dir_exists}
|
||||||
<div style="background-color: #FFEBCC;border: 1px solid #F90;line-height: 20px;margin: 0px 0px 10px;padding: 10px 20px;">
|
<div style="background-color: #FFEBCC;border: 1px solid #F90;line-height: 20px;margin: 0px 0px 10px;padding: 10px 20px;">
|
||||||
{l s='For security reasons, you must also:'} {l s='delete the /install folder'}
|
{l s='For security reasons, you must also:'} {l s='delete the /install folder'}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $is_multishop && $shop_context != 'all'}
|
{if $display_header && $is_multishop && $shop_context != 'all'}
|
||||||
<div class="multishop_info">
|
<div class="multishop_info">
|
||||||
{if $shop_context == 'group'}
|
{if $shop_context == 'group'}
|
||||||
{l s='You are configuring your store for group shop '}<b>{$group_shop->name}</b>
|
{l s='You are configuring your store for group shop '}<b>{$group_shop->name}</b>
|
||||||
|
|||||||
@@ -1,3 +1,50 @@
|
|||||||
|
$(document).ready(function()
|
||||||
|
{
|
||||||
|
var hints = $('.translatable span.hint');
|
||||||
|
if (youEditFieldFor)
|
||||||
|
{
|
||||||
|
hints.html(hints.html() + '<br /><span class="red">' + youEditFieldFor + '</span>');
|
||||||
|
}
|
||||||
|
var html = "";
|
||||||
|
var nb_notifs = 0;
|
||||||
|
var wrapper_id = "";
|
||||||
|
var type = new Array();
|
||||||
|
|
||||||
|
$(".notifs").live("click", function(){
|
||||||
|
// Add class "open_notifs" to the clicked notification, remove the class from other notificationqs
|
||||||
|
$('.notifs').removeClass('open_notifs');
|
||||||
|
$(this).addClass('open_notifs');
|
||||||
|
|
||||||
|
wrapper_id = $(this).attr("id");
|
||||||
|
type = wrapper_id.split("s_notif")
|
||||||
|
$.post("ajax.php",
|
||||||
|
{
|
||||||
|
"updateElementEmployee" : "1", "updateElementEmployeeType" : type[0]
|
||||||
|
}, function(data) {
|
||||||
|
if(data)
|
||||||
|
{
|
||||||
|
if(!$("#" + wrapper_id + "_wrapper").is(":visible"))
|
||||||
|
{
|
||||||
|
$(".notifs_wrapper").hide();
|
||||||
|
$("#" + wrapper_id + "_number_wrapper").hide();
|
||||||
|
$("#" + wrapper_id + "_wrapper").show();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$("#" + wrapper_id + "_wrapper").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#main").click(function(){
|
||||||
|
$(".notifs_wrapper").hide();
|
||||||
|
$('.notifs').removeClass('open_notifs');
|
||||||
|
});
|
||||||
|
|
||||||
|
// call it once immediately, then use setTimeout if refresh is activated
|
||||||
|
getPush(autorefresh_notifications);
|
||||||
|
});
|
||||||
|
|
||||||
function getPush(refresh)
|
function getPush(refresh)
|
||||||
{
|
{
|
||||||
$.post("ajax.php",{"getNotifications" : "1"}, function(data) {
|
$.post("ajax.php",{"getNotifications" : "1"}, function(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user