File: C:/Apache24/htdocs/wp-content/themes/appointment/functions/template-tag.php
<?php
if ( ! function_exists( 'appointment_aside_meta_content' ) ) :
function appointment_aside_meta_content()
{
$appointment_options=appointment_theme_setup_data();
$news_setting = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options );
if($news_setting['home_meta_section_settings'] == '' ) { ?>
<!--show date of post-->
<aside class="blog-post-date-area">
<div class="date"> <div class="month-year"><?php echo esc_html(get_the_date()); ?></div></div>
<div class="comment"><a href="<?php the_permalink(); ?>"><i class="fa fa-comments"></i><?php comments_number( '0', '1', '%' ); ?></a></div>
</aside>
<?php } } endif;
if ( ! function_exists( 'appointment_post_meta_content' ) ) :
function appointment_post_meta_content()
{
$appointment_options=appointment_theme_setup_data();
$news_setting = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options );
if($news_setting['home_meta_section_settings'] == 0 ) { ?>
<div class="blog-post-lg">
<a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '40'); ?></a>
<?php esc_html_e('By','appointment');?><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ));?>"><?php echo esc_html( get_the_author());?></a>
<?php $tag_list = get_the_tag_list();
if(!empty($tag_list)) { ?>
<div class="blog-tags-lg"><i class="fa fa-tags"></i><?php the_tags('', ', ', ''); ?></div>
<?php } ?>
</div>
<?php }
} endif;
// this functions accepts two parameters first is the preset size of the image and second is for additional classes, you can also add yours
if(!function_exists( 'appointment_post_thumbnail')) :
function appointment_post_thumbnail($preset,$class){
if(has_post_thumbnail()){
$defalt_arg =array('class' => $class); ?>
<div class="blog-lg-box">
<a class ="img-responsive" <?php if( !is_single() ){ ?> href="<?php the_permalink(); ?>" <?php } ?> title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail($preset, $defalt_arg); ?>
</a>
</div>
<?php } }endif;
// This Function Check whether Sidebar active or Not
if(!function_exists( 'appointment_post_layout_class' )) :
function appointment_post_layout_class(){
if(is_active_sidebar('sidebar-1'))
{ echo 'col-md-8'; }
else
{ echo 'col-md-12'; }
} endif;
?>