Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (36 sloc) 1.381 kB
<?php get_header() ?>
<div class="block actualites">
<h2><a href="<?php echo site_url('/actualites/'); ?>"><?php _e('Latest News', 'sudweb') ?></a></h2>
<?php query_posts('posts_per_page=1&post_type=post&order=DESC'); ?>
<?php while(have_posts()): the_post() ?>
<div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h3>
<?php the_post_thumbnail('thumbnail', array('class' => 'illustration')) ?>
<div class="meta"><?php echo get_the_date() ?></div>
<p><?php the_excerpt() ?></p>
</div>
<?php endwhile ?>
</div>
<div class="block programme">
<h2><a href="<?php echo site_url('/programme/'); ?>"><?php _e('Highlighted Talk', 'sudweb') ?></a></h2>
<?php query_posts(array(
'posts_per_page' => 1,
'orderby' => 'rand',
'post_type' => 'talk',
'post_status' => 'publish',
)) ?>
<?php while(have_posts()): the_post() ?>
<article>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h3>
<?php the_post_thumbnail('thumbnail', array('class' => 'illustration')) ?>
<div class="meta"><?php sudweb_list_speakers(get_the_id()) ?></div>
<p><?php the_excerpt() ?></p>
</article>
<?php endwhile ?>
<?php if (!have_posts()): ?>
<div>
<p>Le programme n'est pas encore disponible, suivez-nous pour être informé dès qu'il sera annoncé !</p>
</div>
<?php endif ?>
</div>
<?php get_footer() ?>
Jump to Line
Something went wrong with that request. Please try again.