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
0b9fe7e6
Commit
0b9fe7e6
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]Add backlink to CMS Page
parent
8114799c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
main.js
wp-content/themes/nap/assets/js/main.js
+2
-0
download.php
wp-content/themes/nap/download.php
+5
-2
legacy.php
wp-content/themes/nap/legacy.php
+6
-3
phototheque.php
wp-content/themes/nap/phototheque.php
+5
-2
No files found.
wp-content/themes/nap/assets/js/main.js
View file @
0b9fe7e6
...
@@ -70,6 +70,7 @@ $(function(){
...
@@ -70,6 +70,7 @@ $(function(){
//load content page on left Panel
//load content page on left Panel
$
(
document
).
find
(
'.to-slide'
).
on
(
'click'
,
'a'
,
function
(
e
){
$
(
document
).
find
(
'.to-slide'
).
on
(
'click'
,
'a'
,
function
(
e
){
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
e
.
preventDefault
();
e
.
preventDefault
();
var
link
=
$
(
this
).
attr
(
"href"
);
var
link
=
$
(
this
).
attr
(
"href"
);
$
(
'.load-page'
).
parent
().
addClass
(
'active'
);
$
(
'.load-page'
).
parent
().
addClass
(
'active'
);
...
@@ -77,6 +78,7 @@ $(function(){
...
@@ -77,6 +78,7 @@ $(function(){
$
(
'.load-page'
).
load
(
link
,
function
(){
$
(
'.load-page'
).
load
(
link
,
function
(){
$
.
fn
.
loadPageContent
();
$
.
fn
.
loadPageContent
();
});
});
$
(
".c-hamburger"
).
trigger
(
"click"
);
});
});
var
div
=
$
(
'.nav-content'
);
var
div
=
$
(
'.nav-content'
);
$
(
'.footer-home-content'
).
on
(
'click'
,
'.home-down:not(.scrolled)'
,
function
(
e
){
$
(
'.footer-home-content'
).
on
(
'click'
,
'.home-down:not(.scrolled)'
,
function
(
e
){
...
...
wp-content/themes/nap/download.php
View file @
0b9fe7e6
...
@@ -8,6 +8,9 @@ if($ext_ref) {
...
@@ -8,6 +8,9 @@ if($ext_ref) {
get_header
();
get_header
();
}
}
$post_ID
=
260
;
$post_ID
=
260
;
if
(
!
$ext_ref
)
{
$class_back
=
"int-link"
;
}
?>
?>
<div
id=
"download"
class=
"clearfix container "
>
<div
id=
"download"
class=
"clearfix container "
>
...
@@ -16,8 +19,8 @@ $post_ID = 260;
...
@@ -16,8 +19,8 @@ $post_ID = 260;
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class =
"btn-wrapper row close-panel"
>
<div
class =
"btn-wrapper row close-panel
<?php
echo
$class_back
?>
"
>
<div
class=
"pink-btn circle-btn"
><
span
class =
"abs-center backlink"
>
Retour
</span
></div>
<div
class=
"pink-btn circle-btn"
><
a
href=
"
<?php
echo
esc_url
(
home_url
(
'/'
)
);
?>
"
><span
class =
"abs-center backlink"
>
Retour
</span></a
></div>
</div>
</div>
<nav
class =
"row"
>
<nav
class =
"row"
>
<h2
class =
"crete big-title"
>
Téléchargement
</h2>
<h2
class =
"crete big-title"
>
Téléchargement
</h2>
...
...
wp-content/themes/nap/legacy.php
View file @
0b9fe7e6
...
@@ -9,6 +9,9 @@ if($ext_ref) {
...
@@ -9,6 +9,9 @@ if($ext_ref) {
get_header
();
get_header
();
}
}
$current_page
=
''
;
$current_page
=
''
;
if
(
!
$ext_ref
)
{
$class_back
=
"int-link"
;
}
?>
?>
<div
id=
"legacy"
class=
"clearfix container "
>
<div
id=
"legacy"
class=
"clearfix container "
>
<div
class=
"phototheque-content"
>
<div
class=
"phototheque-content"
>
...
@@ -16,9 +19,9 @@ $current_page = '';
...
@@ -16,9 +19,9 @@ $current_page = '';
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class =
"btn-wrapper close-panel row
"
>
<div
class =
"btn-wrapper row close-panel
<?php
echo
$class_back
?>
"
>
<div
class=
"pink-btn circle-btn"
><
span
class =
"abs-center backlink"
>
Retour
</span
></div>
<div
class=
"pink-btn circle-btn"
><
a
href=
"
<?php
echo
esc_url
(
home_url
(
'/'
)
);
?>
"
><span
class =
"abs-center backlink"
>
Retour
</span></a
></div>
</div>
</div>
<nav
class =
"row"
>
<nav
class =
"row"
>
<h2
class =
"crete big-title"
>
Mentions légales
</h2>
<h2
class =
"crete big-title"
>
Mentions légales
</h2>
</nav>
</nav>
...
...
wp-content/themes/nap/phototheque.php
View file @
0b9fe7e6
...
@@ -8,6 +8,9 @@ if($ext_ref) {
...
@@ -8,6 +8,9 @@ if($ext_ref) {
get_header
();
get_header
();
}
}
$current_page
=
'phototheque'
;
$current_page
=
'phototheque'
;
if
(
!
$ext_ref
)
{
$class_back
=
"int-link"
;
}
?>
?>
<div
id=
"phototheque"
class=
"clearfix container "
>
<div
id=
"phototheque"
class=
"clearfix container "
>
<div
class=
"phototheque-content"
>
<div
class=
"phototheque-content"
>
...
@@ -15,8 +18,8 @@ $current_page = 'phototheque';
...
@@ -15,8 +18,8 @@ $current_page = 'phototheque';
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"nav-phototeque container gray-bg row fixed"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class =
"btn-wrapper row close-panel"
>
<div
class =
"btn-wrapper row close-panel
<?php
echo
$class_back
?>
"
>
<div
class=
"pink-btn circle-btn"
><
span
class =
"abs-center backlink"
>
Retour
</span
></div>
<div
class=
"pink-btn circle-btn"
><
a
href=
"
<?php
echo
esc_url
(
home_url
(
'/'
)
);
?>
"
><span
class =
"abs-center backlink"
>
Retour
</span></a
></div>
</div>
</div>
<nav
class =
"row"
>
<nav
class =
"row"
>
<h2
class =
"crete big-title"
>
Photothèque
</h2>
<h2
class =
"crete big-title"
>
Photothèque
</h2>
...
...
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