-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·45 lines (30 loc) · 986 Bytes
/
page.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
<?php get_header(); ?>
<script>
theme_directory = "<?php echo get_template_directory_uri() ?>";
</script>
<main role="main">
<!-- section -->
<section>
page
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- <?php the_content(); ?> -->
<div id="comments" class="popup" style="display:block">
<div id="closecomments" class='closebtn'><img src="<?php echo get_template_directory_uri(); ?>/img/buttons/close.png"></div>
<div class='popuptitle'>COMMENTAIRES</div>
<?php
$comments = get_comments(array('post_id'=> get_the_ID()));
$comments2 = array_reverse($comments);
wp_list_comments('',$comments2);
comment_form();
?>
</div>
<br class="clear">
</article>
<!-- /article -->
<?php endwhile; ?>
<?php endif; ?>
</section>
<!-- /section -->
</main>