Commit c1e25bdc authored by numahell's avatar numahell
Browse files

Same theme for basic page

Include template part site navigation with main nav and logo.
parent d582ee58
......@@ -2,17 +2,11 @@
max-width: 100%;
width: 100%;
margin: 0 auto;
border-top: 1px solid #ccc;
margin-top: rem-calc(60);
margin-top: rem-calc(30);
#footer {
@include grid-row();
padding: rem-calc(30) 0;
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
}
}
// Page header
// Intro
.intro {
@include grid-row();
.fp-intro {
background-color: white;
border: 2px dashed $gray-lightest;
border-radius: 10px;
@include breakpoint(small) {
padding: 20px 40px 40px;
}
}
}
#page {
@include grid-row();
margin-top: 3rem;
margin-top: 1rem;
background-color: white;
border: 2px dashed $gray-lightest;
border-radius: 10px;
@include breakpoint(small) {
padding: 20px 40px 40px;
}
.main-content {
@include breakpoint(small) {
......
......@@ -5,6 +5,9 @@ Template Name: Front
get_header(); ?>
<div id="page" role="main">
<?php get_template_part( 'template-parts/site-navigation' ); ?>
<?php do_action( 'foundationpress_before_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
......@@ -14,11 +17,6 @@ get_header(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header class="header">
<h1 class="hide">Les biens communs</h1>
<h2 class="hide">Une introduction à la notion de Communs</h2>
<img class="logo" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/logo_portail.png" alt="Le portail des communs">
</header>
<?php do_action( 'foundationpress_page_before_entry_content' ); ?>
<div class="entry-content">
<?php the_content(); ?>
......@@ -36,8 +34,9 @@ get_header(); ?>
</section>
<?php endwhile;?>
<?php do_action( 'foundationpress_after_content' ); ?>
<?php do_action( 'foundationpress_after_content' ); ?>
</div>
<?php get_footer();
......@@ -16,6 +16,8 @@
<div id="page" role="main">
<?php get_template_part( 'template-parts/site-navigation' ); ?>
<?php do_action( 'foundationpress_before_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class('main-content') ?> id="post-<?php the_ID(); ?>">
......
<?php
/**
* Template part for off canvas menu
*
* @package CommonsWP
* @since CommonsWP 1.0.0
*/
?>
<header class="header">
<h1 class="hide">Les biens communs
<small>Une introduction à la notion de Communs</small></h1>
<img class="logo" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/logo_portail.png" alt="Le portail des communs">
</header>
<nav id="site-navigation" class="main-navigation content-bar" role="navigation">
<div class="content-bar-right">
<?php foundationpress_content_bar_r(); ?>
<?php if ( ! get_theme_mod( 'wpt_mobile_menu_layout' ) || get_theme_mod( 'wpt_mobile_menu_layout' ) == 'contentbar' ) : ?>
<?php get_template_part( 'template-parts/mobile-content-bar' ); ?>
<?php endif; ?>
</div>
</nav>
Supports Markdown
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