This repository has been archived by the owner on Dec 31, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-campaign.php
65 lines (55 loc) · 2.18 KB
/
content-campaign.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
<?php
/**
* The template for displaying campaigns
*
* @package WordPress
* @subpackage RVB
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( ! is_sticky() && ! is_singular() ) : // do not make the title a link if post is sticky or displayed singularly ?>
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'synack' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php endif; ?>
<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
<?php if ( !is_sticky() || !is_singular() ) : // close title and thumbnail link ?>
</a>
<?php endif; ?>
<?php if ( 'post' == get_post_type() && !is_sticky() ) : // print publish info for non-sticky posts ?>
<p class="pub-info">
<?php synack_posted_on(); ?>
</p>
<?php endif; // 'post' == get_post_type() && !is_sticky() ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if ( is_singular() ) :
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'synack' ) );
else :
echo preg_replace('/<(img|iframe|video)[^>]+./', '', get_the_content() );
endif;
?>
</div><!-- .entry-content -->
<?php if ( 'post' == get_post_type() && is_singular() ) : ?>
<footer class="entry-footer">
<?php
$categories_list = get_the_category_list( '</li><li>' );
if ( $categories_list ):
?>
<ul class="inline-list cat-links">
<h2 class="assistive-text"><?php _e('Categories', 'synack'); ?></h2>
<li><?php echo $categories_list; ?></li>
</ul>
<?php endif; // End if categories ?>
<?php
$tags_list = get_the_tag_list( '', '</li><li>' );
if ( $tags_list ):
?>
<ul class="inline-list tag-links">
<h2 class="assistive-text"><?php _e('Tags', 'synack'); ?></h2>
<li><?php echo $tags_list; ?></li>
</ul>
<?php endif; // End if $tags_list ?>
</footer><!-- #entry-footer -->
<?php endif; // End if 'post' == get_post_type() && is_singular() ?>
</article><!-- #post-<?php the_ID(); ?> -->