Commit 2fc92e00 authored by imac's avatar imac

[Update]Redmine #649 : Structural change + fixed menu

parent 76e735c6
...@@ -954,9 +954,7 @@ footer{ ...@@ -954,9 +954,7 @@ footer{
/* ========================================================================== /* ==========================================================================
VII/ Pages...............ALL pages VII/ Pages...............ALL pages
========================================================================== */ ========================================================================== */
/* --------------*/ /* ---------->>> HOME <<<-----------*/ /* --------------*/ /* --------------*/ /* ---------->>> HOME <<<-----------*/ /* --------------*/
#home { #home {
position: relative; position: relative;
height: 100%; height: 100%;
...@@ -970,6 +968,10 @@ VII/ Pages...............ALL pages ...@@ -970,6 +968,10 @@ VII/ Pages...............ALL pages
.img-wrapper img{ .img-wrapper img{
display: none; display: none;
} }
#home .img-wrapper.fixed{
position: fixed;
left: 0;
}
.news-btn{ .news-btn{
position: absolute; position: absolute;
top: 50px; top: 50px;
...@@ -1782,7 +1784,7 @@ label.chevron.bottom::first-letter { ...@@ -1782,7 +1784,7 @@ label.chevron.bottom::first-letter {
} }
.container-bg{ .container-bg{
position: fixed; position: fixed;
z-index: 99; z-index: 9999999;
background-size: cover; background-size: cover;
opacity: 0; opacity: 0;
} }
...@@ -2169,6 +2171,9 @@ label.chevron.bottom::first-letter { ...@@ -2169,6 +2171,9 @@ label.chevron.bottom::first-letter {
padding: 0px 10px 0px 15px; padding: 0px 10px 0px 15px;
padding-bottom: 100px; padding-bottom: 100px;
} }
.right-container .contact-wrapper .right-panel{
padding: 0px;
}
.panel section > h2{ .panel section > h2{
padding-top: 80px; padding-top: 80px;
} }
...@@ -2295,10 +2300,10 @@ label.chevron.bottom::first-letter { ...@@ -2295,10 +2300,10 @@ label.chevron.bottom::first-letter {
padding-top: 30px; padding-top: 30px;
} }
/* --------------*/ /* ---------->>> Uniqpaper <<<-----------*/ /* --------------*/ /* --------------*/ /* ---------->>> Uniqpaper <<<-----------*/ /* --------------*/
#uniqpaper .cover-wrapper{ #cat-151 .cover-wrapper{
top: 0; top: 0;
} }
#uniqpaper .right-container .left-panel { #cat-151 .right-container .left-panel {
width: 47.2%; width: 47.2%;
} }
.floated-bloc{ .floated-bloc{
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
padding: 65px 20px; padding: 65px 20px;
} }
/*Uniqpaper*/ /*Uniqpaper*/
#uniqpaper .right-container .left-panel { #cat-151 .right-container .left-panel {
width: 34%; width: 34%;
} }
.floated-bloc{ .floated-bloc{
...@@ -219,6 +219,9 @@ ...@@ -219,6 +219,9 @@
.contact-form .footer{ .contact-form .footer{
padding: 30px 22px 32px; padding: 30px 22px 32px;
} }
.right-container .contact-wrapper .right-panel{
padding: 0px;
}
/* Catalogue */ /* Catalogue */
.right-container .left-panel{ .right-container .left-panel{
width: 37%; width: 37%;
...@@ -288,6 +291,9 @@ ...@@ -288,6 +291,9 @@
.right-panel-wrapper{ .right-panel-wrapper{
top: 0px !important; top: 0px !important;
} }
.container-bg{
height: auto !important;
}
} }
@media screen and (max-width: 860px) { @media screen and (max-width: 860px) {
/* general */ /* general */
...@@ -317,6 +323,12 @@ ...@@ -317,6 +323,12 @@
.rounded{ .rounded{
padding: 8px 22px 11px; padding: 8px 22px 11px;
} }
.mobile-nav{
display: none;
}
#catalogue .mobile-nav{
display: block;
}
/* Helper */ /* Helper */
.close-btn{ .close-btn{
top: 15px; top: 15px;
...@@ -388,12 +400,12 @@ ...@@ -388,12 +400,12 @@
letter-spacing: 0px; letter-spacing: 0px;
} }
/*Uniqpaper*/ /*Uniqpaper*/
#uniqpaper .right-container .left-panel { #cat-151 .right-container .left-panel {
position: relative; position: relative;
width: 100%; width: 100%;
left: initial !important; left: initial !important;
} }
#uniqpaper .cover-wrapper{ #cat-151 .cover-wrapper{
display: block; display: block;
} }
.floated-bloc{ .floated-bloc{
......
This diff is collapsed.
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('p').each(function() { jQuery('p').each(function() {
var $this = jQuery(this); var $this = jQuery(this);
if($this.html().replace(/\s|&nbsp;/g, '').length == 0) { if($this.html().replace(/\s|&nbsp;/g, '').length == 0) {
$this.remove(); $this.remove();
} }
}); });
jQuery(document).on('click', ".download_file", function() { jQuery(document).on('click', ".download_file", function() {
var id; var id;
var download_link = jQuery('.download_file_link').attr('href'); var download_link = jQuery('.download_file_link').attr('href');
...@@ -17,9 +17,9 @@ jQuery(document).ready(function() { ...@@ -17,9 +17,9 @@ jQuery(document).ready(function() {
else else
id = variation_id; id = variation_id;
var link = download_link + 'variation_id=' + id; var link = download_link + 'variation_id=' + id;
window.open(link, '_blank'); window.open(link, '_blank');
return false; return false;
}); });
...@@ -29,7 +29,7 @@ jQuery(document).ready(function() { ...@@ -29,7 +29,7 @@ jQuery(document).ready(function() {
jQuery('.list-animation section').show(); jQuery('.list-animation section').show();
jQuery('article').removeClass('selected'); jQuery('article').removeClass('selected');
jQuery('article').removeClass('hidden'); jQuery('article').removeClass('hidden');
var tabcolor = []; var tabcolor = [];
i = 0; i = 0;
...@@ -54,7 +54,7 @@ jQuery(document).ready(function() { ...@@ -54,7 +54,7 @@ jQuery(document).ready(function() {
jQuery("#pa_univers .selected").each(function() { jQuery("#pa_univers .selected").each(function() {
tabunivers[i++] = jQuery(this).text(); tabunivers[i++] = jQuery(this).text();
}); });
var sku = jQuery("#sku-search").val(); var sku = jQuery("#sku-search").val();
var selected_colors = tabcolor.join(','); var selected_colors = tabcolor.join(',');
...@@ -74,9 +74,9 @@ jQuery(document).ready(function() { ...@@ -74,9 +74,9 @@ jQuery(document).ready(function() {
jQuery(this).hide(); jQuery(this).hide();
} }
}); });
}); });
jQuery(window).on('load',function() { jQuery(window).on('load',function() {
jQuery('.filter-bloc').removeClass('active'); jQuery('.filter-bloc').removeClass('active');
jQuery('.filter-bloc ').each(function() { jQuery('.filter-bloc ').each(function() {
...@@ -99,8 +99,8 @@ jQuery(document).ready(function() { ...@@ -99,8 +99,8 @@ jQuery(document).ready(function() {
jQuery(this).hide(); jQuery(this).hide();
} }
}); });
if(result_found == false) if(result_found == false)
{jQuery('.search_notfound').text(' Aucun produit ne correspond à votre recherche'); {jQuery('.search_notfound').text(' Aucun produit ne correspond à votre recherche');
console.log(result_found); console.log(result_found);
...@@ -110,13 +110,13 @@ jQuery(document).ready(function() { ...@@ -110,13 +110,13 @@ jQuery(document).ready(function() {
jQuery(window).bind("popstate", function(e) { /*jQuery(window).bind("popstate", function(e) {
var state = e.originalEvent.state; var state = e.originalEvent.state;
if ( state === null ) { if ( state === null ) {
var back_link = jQuery('.close-panel .circle-btn a').attr('href'); var back_link = jQuery('.close-panel .circle-btn a').attr('href');
window.location.href = back_link; window.location.href = back_link;
} }
}); });*/
}); });
......
This diff is collapsed.
</div> <!-- END right-container -->
<?php
if (!(isset($_POST['ajax']))) {
get_footer();
} ?>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<li class="<?php if( !is_user_logged_in() ) echo " login-user"; else echo " to-slide";?>"><?php if ( is_user_logged_in() ) {?><a href="<?php echo get_permalink(3364);?>">photothèque</a><?php } else echo "<a>photothèque</a>"; ?></li> <li class="<?php if( !is_user_logged_in() ) echo " login-user"; else echo " to-slide";?>"><?php if ( is_user_logged_in() ) {?><a href="<?php echo get_permalink(3364);?>">photothèque</a><?php } else echo "<a>photothèque</a>"; ?></li>
<li class="to-slide"><a href="<?php echo get_permalink(171)?>">mentions légales</a></li> <li class="to-slide"><a href="<?php echo get_permalink(171)?>">mentions légales</a></li>
</ul> </ul>
</div> </div>
</div> </div>
</footer> </footer>
<div class="popup-container"> <div class="popup-container">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<input type="password" name="pwd" id="pwd" placeholder = "Mot de passe" /> <input type="password" name="pwd" id="pwd" placeholder = "Mot de passe" />
<button class="btn rounded white-btn" type="submit" class="nl-btn">Se connecter</button> <button class="btn rounded white-btn" type="submit" class="nl-btn">Se connecter</button>
</form>--> </form>-->
<?php <?php
$popoup = array( $popoup = array(
'echo' => true, 'echo' => true,
// Default 'redirect' value takes the user back to the request URI. // Default 'redirect' value takes the user back to the request URI.
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="loading-container-subpage"> <div id="loading-container-subpage" class = "loading-container-subpage">
<div class="loading-wrapper"> <div class="loading-wrapper">
<div class="loading"> <div class="loading">
<div id="loading-center-absolute"> <div id="loading-center-absolute">
......
<?php <?php
get_header(); get_header();
get_sidebar();
$url = nap_attachment_image($ID); $url = nap_attachment_image($ID);
?> ?>
<div id="home"> <div id="home">
<div class="container-bg abs-full hidden"></div>
<?php get_sidebar(); ?>
<div data-defaultimg ='<?php echo $url ;?>' class="transition img-wrapper" style ="background-image: url('<?php echo $url ;?>')"></div> <div data-defaultimg ='<?php echo $url ;?>' class="transition img-wrapper" style ="background-image: url('<?php echo $url ;?>')"></div>
<div class="header mobile-nav display--only-mobile blue-bg fixed">
<div class="nav-wrapper blue-bg">
<ul></ul>
</div>
</div>
<div class="right-container">
<div class="news-btn circle-btn add-icon font-small animated zoomIn"><span>Nouveautés</span></div> <div class="news-btn circle-btn add-icon font-small animated zoomIn"><span>Nouveautés</span></div>
<aside class="news-wrapper container "> <aside class="news-wrapper container ">
<div class="news-header crete"> <div class="news-header crete">
...@@ -17,34 +30,34 @@ $url = nap_attachment_image($ID); ...@@ -17,34 +30,34 @@ $url = nap_attachment_image($ID);
while ( has_sub_field('nap_nouveautes',135) ) : while ( has_sub_field('nap_nouveautes',135) ) :
?> ?>
<article class = "row <?php the_sub_field('nv_taille');?>"> <article class = "row <?php the_sub_field('nv_taille');?>">
<a href="<?php echo the_sub_field('nv_lien');?>"> <a href="<?php echo the_sub_field('nv_lien');?>">
<figure> <figure>
<img src="<?php the_sub_field('nv_image');?>" alt="Nouveautés"> <img src="<?php the_sub_field('nv_image');?>" alt="Nouveautés">
<figcaption> <figcaption>
<?php htmlspecialchars(the_sub_field('nv_titre'));?> <?php htmlspecialchars(the_sub_field('nv_titre'));?>
</figcaption> </figcaption>
</figure> </figure>
</a> </a>
</article> </article>
<?php <?php
endwhile; endwhile;
endif; endif;
?> ?>
</div>
</div> </aside>
</aside> <!--Menu for mobile-->
<!--Menu for mobile--> <div class="home-footer-nav display--only-mobile">
<div class="home-footer-nav display--only-mobile"> <div class="header">
<div class="header"> <div class="nav-wrapper footer-home-content">
<div class="nav-wrapper footer-home-content"> <div class="home-down-wrapper blue-bg"></div>
<div class="home-down-wrapper blue-bg"></div> <span class = "home-down chevron bottom hidden-elem pink-btn abs-center"></span>
<span class = "home-down chevron bottom hidden-elem pink-btn abs-center"></span>
</div>
</div> </div>
</div> </div>
</div><!--END home --> </div>
<?php </div><!--END home -->
</div>
<?php
get_footer(); get_footer();
...@@ -310,7 +310,7 @@ function nap_menu() { ...@@ -310,7 +310,7 @@ function nap_menu() {
} else { } else {
$nappe_sets = false; $nappe_sets = false;
} }
$menu.= '<li class ="parent-cat to-slide" data-page = "' . $category_id . '" data-img = "' . nap_category_image($category_id) . '"><a href="' . get_term_link($cat->slug, 'product_cat') . '">' . $cat->name . '</a>'; $menu.= '<li class ="parent-cat to-slide-cat" data-page = "' . $category_id . '" data-img = "' . nap_category_image($category_id) . '"><a href="' . get_term_link($cat->slug, 'product_cat') . '">' . $cat->name . '</a>';
$args2 = array( $args2 = array(
'taxonomy' => $taxonomy, 'taxonomy' => $taxonomy,
......
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
if (!(isset($_POST['ajax']))) {
get_header();
}
$product;
$cate = get_queried_object();
$extClass = "";
if (is_product_category()){
$cateID = $cate->term_id;
$id = "catalogue";
}else{
$cateID = get_the_ID();
$id = 'cat-'.$cateID;
}
if ($cateID == 154){ //page stories
$extClass = "full-slides right";
}
?>
<div class="container clearfix" id="<?php echo $id ?>" data-page = "<?php echo $cateID; ?>">
<?php if (!(isset($_POST['ajax']))) { ?>
<?php if ($cateID == 154){ //page stories ?>
<div class="container-bg abs-full" style="background-image: url('<?php echo nap_attachment_image(154);?>')"></div>
<?php } else { ?>
<div class="container-bg abs-full"></div>
<?php } ?>
<?php get_sidebar(); } ?>
<?php if (is_product_category()){ ?>
<div class="header mobile-nav display--only-mobile blue-bg fixed">
<div class="nav-wrapper blue-bg">
<ul></ul>
</div>
</div>
<?php } // is_product_category ?>
<div class="right-container <?php echo $extClass ?>">
...@@ -32,4 +32,3 @@ ...@@ -32,4 +32,3 @@
</div> </div>
</div> </div>
<div class="main"> <div class="main">
<div class="nav-content font-big"> <div class="nav-content font-big">
<?php <?php
$arrow = 'arrow-white nav-page'; $arrow = 'arrow-white nav-page';
if (isset($current_page) and $current_page == 'phototheque') { if (isset($current_page) and $current_page == 'phototheque') {
$arrow = 'arrow-blue phototheque'; $arrow = 'arrow-blue phototheque';
} }
?> ?>
<ul class = "main-list-nav <?php echo $arrow ?>">
<ul class = "main-list-nav <?php echo $arrow ?>"> <?php echo nap_menu(); ?>
<li class="to-slide-cat" data-page = "151" data-img = "<?php echo nap_attachment_image(151);?>"><a href="<?php echo get_permalink(151);?>">Personnalisation</a></li>
<?php echo nap_menu(); ?> </ul>
<?php if (!(isset($current_page) and $current_page == 'phototheque')) { ?>
<li class="to-slide" data-page = "uniqpaper" data-img = "<?php echo nap_attachment_image(151);?>"><a href="<?php echo get_permalink(151);?>">Personnalisation</a></li> <ul class= "font-medium arrow-pink pink-list">
<li class="to-slide-cat" data-page = "154" data-img = "<?php echo nap_attachment_image(154);?>"><a href="<?php echo get_permalink(154);?>">Stories</a></li>
<li class="to-slide-cat" data-page = "157" data-img = "<?php echo nap_attachment_image(157);?>" ><a href="<?php echo get_permalink(157);?>">Contact</a></li>
</ul> </ul>
<?php if (!(isset($current_page) and $current_page == 'phototheque')) { ?> <?php } ?>
<ul class= "font-medium arrow-pink pink-list">
<li class="to-slide" data-page = "stories" data-img = "<?php echo nap_attachment_image(154);?>"><a href="<?php echo get_permalink(154);?>">Stories</a></li>
<li class="to-slide" data-page = "contact" data-img = "<?php echo nap_attachment_image(157);?>" ><a href="<?php echo get_permalink(157);?>">Contact</a></li>
</ul>
<?php } ?>
</div> </div>
<?php <?php
/** /**
* Template Name: Stories * Template Name: Stories
* *
*/ */
get_header(); $post_ID = get_the_ID();
if (!(isset($_POST['ajax']))) {
get_template_part( 'header', 'page-content' );
}
?> ?>
<div class="container clearfix" data-page = "stories"> <div class="hidden data-elem" data-postid ="cat-<?php echo $post_ID ?>" data-page = "<?php echo $post_ID ?>" data-class="full-slides right"></div>
<div class="container-bg abs-full" style="background-image: url('<?php echo nap_attachment_image(154);?>')"></div> <div id="fullpage">
<?php get_sidebar(); ?> <span class = "moveDown chevron bottom hidden-elem"></span>
<div class="full-slides right-container right"> <?php
<div id="fullpage"> if (get_field('stories', 154)):
<span class = "moveDown chevron bottom hidden-elem"></span> while (has_sub_field('stories', 154)) :
<?php ?>
if (get_field('stories', 154)): <div class="section " style = "background-image:url('<?php the_sub_field('st_image'); ?>')">
<div class="bloc">
while (has_sub_field('stories', 154)) : <div class="header-bloc">
?> <span>01</span>
<div class="section " style = "background-image:url('<?php the_sub_field('st_image'); ?>')"> <h2><?php the_sub_field('st_titre'); ?></h2>
<div class="bloc"> </div>
<div class="header-bloc"> <div class="desc-content">
<span>01</span> <h3><?php the_sub_field('st_citation'); ?></h3>
<h2><?php the_sub_field('st_titre'); ?></h2> <?php htmlspecialchars(the_sub_field('st_texte')); ?>
</div> </div>
<div class="desc-content">
<h3><?php the_sub_field('st_citation'); ?></h3>
<?php htmlspecialchars(the_sub_field('st_texte')); ?>
</div>
</div>
</div>
<?php
endwhile;
endif;
?>
</div> </div>
</div> </div>
<?php
endwhile;
endif;
?>
</div> </div>
<?php <?php
get_footer(); if (!(isset($_POST['ajax']))) {
get_template_part( 'footer', 'page-content' );
}
?>
<?php <?php
/** /**
* Template Name: Personnalisation * Template Name: Personnalisation
* *
*/ */
get_header(); ?> $post_ID = get_the_ID();
<div class="container clearfix" id="uniqpaper" data-page = "uniqpaper"> if (!(isset($_POST['ajax']))) {
<div class="container-bg abs-full"></div> get_template_part( 'header', 'page-content' );
<?php get_sidebar(); ?> }
<div class="right-container"> ?>
<div class="left-panel fixed-full position--after-menu "> <div class="hidden data-elem" data-postid ="cat-<?php echo $post_ID ?>" data-page = "<?php echo $post_ID ?>"></div>
<div class="cover-wrapper abs-full transition" style = "background-image: url('<?php echo get_field('pers_image',151)?>')"></div> <div class="left-panel fixed-full position--after-menu ">
<div class="abs floated-bloc"> <div class="cover-wrapper abs-full transition" style = "background-image: url('<?php echo get_field('pers_image',151)?>')"></div>
<h2><?php echo get_field('pers_titre',151)?></h2> <div class="abs floated-bloc">
<div class="text-content"><?php echo get_field('pers_texte',151)?></div> <h2><?php echo get_field('pers_titre',151)?></h2>
</div> <div class="text-content"><?php echo get_field('pers_texte',151)?></div>
</div>
</div> </div>
<div class="right-panel right"> </div>
<div class="form-wrapper clearfix"> <div class="right-panel right">
<!--<form action="#" method="POST"> <div class="form-wrapper clearfix">
<h2>Information sur le produit</h2> <?php echo do_shortcode( '[contact-form-7 id="663" title="Personnalisation form"]' ); ?>
<textarea name = "description" placeholder="Describe yourself here..."> </textarea>
<h2>Vos coordonnées</h2>
<div class="clearfix">
<div class="row left half-col">
<input placeholder = "Nom" type="text" name="name" id="name" value="" />
<input placeholder = "Prénom" type="text" name="fname" id="fname" value="" />
<input placeholder = "Société" type="text" name="soc" id="soc" value="" />
</div>
<div class="row right half-col">
<input placeholder = "Mail" type="text" name="mail" id="mail" value="" />
<input placeholder = "Téléphone" type="text" name="phone" id="phone" value="" />
</div>
</div>
<div class="center">
<input type = "submit" class="btn pink-btn rounded" value = 'Envoyer'>
</div>
</form>-->
<?php echo do_shortcode( '[contact-form-7 id="663" title="Personnalisation form"]' ); ?>
</div>
</div> </div>
</div> </div>
<?php get_footer(); <?php
\ No newline at end of file if (!(isset($_POST['ajax']))) {
get_template_part( 'footer', 'page-content' );
}
?>
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