This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-cwn_book.php
84 lines (55 loc) · 1.63 KB
/
content-cwn_book.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* @package Cowork15
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class("book-page"); ?>>
<header class="entry-header">
<?php
if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( sprintf( '<header class="entry-header"><h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1></header>' );
}
?>
<?php edin_post_thumbnail(); ?>
<div class="entry-meta">
<?php // edin_posted_on();
if ( get_field('auteur_livre') )
{
echo '<div>Auteur: ' . get_field('auteur_livre') . '</div>';
}
if ( get_field('editeur_livre') )
{
echo '<div>Editeur: ' . get_field('editeur_livre') . '</div>';
}
// Keywords:
$terms_thematiques = get_the_term_list( $post->ID, 'cwn_thematique', '<p>Thématiques: ', ', ', '</p>' );
if ( ($terms_thematiques) ) {
echo '<div class="thematiques">';
echo $terms_thematiques;
echo '</div>';
}
?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content();
?>
</div><!-- .entry-content -->
<?php
// we show the footer only if we are on a single page, not in archive pages or search results.
if ( is_single() ) {
?>
<footer class="entry-footer">
<?php
// edin_posted_on();
//edin_entry_meta();
?>
Cet ouvrage appartient à la <a href="//coworking-neuchatel.ch/bibliotheque/">Bibliothèque Collective</a> du Coworking Neuchâtel</p>
</footer><!-- .entry-footer -->
<?php
} // end if
?>
</article><!-- #post-## -->