first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<div class="author-box">
|
||||
<figure>
|
||||
<?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
|
||||
</figure>
|
||||
<div class="author-post">
|
||||
<h3><?php esc_html_e( 'By', 'thinkai' ); ?><?php echo esc_html( get_the_author_meta( 'display_name' ) ); ?></h3>
|
||||
<p><?php echo esc_html( get_the_author_meta( 'description' ) ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
35
wp-content/themes/thinkai/templates/blog-single/image.php
Normal file
35
wp-content/themes/thinkai/templates/blog-single/image.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Single Image File.
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Theme Kalia
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
if ( class_exists( 'Thinkai_Resizer' ) ) {
|
||||
$img_obj = new Thinkai_Resizer();
|
||||
|
||||
}
|
||||
$width = $data->get( 'sidebar' ) ? '769' : '1170';
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
?>
|
||||
|
||||
|
||||
<div class="single-avatar singlee">
|
||||
<?php if ( class_exists( 'Thinkai_Resizer' ) ) : ?>
|
||||
|
||||
<?php echo wp_kses( $img_obj->resize( wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ), 'full' ), $width, 460, true ), $allowed_html ); ?>
|
||||
<?php else : ?>
|
||||
<?php the_post_thumbnail( 'full' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $options->get( 'small_image' ) && has_post_thumbnail() ) : ?>
|
||||
|
||||
<span><?php echo get_avatar( get_the_author_meta( 'ID' ), 41 ); ?></span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
54
wp-content/themes/thinkai/templates/blog-single/meta.php
Normal file
54
wp-content/themes/thinkai/templates/blog-single/meta.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Single Post meta File.
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Theme Kalia
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( $options->get( 'single_date' ) ) : ?>
|
||||
|
||||
<span class="post-date"><a href="<?php echo get_day_link( get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' ) ); ?>"><i class="fa fa-clock-o"></i> <?php echo get_the_date( 'F j,' ) . ' ' . get_the_date( ' Y' ); ?></a></span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="likes">
|
||||
|
||||
<?php if ( $options->get( 'single_likes' ) ) : ?>
|
||||
|
||||
<li>
|
||||
|
||||
<?php thinkai_template_load( 'templates/like.php', compact( 'data' ) ); ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $options->get( 'single_comments' ) ) : ?>
|
||||
|
||||
<li><a href="#comments"><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></a></li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php if ( $options->get( 'show_single_sharing' ) && $social ) : ?>
|
||||
|
||||
<ul class="social-media">
|
||||
|
||||
<?php foreach ( $social as $k => $v ) {
|
||||
|
||||
if ( $v == '' ) {
|
||||
continue;
|
||||
} ?>
|
||||
|
||||
<?php do_action('thinkai_social_share_output', $k ); ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* Single Post Content Template
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage THINKAI
|
||||
* @author Theme Kalia
|
||||
* @version 1.0
|
||||
*/
|
||||
?>
|
||||
<?php global $wp_query;
|
||||
|
||||
$page_id = ( $wp_query->is_posts_page ) ? $wp_query->queried_object->ID : get_the_ID();
|
||||
|
||||
$gallery = get_post_meta( $page_id, 'thinkai_gallery_images', true );
|
||||
|
||||
$video = get_post_meta( $page_id, 'thinkai_video_url', true );
|
||||
|
||||
|
||||
$audio_type = get_post_meta( $page_id, 'thinkai_audio_type', true );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="blog-detail-page">
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<figure>
|
||||
<?php thinkai_template_load( 'templates/blog-single/image.php', compact( 'options', 'data' ) ); ?>
|
||||
</figure>
|
||||
<?php endif; ?>
|
||||
<div class="blog-detail-meta">
|
||||
<div class="comments-area">
|
||||
<?php if ( $options->get( 'single_post_date', true ) ) : ?>
|
||||
<span>
|
||||
<a href="<?php echo get_day_link( get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' ) ); ?>">
|
||||
<i class="fas fa-calendar"></i>
|
||||
<?php echo get_the_date( 'F j,' ) . ' ' . get_the_date( ' Y' ); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ( $options->get( 'single_post_comments', true ) ) : ?>
|
||||
<span>
|
||||
<i class="fas fa-comment"></i>
|
||||
<a href="<?php echo esc_url( get_permalink( get_the_ID() ) ); ?>#comments">
|
||||
<?php comments_number() ?>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ( $options->get( 'single_post_author', true ) ) : ?>
|
||||
|
||||
<span><i class="fas fa-user"></i><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php esc_html_e( 'By ', 'thinkai' );
|
||||
the_author_meta( 'display_name' ); ?></a></span>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ( $options->get( 'single_post_cat', true ) ) : ?>
|
||||
<span>
|
||||
<i class="fa fa-tag"></i>
|
||||
<?php the_category(); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
<?php if ( $options->get( 'single_post_tag' ) || $options->get( 'single_social_share' ) && $options->get( 'single_post_share' ) ) : ?>
|
||||
<div class="detail-btm-meta">
|
||||
|
||||
<?php if ( $options->get( 'single_post_tag' ) ) : ?>
|
||||
<?php $title = '<span>' . esc_html__( 'Tags:', 'thinkai' ) . '</span>'; ?>
|
||||
<?php the_tags( '<div class="tags">' . $title . ' ', ' ', '</div>' ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ( $options->get( 'single_social_share' ) && $options->get( 'single_post_share' ) ) : ?>
|
||||
<ul class="social-circle">
|
||||
<?php foreach ( $options->get( 'single_social_share' ) as $k => $v ) {
|
||||
if ( $v == '' ) {
|
||||
continue;
|
||||
} ?>
|
||||
<?php do_action('thinkai_social_share_output', $k ); ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $options->get( 'single_post_author_box' ) ) : ?>
|
||||
|
||||
<?php thinkai_template_load( 'templates/blog-single/author_box.php', compact( 'options', 'data' ) ); ?>
|
||||
<?php endif; ?>
|
||||
<?php comments_template(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="paginate-links">', 'after' => '</div>' ) ); ?>
|
||||
</div>
|
||||
48
wp-content/themes/thinkai/templates/blog-single/tags.php
Normal file
48
wp-content/themes/thinkai/templates/blog-single/tags.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Single Post tags File.
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Theme Kalia
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php $tags = wp_get_post_tags( get_the_ID() );
|
||||
$get_tags = get_the_tag_list( get_the_ID() );
|
||||
?>
|
||||
<?php if ( has_category() || $get_tags ) : ?>
|
||||
<div class="tags-area">
|
||||
<?php if ( $get_tags ) : ?>
|
||||
|
||||
|
||||
<span><i class="fa fa-tags"></i><?php esc_html_e( 'tags:', 'thinkai' ); ?></span>
|
||||
|
||||
<ul>
|
||||
|
||||
<?php foreach ( $tags as $tag ) : ?>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo esc_url( get_tag_link( thinkai_set( $tag, 'term_id' ) ) ); ?>"><?php echo esc_html( thinkai_set( $tag, 'name' ) ); ?></a>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if ( has_category() ) : ?>
|
||||
<div class="cat-area">
|
||||
|
||||
<span><i class="fa fa-list-alt"></i><?php esc_html_e( 'categories:', 'thinkai' ); ?></span>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><?php wp_kses( the_category( ' , ' ), true ); ?></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user