-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-post.php
More file actions
22 lines (18 loc) · 892 Bytes
/
Copy pathsingle-post.php
File metadata and controls
22 lines (18 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php get_header(); ?>
<?php
// ----Afficher Bordu cours-----
$codeCours = substr(get_the_title(), 0,3);
include get_theme_file_path( '/inclusions/conditionCoursBorder.php' );
?>
<input type="checkbox" id="chk-single">
<main class="site__main <?= $etat; ?>" style="background-image: url('<?php if (has_post_thumbnail()) { echo get_the_post_thumbnail_url(); } else { echo $imageBlank; } ?>');">
<?php if (have_posts()): the_post(); ?>
<article class="article__seul">
<h2> <label title="Cliquer pour masquer" for="chk-single"><?php the_title(); ?><div class="cours_etat"></div> </label></h2>
<div class="article__seul__contenu">
<?php the_content(); ?>
</div>
</article>
<?php endif; ?>
</main>
<?php get_footer(); ?>