-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
83 lines (67 loc) · 3.45 KB
/
content.php
File metadata and controls
83 lines (67 loc) · 3.45 KB
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
<?php
$home_layout = get_theme_mod('home_layout', 1);
$category_layout = get_theme_mod('category_layout', 1);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<span class="date-bar-white-bg"><span class="vcard author show-author"><span class="fn" itemprop="name"><?php the_author(); ?></span><span class="show-author"> / </span></span><span class="entry-date updated"><time datetime="<?php echo get_the_date('Y-m'); ?>" itemprop="datePublished"><?php echo get_the_date(); ?></time></span></span>
</div>
<?php endif; ?>
<h2 class="entry-title" itemprop="name headline"><a href="<?php the_permalink(); ?>" rel="bookmark" itemprop="url"><?php the_title(); ?></a></h2>
</header><!-- .entry-header -->
<?php if ( is_search() || ((is_home() && ($home_layout == 2))) || (is_archive() && ($category_layout == 2)) || (is_home() && ($home_layout == 5) && $wp_query->current_post == 0) || (is_archive() && ($category_layout == 5) && $wp_query->current_post == 0) ) { ?>
<div class="entry-summary">
<div class="textalign-center">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php
$link = esc_url(get_the_permalink());
$title = rawurldecode(get_the_title());
if (get_the_post_thumbnail() != '') {
$attr = array(
'data-p3-pin-title' => $title,
'data-p3-pin-link' => $link,
'itemprop' => 'image',
);
the_post_thumbnail('full', $attr);
} else {
if (pipdig_catch_that_image()) {
echo '<img src="'.pipdig_catch_that_image().'" data-p3-pin-title="'.$title.'" data-p3-pin-link="'.$link.'" alt="" itemprop="image" />';
}
}
?>
</a>
</div>
<?php the_excerpt(); ?>
<?php do_action('p3_content_end'); ?>
</div><!-- .entry-summary -->
<?php } else { ?>
<div class="clearfix entry-content" itemprop="description articleBody">
<?php do_action('p3_content_start'); ?>
<?php the_content( __( 'View Post', 'pipdig-textdomain' ) ); ?>
<div class="pipdig-post-sig socialz nopin">
<?php if(get_theme_mod('post_signature_image')) { ?>
<img src="<?php echo esc_url(get_theme_mod('post_signature_image')); ?>" data-pin-nopin="true" />
<?php } //endif ?>
</div>
<?php if (function_exists('rwmb_meta')) { ?>
<?php $sponsored = rwmb_meta( 'pipdig_meta_sponsored_post' ); ?>
<?php if ($sponsored == '1' ) { ?>
<div class="disclaimer-text">
<i class="fa fa-info-circle"></i> <?php echo get_theme_mod('sponsored_post_disclaimer_text'); ?>
</div>
<?php } //endif ?>
<?php } //endif ?>
<?php do_action('p3_content_end'); ?>
</div><!-- .entry-content -->
<?php } ?>
<footer class="entry-meta entry-footer">
<?php if ( 'post' == get_post_type() ) { ?>
<?php if(function_exists('pipdig_p3_social_shares')){ pipdig_p3_social_shares(); } ?>
<?php if(!get_theme_mod('hide_comments_link')){ ?>
<span class="commentz"><a href="<?php comments_link(); ?>" data-disqus-url="<?php echo get_the_permalink(); ?>"><?php if (function_exists('pipdig_p3_comment_count')) { pipdig_p3_comment_count(); } else { ?>Comments<?php } ?></a></span>
<?php } // end if ?>
<?php } ?>
</footer><!-- .entry-footer -->
<!-- #post-<?php the_ID(); ?> --></article>