-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pather-article.php
62 lines (49 loc) · 2.14 KB
/
er-article.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
<?php // Exit if accessed directly
if (!defined('ABSPATH')) {echo '<h1>Forbidden</h1>'; exit();} ?>
<?php global $flagfooter ; $check_quote=0;?>
<?php if(!is_single()):?>
<article <?php post_class("post-wrap"); ?>>
<?php else: ?>
<article id="post-<?php the_ID(); ?>" <?php post_class("post-wrap post-single"); ?>>
<?php endif;?>
<!-- here went media -->
<?php if(bella_detect_woocommerce()!=true ) : ?>
<div class="post-header">
<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<?php endif;?>
<?php if ($check_quote==0) : ?>
<div class="post-body">
<div class="post-excerpt">
<?php // If displaying a single post or a page
if (is_single() OR is_page()) :
if(has_post_format('gallery')):
$postContentStr = apply_filters('the_content', strip_shortcodes($post->post_content));
echo wp_kses_post($postContentStr);
else:
the_content(); ?>
<?php endif;
wp_link_pages(array(
'next_or_number' => 'number',
'nextpagelink' => __('Next page', 'dikka'),
'previouspagelink' => __('Previous page', 'dikka'),
'pagelink' => '%',
'link_before' => '<span class="ft-btn">',
'link_after' => '</span>',
'before' => '<div class="clearfix"></div>' . __('Pages:', 'dikka') . ' <div class="ft-article-pages">',
'after' => '</div>'
));
else :
the_excerpt ();
endif; ?>
</div>
</div>
<?php endif; ?>
<!--
<?php// if (!is_single() && (bella_detect_woocommerce()!=true)):?>
<div class="post-footer">
<span class="post-read-more"><a href="<?php// echo the_permalink();?>" class="btn btn-theme btn-theme-transparent btn-icon-left"><i class="fa fa-file-text-o"></i><?php// _e('Read more','dikka')?></a></span>
</div>
<?php// endif;?>
-->
</article>