-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·93 lines (53 loc) · 2.61 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
84
85
86
87
88
89
90
91
92
93
<?php
/*
Index.php
The purpose of this page is as a fall back for all blog pages.
*/
?>
<?php get_template_part( 'header' ); ?>
<header class="page_header">
<!--INSERT OPTION in page to display or not-->
<h2 class="page_title"><?php wp_title(''); ?></h2>
<div class="breadcrumb_wrap"><?php sic_breadcrumbs();?></div>
</header><!-- .entry-header -->
<section class="page_body">
<section id="primary_content">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry_header">
<h3 class="entry_title"><?php the_title(); ?></h3>
<div class="entry_meta">
<?php
printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>' ),
get_permalink(),
get_the_date( 'c' ),
get_the_date(),
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr__( 'View all posts by %s'), get_the_author() ),
get_the_author()
);
?>
<?php if ( comments_open() ) : comments_popup_link( '', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); endif;?>
</div><!--entry-meta -->
</header><!--entry-header -->
<div class="entry_image">
<?php the_post_thumbnail( 'post_featured'); ?>
</div><!--entry_image-->
<div class="entry_content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span class="page-link-meta">' . __( 'Pages:') . '</span>', 'after' => '</div>', 'next_or_number' => 'number' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry_meta">
<?php edit_post_link( __( 'Edit'), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php endwhile; ?>
<?php $index_pages = new sicPagination(); echo $index_pages->output();?>
</section><!--primary_content -->
<?php else : ?>
<?php echo "Sorry, this article doesnt exist";?>
<?php endif; ?>
<?php get_template_part( 'sidebar' ); ?>
</section><!--page body-->
<?php get_template_part( 'footer' ); ?>