Commit 10038f1e authored by agnez's avatar agnez

affichage news wip

parent 9f69191e
......@@ -160,7 +160,11 @@ h6, .uk-h6 {
font-size: 40px;
}
}
.postdate{
font-size: 12px;
color: @global-success-background;
padding: 1em 0;
}
/* gasap beans parent overwrites */
......@@ -271,7 +275,7 @@ main .uk-container{
#snippet_avantages, /*p12*/
#snippet_avantages_prod {
background: url(images/bg_avantages.png) center bottom no-repeat @bleu-ciel;
padding-bottom: 100px;
padding-bottom: 135px;
padding-top: 30px;
background-size:100% auto;
.uk-grid > div{
......@@ -281,8 +285,7 @@ main .uk-container{
background: url(images/puce_plus.png) left center no-repeat transparent;
min-height: 30px;
padding-left: 35px;
margin-left: -35px;
margin-bottom: -15px;
margin:15px 0 -15px -35px;
text-align: left;
}
}
......@@ -303,6 +306,9 @@ main .uk-container{
> *{
padding-left: 0;
}
img{
padding-bottom: 1em;
}
}
}
#snippet_reseau_pourquoi {
......@@ -568,7 +574,7 @@ main .uk-container{
#nl_form{
background-color: @global-muted-color;
border: 1px solid white;
margin-top: 1em;
margin-top: 1.5em;
input{
display: inline;
background-color: @global-muted-color;
......@@ -591,6 +597,9 @@ main .uk-container{
display: inline-block;
width: auto;
padding-right: 1em;
&.current-menu-item a{
color:white;
}
}
}
}
......
......@@ -45,14 +45,7 @@
</div>
<div class="uk-width-1 uk-width-medium-1-3">
<h4><?php esc_html_e( 'Navigation', 'beans_gasap' ) ?></h4>
<?php wp_nav_menu();
//TODO
wp_nav_menu( array(
'menu' => 2,
'menu_class' => 'menu',
'items_wrap' => '<ul><li id="home-item"><a href="/">'. __( 'Accueil', 'beans_gasap' ).'</a></li></ul>'
) );
?>
<?php wp_nav_menu(); ?>
</div>
</div>
</footer>
......
......@@ -42,7 +42,7 @@
<!-- Results wrapper -->
<div class="gmw-posts-wrapper">
<h2><?php esc_html_e( 'Résultat de recherche', 'beans_gasap' ); ?></h2>
<!-- <h2><?php //esc_html_e( 'Résultat de recherche', 'beans_gasap' ); ?></h2>-->
<div data-uk-grid>
<!-- this is where wp_query loop begins -->
<?php while ( $gmw_query->have_posts() ) : $gmw_query->the_post(); ?>
......@@ -59,8 +59,6 @@
<div class="wppl-title-holder">
<h3 class="uk-panel-title">
<a href="#post_<?php echo $post->ID; ?>" data-uk-modal><?php the_title(); ?></a>
<!--<a href="<?php echo the_permalink(); ?>"><?php echo $post->post_count; ?>) <?php the_title(); ?></a>
<span class="radius-dis">(<?php gmw_distance_to_location( $post, $gmw ); ?>)</span>-->
</h3>
<!-- This is an anchor toggling the modal -->
......
......@@ -12,16 +12,20 @@ function gasap_latest_news() {
));
while ( $latest_news->have_posts() ) : $latest_news->the_post();
$do_not_duplicate[] = get_the_ID();?>
<div>
<figure class="uk-overlay"><?php
if ( has_post_thumbnail() ) { the_post_thumbnail( 'diaporama', array( 'alt' => '-' ) ); }
else { echo '<img src="' . get_stylesheet_directory_uri() . '/assets/img/default_news_thumbnail.png" width="1200" height="370" alt="-">'; }?>
<div><?php
if ( has_post_thumbnail() ) { ?>
<figure class="uk-overlay"><?php
the_post_thumbnail( 'diaporama', array( 'alt' => '-' ) ); ?>
<div class="uk-overlay-panel uk-overlay-background uk-text-center">
<h3 class="uk-article-title"><?php the_title(); ?></h3>
</div>
<a class="uk-position-cover" href="<?php echo get_the_permalink(); ?>"></a>
</figure>
<div class="largeur1">
</figure><?php
} else{?>
<h1 class="uk-article-title"><?php the_title(); ?></h1><?php
} ?>
<div class="postdate"><?php esc_html_e( 'Publié le ', 'beans_gasap' ); echo date_i18n( get_option( 'date_format' )); ?></div>
<div class="largeur1">
<div><?php the_content(); ?></div>
<?php edit_post_link( esc_html__( 'Edit news', 'beans_gasap' ), '<span class="edit-link">', '</span>' ); ?>
</div>
......@@ -50,6 +54,7 @@ $loop2 = new WP_Query( array(
else { echo '<img src="' . get_stylesheet_directory_uri() . '/assets/img/default_news_thumbnail.png" width="230" height="210" alt="-">'; }?>
<a class="uk-position-cover" href="<?php echo get_the_permalink(); ?>"></a>
</figure>
<div class="postdate"><?php esc_html_e( 'Publié le ', 'beans_gasap' ); echo date_i18n( get_option( 'date_format' )); ?></div>
<h2 class="textegauche"><?php the_title(); ?></h2>
<a class="uk-button uk-button-success" href="<?php echo get_the_permalink(); ?>"><?php esc_html_e( 'Discover', 'beans_gasap' ); ?></a>
</div>
......@@ -66,7 +71,9 @@ beans_remove_action( 'beans_loop_template' );
add_action( 'beans_content_after_markup', 'gasap_bottom' );
function gasap_bottom() {
include (get_stylesheet_directory() . '/assets/template_parts/event_calendar.php');
include (get_stylesheet_directory() . '/assets/template_parts/news_slider.php');
//include (get_stylesheet_directory() . '/assets/template_parts/latest_news.php');
//include (get_stylesheet_directory() . '/assets/template_parts/event_calendar.php');
include (get_stylesheet_directory() . '/assets/template_parts/footer.php');
}
......
......@@ -18,5 +18,5 @@ function add_after_gasapsingle() {
include (get_stylesheet_directory() . '/assets/template_parts/footer.php');
}
// Load the document which is always needed at the bottom of template files.
beans_load_document();
\ No newline at end of file
......@@ -9,11 +9,37 @@
* @link http://www.getbeans.io
*/
beans_add_attribute( 'beans_post_body', 'class', 'largeur1' );
beans_remove_action( 'beans_post_image' );
beans_remove_action( 'beans_post_title' );
//beans_remove_action( 'beans_post_meta' );
//beans_remove_action( 'beans_post_header' );
add_action( 'beans_post_before_markup', 'titre_avec_ou_sans_image' );
function titre_avec_ou_sans_image($content) {
global $post;
if ( has_post_thumbnail() ) { ?>
<figure class="uk-overlay"><?php
the_post_thumbnail( 'diaporama', array( 'alt' => '-' ) ); ?>
<div class="uk-overlay-panel uk-overlay-background uk-text-center">
<h3 class="uk-article-title"><?php the_title(); ?></h3>
</div>
<a class="uk-position-cover" href="<?php echo get_the_permalink(); ?>"></a>
</figure><?php
} else{?>
<h1 class="uk-article-title"><?php the_title(); ?></h1><?php
} ?>
<div class="postdate"><?php esc_html_e( 'Publié le ', 'beans_gasap' ); echo date_i18n( get_option( 'date_format' )); ?></div><?php
return $content;
}
add_action( 'beans_post_after_markup', 'add_single_content_pieces' );
function add_single_content_pieces() {
include (get_stylesheet_directory() . '/assets/template_parts/news_slider.php');
include (get_stylesheet_directory() . '/assets/template_parts/latest_news.php');
include (get_stylesheet_directory() . '/assets/template_parts/contact_calendar.php');
//include (get_stylesheet_directory() . '/assets/template_parts/event_calendar.php');
include (get_stylesheet_directory() . '/assets/template_parts/footer.php');
}
beans_load_document();
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