Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions archives.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<article class="post">

<h1 class="title">Tous les articles</h1>

<div class="the-content">
<?php

$previous_year = $year = 0;
$previous_month = $month = 0;
$ul_open = false;

$myposts = get_posts('numberposts=-1&orderby=post_date&order=DESC');

?>

<?php foreach($myposts as $post) : ?>

<?php

setup_postdata($post);

$year = mysql2date('Y', $post->post_date);
$month = mysql2date('n', $post->post_date);
$day = mysql2date('j', $post->post_date);

?>

<?php if($year != $previous_year || $month != $previous_month) : ?>

<?php if($ul_open == true) : ?>
</ul>
<?php endif; ?>

<h2><?php the_time('F Y'); ?></h2>

<ul>

<?php $ul_open = true; ?>

<?php endif; ?>

<?php $previous_year = $year; $previous_month = $month; ?>

<li><span><?php the_time('j F'); ?> - </span> <span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span></li>

<?php endforeach; ?>
</ul>
</div>

</article>


<?php get_footer(); ?>
22 changes: 22 additions & 0 deletions custom-home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/*
Template Name: Custom home
*/
?>
<?php get_header(); ?>

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="post">
<h1 class="title">
<?php the_title() ?>
</h1>
<div class="the-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>

<?php get_footer(); ?>

36 changes: 24 additions & 12 deletions dev/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ License: GNU General Public License
@heading-font: "Arvo", Georgia, serif;

// Site name size
@site-text-size: 16px;
@site-text-size: 16;

// Body text size
@body-text-size: 18px;
@body-text-size: 18;

// Title text size
@title-text-size: 38px;
@title-text-size: 38;

// Site name color
@site-name-color: @grey;
Expand Down Expand Up @@ -130,19 +130,20 @@ h6 {
}

h1 {
.font-size(48px);
.font-size(48);
}

h2 {
.font-size(34px);
.font-size(34);
padding-bottom: 15px;
}

h3 {
.font-size(28px);
.font-size(28);
}

h4 {
.font-size(18px);
.font-size(18);
}

hr {
Expand Down Expand Up @@ -354,6 +355,8 @@ article {

.the-content {

color: @text-color;

a {
font-weight: 900;
text-decoration: none;
Expand All @@ -362,17 +365,16 @@ article {
p {
color: @text-color;
}

img {
width: 100%;
height: auto;
}


}// the-content

.meta {
.font-size(10px);
.font-size(10);
text-transform: uppercase;
letter-spacing: .9px;

Expand Down Expand Up @@ -469,7 +471,7 @@ h3#comments {
// Jetpack

.comment-meta {
font-size: (@body-text-size - 6);
font-size: (@body-text-size - 6px);
margin-bottom: 10px;
}

Expand Down Expand Up @@ -499,6 +501,16 @@ footer {

}// footer

/* custom social sharing buttons */
.share_top_text{font-weight: bold; margin:0 0 15px 0px; font-size: 1.3em; color:@grey;}
.social-button-container{margin:15px 0 15px;border-bottom:none;}
.SocialCustomMenu a, SocialCustomMenu a:visited{display:inline;padding:5px;color:white;text-decoration:none;font-size:0.95em;}
.scmTwitter{background-color:#7cd5fd;border:solid 1px #c1c1c1}
.scmFacebook{background-color:#45619d;border:solid 1px #c1c1c1}
.scmGoogleplus{background-color:#af291d;border:solid 1px #c1c1c1}
.scmPinterest{background-color:#cb2027;border:solid 1px #c1c1c1}

.subscribe { color: @grey; }

/* Misc & mixens
-------------------------------------------------------------- */
Expand Down Expand Up @@ -553,7 +565,7 @@ html[xmlns] .clearfix {
@rem-value: (@size / 10);
@px-value: @size;
@lineHeight: (@size * 1.48);
line-height: @lineHeight;
line-height: @lineHeight+0px;
font-size: ~"@{px-value}px";
font-size: ~"@{rem-value}rem";
}
Expand Down
25 changes: 25 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->

</div><!-- / container-->


<?php
/*-----------------------------------------------------------------------------------*/
/* Start Footer
/*-----------------------------------------------------------------------------------*/
?>

<footer class="site-footer" role="contentinfo">
<div class="site-info container">
<?php do_action( 'break_credits' ); ?>
<a href="http://wordpress.org/" title="A Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress</a>
<span class="sep"> and </span>
<a href="http://lessmade.com/themes/less" rel="theme">LESS</a> by <a href="http://jarederickson.com" rel="designer">Jared Erickson</a>
</div><!-- .site-info -->
</footer><!-- #colophon .site-footer -->

<?php wp_footer(); ?>

</body>
</html>
51 changes: 51 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php bloginfo('name'); ?> | <?php if( is_home() ) : echo bloginfo( 'description' ); endif; ?><?php wp_title( '', true ); ?></title>

<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>


<?php
/*-----------------------------------------------------------------------------------*/
/* Start header
/*-----------------------------------------------------------------------------------*/
?>

<header id="masthead" class="site-header" role="banner">
<div class="container">

<div class="gravatar">
<?php
// grab admin email and their photo
$admin_email = get_option('admin_email');
echo get_avatar( $admin_email, 100 );
?>
</div><!--/ author -->

<div id="brand">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> &mdash; <span><?php echo get_bloginfo( 'description' ); ?></span></h1>
</div><!-- /brand -->

<nav role="navigation" class="site-navigation main-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- .site-navigation .main-navigation -->

<div class="clear"></div>
</div><!--/container -->

</header><!-- #masthead .site-header -->

<div class="container">

<div id="primary">
<div id="content" role="main">

Loading