/
page1col.php
56 lines (47 loc) · 1.55 KB
/
page1col.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/*
Template Name: Page 1 Colonne
*/
get_header(); ?>
<div class="page">
<div class="container">
<div class="row">
<div id="content" class="span12">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="row" id="post-<?php the_ID(); ?>">
<div class="span12">
<?php
$hide_title = get_post_custom_values('hide_title');
if ($hide_title[0]!=1) : ?>
<div class="page-header">
<h1 class="title"><?php the_title(); ?></h1>
</div>
<?php
endif;
$carousel_pages = get_post_custom_values('carousel_pages');
$pages_array = explode(",", $carousel_pages[0]);
if(!empty($carousel_pages)) : ?>
<?php ecs_carousel(array('post__in' => $pages_array), 12); ?>
<?php endif; ?>
<?php the_content('Lire la suite »'); ?>
<br/>
<p>
<?php
$multi_page_post = get_post_custom_values('multi-page-post');
if (!empty($multi_page_post)) {
$posts_array = explode(",", $multi_page_post[0]);
ecs_multi_page_post(get_the_ID(),$posts_array);
} ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</p>
</div>
</div>
<?php /* comments_template(); // Uncomment to get templates */ ?>
<?php endwhile; else: ?>
<p>Désolé, aucun article ne correspond à votre recherche.</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>