-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-blogv1.php
More file actions
54 lines (48 loc) · 1.68 KB
/
Copy pathcontent-blogv1.php
File metadata and controls
54 lines (48 loc) · 1.68 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
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package WpOpal
* @subpackage kidhouse
* @since kidhouse 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php kidhouse_fnc_post_thumbnail(); ?>
<div class="bottom blogv1">
<header class="entry-header">
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && kidhouse_fnc_categorized_blog() ) : ?>
<!-- <div class="cat-links-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'kidhouse' ) ); ?></span>
</div> -->
<div class="entry-meta">
<?php
if ( 'post' == get_post_type() )
kidhouse_fnc_posted_on();
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
?>
<div class="comments-link"><?php comments_popup_link( esc_html__( 'Leave a comment', 'kidhouse' ), esc_html__( '1 Comment', 'kidhouse' ), esc_html__( '% Comments', 'kidhouse' ) ); ?></div>
<?php
endif;
edit_post_link( esc_html__( 'Edit', 'kidhouse' ), '<div class="edit-link">', '</div>' );
?>
</div><!-- .entry-meta -->
<?php
endif;
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
echo kidhouse_fnc_excerpt( 20, '...' );
?>
</div><!-- .entry-content -->
</div>
</article><!-- #post-## -->