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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
| <?php
/**
* Content Template is used for every post format and used on single posts
*
* It is also used on archives called via loop.php
*/
$classes = array('the-post');
// Dynamic style for full-width posts only
if (Bunyad::core()->get_sidebar() == 'none' && Bunyad::posts()->meta('layout_template') == 'dynamic') {
array_push($classes, 'the-post-modern');
}
/**
* Content container configs
*/
$content_classes = array('post-content description cf');
$share_float = Bunyad::options()->single_share_float;
if ($share_float) {
$content_classes[] = 'has-share-float';
}
?>
<article <?php
// Setup article attributes
Bunyad::markup()->attribs('post-wrapper', array(
'id' => 'post-' . get_the_ID(),
'class' => join(' ', get_post_class($classes)),
)); ?>>
<header class="post-header cf">
<?php Bunyad::get('helpers')->post_meta('alt', array('enable_cat' => 1, 'is_single' => 1)); ?>
<?php get_template_part('partials/single/featured'); ?>
</header>
<!-- .post-header -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- picslovin-top-336-250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-64XXXXXXXXX"
data-ad-slot="7XXXXXXX"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div <?php
Bunyad::markup()->attribs('post-content', array(
'class' => $content_classes
));
?>>
<?php if ($share_float): ?>
<?php get_template_part('partials/single/social-share-float'); ?>
<?php endif; ?>
<?php
// Excerpts or main content?
if (is_single() OR Bunyad::options()->post_body == 'full'):
/**
* A wrapper for the_content() for some of our magic.
*
* Note: the_content filter is applied.
*
* @see the_content()
*/
Bunyad::posts()->the_content(null, false);
else:
// Show the excerpt, always add Keep Reading button (more button), and respect <!--more--> (teaser)
echo Bunyad::posts()->excerpt(null, Bunyad::options()->post_excerpt_blog, array('force_more' => true, 'use_teaser' => true));
endif;
?>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- picslovin-article -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-6XXXXXXXXX"
data-ad-slot="6XXXXXXXX"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- .post-content -->
<?php if (is_single()): // Single post ?>
<div class="the-post-foot cf">
<?php
wp_link_pages(array(
'before' => '<div class="page-links post-pagination">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
));
?>
<div class="tag-share cf">
<?php if (Bunyad::options()->single_tags): ?>
<?php the_tags('<div class="post-tags">', '', '</div>'); ?>
<?php endif; ?>
<?php get_template_part('partials/single/social-share'); ?>
</div>
</div>
<?php if (Bunyad::options()->author_box): ?>
<?php get_template_part('partials/author-box'); ?>
<?php endif; ?>
<?php
if (Bunyad::options()->single_navigation):
get_template_part('partials/single/post-navigation');
endif;
?>
<?php get_template_part('partials/single/related-posts'); ?>
<div class="comments">
<?php comments_template('', true); ?>
</div>
<?php endif; ?>
</article> <!-- .the-post --> |
Partager