Commit 7706af58 authored by imac's avatar imac

[Update]Check if load ajax

parent 12c9ad23
...@@ -297,11 +297,11 @@ $(function(){ ...@@ -297,11 +297,11 @@ $(function(){
//localStorage['from-site'] = true; //localStorage['from-site'] = true;
$('head').append($('.header-shop')); $('head').append($('.header-shop'));
var toLink = $(this).data('link'); var toLink = $(this).data('link');
history.pushState(null, null, toLink);
// $.post(toLink, { fromSite: true}); // $.post(toLink, { fromSite: true});
//$.cookie("formSite", 1); //$.cookie("formSite", 1);
$('.load-page').parent().addClass('active'); $('.load-page').parent().addClass('active');
$('.load-page').load(toLink,function(){ $('.load-page').load(toLink,{'ajax' : 1}, function(){
history.pushState(null, null, toLink);
loadProductContent(); loadProductContent();
$('html').css('overflow','hidden'); $('html').css('overflow','hidden');
}); });
......
<?php <?php
$ext_ref = externe_referrer(); //$ext_ref = externe_referrer();
if($ext_ref) { if (!(isset($_POST['ajax']))) {
get_footer(); get_footer();
}else{ }else{
//wp_footer(); //wp_footer();
......
<?php <?php
$ext_ref = externe_referrer(); //$ext_ref = externe_referrer();
if($ext_ref) { if (!(isset($_POST['ajax']))) {
get_header(); get_header();
}else{ }else{
//wp_head(); //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