-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
executable file
·62 lines (60 loc) · 1.78 KB
/
Copy pathcategory.php
File metadata and controls
executable file
·62 lines (60 loc) · 1.78 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
<?php
/**
* The template file Category
*
* This is the template file for category page.
*
* @package same
*/
get_header();
?>
<section id="content">
<div class="wrapper page_text">
<?php get_template_part( 'breadcrumbs' ); ?>
<h1 class="page_title"><?php single_cat_title(); ?></h1>
<div class="columns">
<div class="column column75">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article class="article">
<?php
if ( has_post_thumbnail() ) :
?>
<div class="article_image nomargin">
<div class="inside">
<?php the_post_thumbnail(); ?>
</div>
</div>
<?php endif; ?>
<div class="article_details">
<ul class="article_author_date">
<li><em><?php esc_html_e( 'Add:', 'same' ); ?></em> <?php the_time( 'd.m.Y' ); ?></li>
<li><em><?php esc_html_e( 'Author:', 'same' ); ?></em>
<a href="<?php echo esc_attr( get_author_posts_url( $post->post_author ) ); ?>" ><?php the_author(); ?></a></li>
</ul>
<p class="article_comments"><em><?php esc_html_e( 'Comment: ', 'same' ); ?>
</em><?php comments_number( '0', '1', '%' ); ?></p>
</div>
<h1><?php the_title(); ?></h1>
<?php the_content( '' ); ?>
<a class="button button_small button_orange float_left" href="<?php the_permalink(); ?>">
<span class="inside"><?php esc_html_e( 'read more', 'same' ); ?></span></a>
</article>
<?php endwhile; ?>
<?php else : ?>
<article class="article">
<p><?php esc_html_e( 'Nothing yet', 'same' ); ?></p>
</article>
<?php endif; ?>
</div>
<?php
get_sidebar();
?>
</div>
</div>
</section>
<?php
get_footer();