-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
83 lines (61 loc) · 1.94 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>
</title>
<link rel="stylesheet" type="text/css" href="css/site.css">
<meta name="viewport" content="width=device-width">
<meta charset="utf-8">
</head>
<body>
<header>
</header>
<footer>
</footer>
</body>
</html>
<?php
//à utiliser avec front-page.php
wp_redirect(site_url());
exit;
?>
<?php get_header(); ?>
<!--pull anthony-->
<section id='content'>
<!--<aside>
<div>
<//?php get_sidebar(); ?>
</div>
</aside>-->
<fieldset id="fieldsetcontent">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<fieldset class="post">
<!-- Display the Title as a link to the Post's permalink. -->
<h2>Titre de l'article : <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
<small>Date et auteur : <?php the_time('j F Y à G:i'); ?> par : <?php the_author_posts_link(); ?></small>
<!-- Display the Post's content in a div box. -->
<div class="entry">
<fieldset>
<?php the_content(); ?>
</fieldset>
</div>
<p style="font-size:.9em;">
<!-- Display the number of comments. -->
Cet article a <a href="<?php the_permalink(); ?>#comments"><?php comments_number( 'aucun commentaire', 'un commentaire', '% commentaires' ); ?></a>.
<!-- Display a comma separated list of the Post's Categories. -->
<span class="postmetadata">Posté dans <?php the_category( ', ' ); ?></span>
</p>
<fieldset style="margin-left:10%;">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;?>
</fieldset>
</fieldset> <!-- closes the first div box -->
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</fieldset>
</section>
<?php get_footer(); ?>