This commit is contained in:
KhaiNguyen
2020-02-13 10:39:37 +07:00
commit 59401cb805
12867 changed files with 4646216 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
$without_image_class = '';
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
if (!has_post_thumbnail()) {
$without_image_class .= 'without-image';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php if (has_post_thumbnail()) : ?>
<div class="entry-image">
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-grid-image'); ?></a>
</div>
<?php endif; ?>
<div class="entry-wrapper <?php echo esc_attr($without_image_class); ?>">
<h4 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<div class="post-meta-child">
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
</div>
<div class="post-meta-child">
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
</div>
</div>
<div class="entry-content">
<?php the_excerpt(); ?>
<?php wp_link_pages(); ?>
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
</div>
</div>
</article>

View File

@@ -0,0 +1,46 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
$url = $entry_class = '';
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
if ( !has_post_thumbnail() ) {
$entry_class .="without-image";
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-image">
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-left-image'); ?></a>
</div>
<div class="entry-wrapper <?php echo esc_attr($entry_class); ?>">
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
</div>
<?php if ('quote' === get_post_format()) : ?>
<h2 class="blog-single-title quote"><?php the_title(); ?></h2>
<?php else : ?>
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
<div class="entry-content">
<?php the_excerpt(); ?>
<?php wp_link_pages(); ?>
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
</div>
</div>
</article>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php if ('quote' === get_post_format()) : ?>
<h2 class="blog-single-title quote"><?php the_title(); ?></h2>
<?php else : ?>
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
</div>
<?php get_template_part( 'core/templates/post/post-type/content', get_post_format() ); ?>
<div class="entry-content">
<div class="page-content">
<?php the_excerpt(); ?>
</div>
<?php wp_link_pages(); ?>
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
</div>
</article>

View File

@@ -0,0 +1,43 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
$without_image_class = '';
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
if (!has_post_thumbnail()) {
$without_image_class .= 'without-image';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php if (has_post_thumbnail()) : ?>
<div class="entry-image">
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-grid-image'); ?></a>
</div>
<?php endif; ?>
<div class="entry-wrapper <?php echo esc_attr($without_image_class); ?>">
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
</div>
<h5 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
<div class="entry-content">
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
</div>
</div>
</article>

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
</div>
<div class="entry-content">
<?php the_excerpt(); ?>
<?php wp_link_pages(); ?>
</div>
</article>

View File

@@ -0,0 +1,27 @@
<?php
/**
* Template part for displaying a message that posts cannot be found
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<section id="posts-content" class="container">
<div class="row">
<h2 class="section-title"><?php esc_html_e( 'Nothing Found', 'ekko' ); ?></h2>
<?php
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'ekko' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p class="section-subheading"><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again using different keywords.', 'ekko' ); ?></p>
<?php get_search_form();
else : ?>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'ekko' ); ?></p>
<?php get_search_form();
endif; ?>
</div>
</section><!-- .no-results -->

View File

@@ -0,0 +1,49 @@
<?php
/**
* Template part for displaying posts with excerpts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<span class="page-type"><span class="fa fa-file-text-o"></span><?php esc_html_e( 'Post', 'ekko' ); ?></span>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
</div>
<?php else : ?>
<div class="entry-meta">
<?php if ( 'page' === get_post_type() ) : ?>
<span class="page-type"><span class="fa fa-file-text-o"></span><?php esc_html_e( 'Page', 'ekko' ); ?></span>
<?php elseif ( 'portfolio' === get_post_type() ) : ?>
<span class="page-type"><span class="fa fa-file-image-o"></span><?php esc_html_e( 'Portfolio', 'ekko' ); ?></span>
<?php elseif ( 'product' === get_post_type() ) : ?>
<span class="page-type"><span class="fa fa-shopping-cart"></span><?php esc_html_e( 'Product', 'ekko' ); ?></span>
<?php endif; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
</div>
<?php endif; ?>
<div class="entry-content">
<?php if ( has_excerpt() ) {
the_excerpt();
} ?>
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
</div>
</article>

View File

@@ -0,0 +1,24 @@
<?php
/**
* The Template for displaying all single posts.
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="blog-single-content">
<div class="blog-content">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
<div class="meta-content">
<?php do_action( 'keydesign_post_after_main_content' ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<?php
/**
* Template part for displaying standard posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package ekko
* by KeyDesign
*/
?>
<?php
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
$redux_ThemeTek['tek-blog-sidebar'] = 0;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><h2 class="blog-single-title"><?php the_title(); ?></h2></a>
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
</div>
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('large'); ?></a>
<div class="entry-content">
<?php if(has_excerpt()) : ?>
<?php the_excerpt(); ?>
<?php else : ?>
<div class="page-content"><?php the_content(); ?></div>
<?php endif; ?>
<?php wp_link_pages(); ?>
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php echo apply_filters( 'blog-readmore-text', esc_html__("Read more", "ekko") ); ?><span class="fa fa-chevron-right"></span></a>
</div>
</article>

View File

@@ -0,0 +1,33 @@
<?php
/**
* The template for displaying Author info box
*/
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
if( false === $redux_ThemeTek['tek-author-box'] ) {
return;
}
// Initialize needed variables
global $authordata;
$author_id = is_object( $authordata ) ? $authordata->ID : -1;
?>
<?php if ('' != get_the_author_meta( 'description', $author_id )) : ?>
<div class="author-box-wrapper">
<figure class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 85 ); ?>
</figure>
<div class="author-desc-wrapper">
<div class="author-name">
<h6><?php esc_html_e('Author:', 'ekko'); ?> <?php the_author_posts_link(); ?></h6>
</div>
<?php if ('' != get_the_author_meta( 'user_url', $author_id )) : ?>
<div class="author-website">
<p><?php esc_html_e('Website:', 'ekko'); ?> <a href="<?php echo get_the_author_meta( 'user_url', $author_id ); ?>"><?php echo get_the_author_meta( 'user_url', $author_id ); ?></a></p>
</div>
<?php endif; ?>
<div class="author-desc">
<?php echo get_the_author_meta( 'description', $author_id ); ?>
</div>
</div>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,16 @@
<?php
/**
* The template used for displaying comments for single Blog posts
*/
?>
<section class="page-content comments-content">
<div class="container">
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) {
comments_template();
}
?>
</div>
</section>

View File

@@ -0,0 +1,12 @@
<?php
/**
* The template used for displaying meta information for single Blog posts
*/
?>
<div class="entry-meta">
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
<span class="published"><span class="fa fa-clock-o"></span><?php the_time( get_option('date_format') ); ?></span>
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
</div>

View File

@@ -0,0 +1,10 @@
<?php
/**
* The template used for displaying navigation for single Blog posts
*/
?>
<div class="navigation pagination">
<?php previous_post_link('%link', esc_html__('Previous', 'ekko')); ?>
<?php next_post_link('%link', esc_html__('Next', 'ekko')); ?>
</div>

View File

@@ -0,0 +1,64 @@
<?php
/**
* The template for displaying Related posts for Blog posts
*/
if(!( 'post' == get_post_type() )) {
return false;
}
$carousel_class = '';
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
$terms = get_the_terms( $post->ID , 'category', 'string');
if ($terms == 0) {
return false;
}
$term_ids = array_values( wp_list_pluck( $terms,'term_id' ) );
$related_query = new WP_Query(
array(
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'id',
'terms' => $term_ids,
'operator'=> 'IN'
)
),
'posts_per_page' => $redux_ThemeTek['tek-related-posts-number'],
'ignore_sticky_posts' => 1,
'orderby' => 'date',
'post__not_in' => array($post->ID)
)
);
if( $related_query->found_posts == 0) {
return false;
}
if ($related_query->found_posts > 3 && $redux_ThemeTek['tek-related-posts-number'] > 3) {
$carousel_class = 'owlslider-related-posts';
}
?>
<section class="related-posts">
<div class="container">
<?php if (isset($redux_ThemeTek['tek-related-posts-title']) && $redux_ThemeTek['tek-related-posts-title'] != '') : ?>
<div class="related-title">
<h3><?php echo esc_html($redux_ThemeTek['tek-related-posts-title']); ?></h3>
</div>
<?php endif; ?>
<div class="related-content <?php echo esc_attr($carousel_class); ?>">
<?php
if ( $related_query->have_posts() ) : while ( $related_query->have_posts() ) : $related_query->the_post();
get_template_part('core/templates/post/blog', 'minimal-grid');
endwhile;
else :
get_template_part('core/templates/post/content','none');
endif;
wp_reset_postdata();
?>
</div>
</div>
</section>

View File

@@ -0,0 +1,13 @@
<?php
/**
* The template used for displaying tags for single Blog posts
*/
?>
<?php
the_tags(
'<div class="tags">',
' ',
'</div>'
);
?>

View File

@@ -0,0 +1,11 @@
<?php
/**
* The template used for displaying titles for single Blog posts
*/
?>
<?php if ('quote' === get_post_format()) : ?>
<h1 class="blog-single-title quote"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="blog-single-title"><?php the_title(); ?></h1>
<?php endif; ?>

View File

@@ -0,0 +1,21 @@
<?php
$content = apply_filters( 'the_content', get_the_content() );
$audio = false;
// Only get video from the content if a playlist isn't present.
if ( false === strpos( $content, 'wp-playlist-script' ) ) {
$audio = get_media_embedded_in_content( $content, array( 'audio', 'iframe' ) );
}
?>
<?php if ( '' !== get_the_post_thumbnail() && empty( $audio ) ) : ?>
<div class="entry-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('large'); ?>
</a>
</div>
<?php endif; ?>
<?php if ( !empty( $audio ) && !is_single() ) {
foreach ( $audio as $audio_html ) {
echo '<div class="entry-audio">'.$audio_html.'</div>';
}
}; ?>

View File

@@ -0,0 +1,11 @@
<?php if ( '' !== get_the_post_thumbnail() && ! get_post_gallery() ) : ?>
<div class="entry-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('large'); ?>
</a>
</div>
<?php elseif (get_post_gallery() && !is_single()) : ?>
<div class="entry-gallery">
<?php echo get_post_gallery(); ?>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,6 @@
<?php if ('quote' === get_post_format()) : ?>
<h3 class="blog-single-title quote"><?php the_title(); ?></h3>
<?php else : ?>
<h3 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php endif; ?>

View File

@@ -0,0 +1,31 @@
<?php
$content = apply_filters( 'the_content', get_the_content() );
$video = false;
// Only get video from the content if a playlist isn't present.
if ( false === strpos( $content, 'wp-playlist-script' ) ) {
$video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) );
}
?>
<?php if ( '' !== get_the_post_thumbnail() && empty( $video ) ) : ?>
<div class="entry-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('large'); ?>
</a>
</div>
<?php endif; ?>
<?php if ( !empty( $video ) && !is_single() && class_exists('KEYDESIGN_ADDON_CLASS') ) {
foreach ( $video as $video_html ) {
echo '<div class="entry-video">
<div class="video-cover">
<div class="background-video-image">'. wp_get_attachment_image(get_post_thumbnail_id(), 'large') .'</div>
<div class="play-video"><span class="fa fa-play"></span></div>';
echo '<div class="kd-esc-video">'.$video_html.'</div>';
echo '</div>
</div>';
}
} elseif (!class_exists('KEYDESIGN_ADDON_CLASS')) {
foreach ( $video as $video_html ) {
echo '<div class="entry-video simple-video-iframe">'.$video_html.'</div>';
}
} ?>

View File

@@ -0,0 +1,9 @@
<?php if (has_post_thumbnail()) : ?>
<div class="entry-image">
<?php if (is_single()) :
the_post_thumbnail('large');
else: ?>
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('large'); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>