-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-grammar.php
77 lines (63 loc) · 2.08 KB
/
archive-grammar.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
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* Archive
*/
get_header(); ?>
<div class="row justify-content-between">
<!-- main -->
<div class="col-md-8 pr-0 pr-md-6">
<?php if ( have_posts() ) : ?>
<div class="section-title">
<h2 class="spanborder h4 text-capitalize">
<span>
<?php echo wp_title(); ?>
</span>
</h2>
</div>
<!-- begin posts -->
<?php while ( have_posts() ) : the_post(); ?>
<?php echo mundana_postbox(); ?>
<?php endwhile; ?>
<!-- end post -->
<!-- pagination -->
<div class="bottompagination">
<?php wp_bootstrap_pagination( array(
'previous_string' => '<i class="fa fa-angle-double-left"></i>',
'next_string' => '<i class="fa fa-angle-double-right"></i>',
'before_output' => '<span class="navigation">',
'after_output' => '</span>'
) ); ?>
</div>
<!-- end pagination -->
<?php else : ?>
<p>
<?php _e( 'Sorry, no posts matched your criteria.', 'mundana' ); ?>
</p>
<?php endif; ?>
<?php wp_reset_query(); ?>
<!-- display categories -->
<?php echo wowthemes_display_all_cats();?>
<!-- end display categories -->
</div>
<!-- end main -->
<!-- right sidebar (popular posts and widgets if any) -->
<div class="col-md-4">
<!-- WorkSheet new section -->
<?php if (function_exists('worksheet_count_cat_post')) : ?>
<h4><?php echo worksheet_count_cat_post('grammar'); ?> grammar topics</h4><hr><br>
<?php endif; ?>
<h5>Search Grammar topics</h5>
<?php if ( in_category( 'grammar' ) ) : echo do_shortcode ( '[searchandfilter id="2302"]' ); endif; ?> <br>
<!-- end WorkSheet new section -->
<!-- widgets -->
<?php if ( is_active_sidebar( 'grammar-books4languages-widget-area' ) ) : //WorkSheet widget area ?>
<div id="sidebar-home" class="sidebar-home widget-area" role="complementary">
<?php dynamic_sidebar( 'grammar-books4languages-widget-area' ); //WorkSheet widget area ?>
</div>
<?php endif; ?>
<!-- end widgets -->
<?php echo mundana_claps(); ?>
</div>
<!-- end right sidebar -->
</div>
<?php get_footer(); ?>