-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcategory.php
64 lines (49 loc) · 2.01 KB
/
category.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
<?php do_action("philosphy_category_page",single_cat_title('',false)); ?>
<?php get_header() ?>
<!-- s-content
================================================== -->
<section class="s-content">
<div class="row narrow">
<div class="col-full s-content__header" data-aos="fade-up">
<?php //echo apply_filters("philosophy_text","hello","wonderful", "world"); ?>
<?php do_action("philosphy_before_category_title"); ?>
<h2><?php _e("New Translatable Text",'philosophy'); ?></h2>
<h2><?php printf(__("%s Hello World",'philosophy'),"Hi,"); ?></h2>
<h1>
<?php single_cat_title(); ?>
</h1>
<?php do_action("philosphy_after_category_title"); ?>
<?php do_action("philosphy_before_category_description"); ?>
<p class="lead">
<?php echo category_description(); ?>
</p>
<?php do_action("philosphy_after_category_description"); ?>
</div>
</div>
<div class="row masonry-wrap">
<div class="masonry">
<div class="grid-sizer"></div>
<?php
if ( ! have_posts() ):
?>
<h5 class="text-center"><?php _e("There is no post in this category","philosophy"); ?></h5>
<?php
endif;
?>
<?php
while ( have_posts() ) {
the_post();
get_template_part( "template-parts/post-formats/post", get_post_format() );
}
?>
</div> <!-- end masonry -->
</div> <!-- end masonry-wrap -->
<div class="row">
<div class="col-full">
<nav class="pgn">
<?php philosophy_pagination(); ?>
</nav>
</div>
</div>
</section> <!-- s-content -->
<?php get_footer(); ?>