Commit 0b9fe7e6 authored by imac's avatar imac

[Bugfix]Add backlink to CMS Page

parent 8114799c
...@@ -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){
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
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