Commit 7706af58 authored by imac's avatar imac

[Update]Check if load ajax

parent 12c9ad23
......@@ -297,11 +297,11 @@ $(function(){
//localStorage['from-site'] = true;
$('head').append($('.header-shop'));
var toLink = $(this).data('link');
history.pushState(null, null, toLink);
// $.post(toLink, { fromSite: true});
//$.cookie("formSite", 1);
$('.load-page').parent().addClass('active');
$('.load-page').load(toLink,function(){
$('.load-page').load(toLink,{'ajax' : 1}, function(){
history.pushState(null, null, toLink);
loadProductContent();
$('html').css('overflow','hidden');
});
......
<?php
$ext_ref = externe_referrer();
if($ext_ref) {
//$ext_ref = externe_referrer();
if (!(isset($_POST['ajax']))) {
get_footer();
}else{
//wp_footer();
......
<?php
$ext_ref = externe_referrer();
if($ext_ref) {
//$ext_ref = externe_referrer();
if (!(isset($_POST['ajax']))) {
get_header();
}else{
//wp_head();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment