Commit a1ddb1e7 authored by John Punzalan's avatar John Punzalan

Add homepage Some & Ori

parent fe2435d9
......@@ -244,4 +244,15 @@ function bones_fonts() {
add_action('wp_enqueue_scripts', 'bones_fonts');
// Ajoute le CSS et le JavaScript pour utiliser Bootstrap
function enqueue_bootstrap() {
wp_enqueue_style('bootstrap-css', get_stylesheet_directory_uri() . '/library/bootstrap/css/bootstrap.min.css' );
wp_enqueue_style('someori-css', get_stylesheet_directory_uri() . '/library/css/style.css' );
// Ces deux lignes ne sont utiles que si vous utilisez les fonctionnalites JavaScript
wp_enqueue_script('jquery');
wp_enqueue_script('bootstrap-js', get_stylesheet_directory_uri() . '/library/bootstrap/js/bootstrap.min.js', 'jquery' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_bootstrap' );
/* DON'T DELETE THIS CLOSING TAG */ ?>
......@@ -44,34 +44,4 @@
<div id="container">
<header class="header" role="banner" itemscope itemtype="http://schema.org/WPHeader">
<div id="inner-header" class="wrap cf">
<?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
<p id="logo" class="h1" itemscope itemtype="http://schema.org/Organization"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
<?php // if you'd like to use the site description you can un-comment it below ?>
<?php // bloginfo('description'); ?>
<nav role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu(array(
'container' => false, // remove nav container
'container_class' => 'menu cf', // class of container (should you choose to use it)
'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name
'menu_class' => 'nav top-nav cf', // adding custom nav class
'theme_location' => 'main-nav', // where it's located in the theme
'before' => '', // before the menu
'after' => '', // after the menu
'link_before' => '', // before each link
'link_after' => '', // after each link
'depth' => 0, // limit the depth of the nav
'fallback_cb' => '' // fallback function (if there is one)
)); ?>
</nav>
</div>
</header>
......@@ -128,7 +128,7 @@ function bones_scripts_and_styles() {
wp_register_script( 'bones-modernizr', get_stylesheet_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false );
// register main stylesheet
wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/style.css', array(), '', 'all' );
wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/someori.css', array(), '', 'all' );
// ie-only style sheet
wp_register_style( 'bones-ie-only', get_stylesheet_directory_uri() . '/library/css/ie.css', array(), '' );
......
.span6.full {
margin: 0;
width: 50%;
}
#content {
margin-top: 0 !important;
}
footer {
display: none !important;
}
.header {
position: fixed;
padding: 15px;
background: none;
color: #0e0e0e;
top: 50px;
}
.full-screen-height {
height: 100vh;
}
.vertical-center {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.exposition-block > div img {
width: 65%;
}
#logo a {
color: #0e0e0e;
}
.span6.full {
margin: 0;
width: 50%;
}
#content {
margin-top: 0 !important;
}
footer {
display: none !important;
}
.header {
position: fixed;
padding: 15px;
background: none;
color: #0e0e0e;
top: 50px;
}
.full-screen-height {
height: 100vh;
}
.vertical-center {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.exposition-block {
> div {
img {
width: 65%;
}
}
}
#logo a {
color: #0e0e0e;
}
\ No newline at end of file
<?php
/*
* Template Name: Home Template
*
*/
?>
<?php
$left_image = get_field('image_left_block');
?>
<?php get_header(); // Header ?>
<div id="content">
<div id="inner-content">
<main id="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<section class="row-fluid">
<!-- Image Left Block -->
<div class="span6 full" style="background-image: url(<?= esc_url(get_field('image_left_block')); ?>); height: calc(100vh);"></div>
<div class="span6 full full-screen-height exposition-block">
<?= get_template_part('template', 'menu'); ?>
<div class="vertical-center text-center">
<img src="<?= esc_url(get_field('exposition_logo')); ?>" />
</div>
</div>
</section>
</main>
</div>
</div>
<?php get_footer(); // Footer ?>
\ No newline at end of file
<header class="header" role="banner" itemscope itemtype="http://schema.org/WPHeader">
<div id="inner-header" class="wrap cf">
<?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
<p id="logo" class="h1" itemscope itemtype="http://schema.org/Organization"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
<?php // if you'd like to use the site description you can un-comment it below ?>
<?php // bloginfo('description'); ?>
<nav role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu(array(
'container' => false, // remove nav container
'container_class' => 'menu cf', // class of container (should you choose to use it)
'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name
'menu_class' => 'nav top-nav cf', // adding custom nav class
'theme_location' => 'main-nav', // where it's located in the theme
'before' => '', // before the menu
'after' => '', // after the menu
'link_before' => '', // before each link
'link_after' => '', // after each link
'depth' => 0, // limit the depth of the nav
'fallback_cb' => '' // fallback function (if there is one)
)); ?>
</nav>
</div>
</header>
\ No newline at end of file
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