Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
7706af58
Commit
7706af58
authored
Sep 04, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update]Check if load ajax
parent
12c9ad23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
product.js
wp-content/themes/nap/assets/js/product.js
+2
-2
footer-shop.php
wp-content/themes/nap/footer-shop.php
+2
-2
header-shop.php
wp-content/themes/nap/header-shop.php
+2
-2
No files found.
wp-content/themes/nap/assets/js/product.js
View file @
7706af58
...
...
@@ -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'
);
});
...
...
wp-content/themes/nap/footer-shop.php
View file @
7706af58
<?php
$ext_ref
=
externe_referrer
();
if
(
$ext_ref
)
{
//
$ext_ref = externe_referrer();
if
(
!
(
isset
(
$_POST
[
'ajax'
]))
)
{
get_footer
();
}
else
{
//wp_footer();
...
...
wp-content/themes/nap/header-shop.php
View file @
7706af58
<?php
$ext_ref
=
externe_referrer
();
if
(
$ext_ref
)
{
//
$ext_ref = externe_referrer();
if
(
!
(
isset
(
$_POST
[
'ajax'
]))
)
{
get_header
();
}
else
{
//wp_head();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment