-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent.php
More file actions
executable file
·41 lines (34 loc) · 1.45 KB
/
content.php
File metadata and controls
executable file
·41 lines (34 loc) · 1.45 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
<?php
// Get the data set in customizer
$content = get_theme_mod( 'bulan-blog-content', 'content' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php hybrid_attr( 'post' ); ?>>
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'bulan' ) );
if ( $categories_list && bulan_categorized_blog() ) :
?>
<span class="cat-links" <?php hybrid_attr( 'entry-terms', 'category' ); ?>>
<?php echo $categories_list; ?>
</span>
<?php endif; // End if categories ?>
<?php endif; ?>
<?php the_title( sprintf( '<h2 class="entry-title" ' . hybrid_get_attr( 'entry-title' ) . '><a href="%s" rel="bookmark" itemprop="url">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<a class="thumbnail-link" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( 'large', array( 'class' => 'entry-thumbnail', 'alt' => esc_attr( get_the_title() ) ) ); ?>
</a>
<?php endif; ?>
<?php if ( $content == 'content' ) : ?>
<div class="entry-content" <?php hybrid_attr( 'entry-content' ); ?>>
<?php the_content( __( 'Continue Reading', 'bulan' ) ); ?>
</div>
<?php else : ?>
<div class="entry-summary" <?php hybrid_attr( 'entry-summary' ); ?>>
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
</article><!-- #post-## -->