-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcontent-single.php
54 lines (44 loc) · 1.5 KB
/
content-single.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
<?php
/**
* The template for displaying content in the single.php template
*
* @package AgriFlex
* @since AgriFlex 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( get_post_meta($post->ID, 'agnews_subtitle', true)) : ?>
<h2 class="subtitle">
<?php echo get_post_meta($post->ID, 'agnews_subtitle', true);?>
</h2>
<?php endif; ?>
<?php if ( get_post_meta( $post->ID, 'agnews_contacts', true ) ) {
$contacts = '<p id="contacts" class="contact_sources">
<h3><span>Contacts</span></h3>
</p>' .
get_post_meta( $post->ID, 'agnews_contacts', true ) . '';
} else {
$contacts = '';
} ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php agriflex_posted_on(); ?>
<?php wp_link_pages(
array( 'before' => '<div class="page-link">' . __( 'Pages:',
'agriflex' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<section class="entry-content">
<?php the_content(); ?>
</section><!-- .entry-content -->
<footer class="entry-meta">
<?php agriflex_author_info(); ?>
<section class="entry-utility">
<?php agriflex_posted_in(); ?>
<?php agriflex_edit_link(); ?>
</section><!-- .entry-utility -->
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->