| Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 Path : /home/c/u/i/cuisinesj/www/new/wp-content/themes/wp-intouch/ |
| Current File : /home/c/u/i/cuisinesj/www/new/wp-content/themes/wp-intouch/author.php |
<?php
/**
* The template for displaying Author Archive pages.
*
* Used to display archive-type pages for posts by an author.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage InTouch
* @since InTouch 1.0
*/
get_header(); ?>
<?php
global $ct_options;
$ct_breadcrumb = $ct_options['ct_breadcrumb'];
$show_likes = $ct_options['ct_category_likes_meta'];
$show_comments = $ct_options['ct_category_comments_meta'];
$show_views = $ct_options['ct_category_views_meta'];
$show_date = $ct_options['ct_category_date_meta'];
$show_category = $ct_options['ct_category_categories_meta'];
$show_author = $ct_options['ct_category_author_meta'];
$show_share = $ct_options['ct_category_share_meta'];
$show_readmore = $ct_options['ct_category_readmore_meta'];
$show_iframe = $ct_options['ct_cat_show_iframe'];
$pagination_type = stripslashes( $ct_options['ct_cat_pagination_type'] );
$excerpt_lenght = stripslashes( $ct_options['ct_cat_excerpt_lenght'] );
$sidebar_position = $ct_options['ct_category_layout'];
$col_lg_push = '';
$col_lg_pull = '';
$content_class = 'col-lg-8';
$sidebar_class = 'col-lg-4';
if ( $sidebar_position == 'left-wide' ) :
$col_lg_push = 'col-lg-push-4';
$col_lg_pull = 'col-lg-pull-8';
elseif ( $sidebar_position == 'right-narrow' ) :
$content_class = 'col-lg-9';
$sidebar_class = 'col-lg-3';
elseif ( $sidebar_position == 'left-narrow' ) :
$content_class = 'col-lg-9';
$sidebar_class = 'col-lg-3';
$col_lg_push = 'col-lg-push-3';
$col_lg_pull = 'col-lg-pull-9';
endif; ?>
<?php if ( $ct_breadcrumb ) : ?>
<div class="entry-navigation">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="entry-breadcrumb ct-google-font">
<?php ct_breadcrumb(); ?>
</div><!-- .entry-breadcrumb -->
</div><!-- .col-lg-12 -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .entry-navigation -->
<?php endif; ?>
<?php if ( is_active_sidebar('ct_category_top') ): ?>
<!-- START CATEGORY PAGE TOP WIDGETS AREA -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="top-widgets-area">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('ct_category_top') ) : ?>
<?php endif; ?>
</div> <!-- .top-widgets-area -->
</div><!-- .col-lg-12 -->
</div><!-- .row -->
</div><!-- .container -->
<!-- END CATEGORY PAGE TOP WIDGETS AREA -->
<?php endif; ?>
<?php // Check if Load More Button
if ( $pagination_type == 'load_more' ) :
wp_enqueue_script(
'pbd-alp-load-posts',
get_template_directory_uri() . '/js/load-posts.js',
array('jquery'),
'1.0',
true
);
// What page are we on? And what is the pages limit?
$max = $wp_query->max_num_pages;
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
// Add some parameters for the JS.
wp_localize_script(
'pbd-alp-load-posts',
'pbd_alp',
array(
'startPage' => $paged,
'maxPages' => $max,
'nextLink' => next_posts($max, false)
)
);
/* Localization JS */
$ct_blog_array = array( 'show_more' => __('Show More Posts', 'color-theme-framework'),
'loading_posts' => __('Loading Posts...', 'color-theme-framework'),
'no_posts' => __('No More Posts to Show', 'color-theme-framework')
);
wp_localize_script( 'pbd-alp-load-posts', 'ct_blog_localization', $ct_blog_array );
endif;
?>
<div class="container">
<div class="row">
<div id="primary" class="<?php echo $content_class.' '.$col_lg_push; ?>">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'color-theme-framework' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentythirteen_author_bio_avatar_size', 75),'',get_the_author_meta('display_name') ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<span style="display: block;"><strong><?php _e('Full Name: ', 'color-theme-framework') ?></strong><?php the_author_meta( 'first_name' ); ?> <?php the_author_meta( 'last_name' ); ?></span>
<span><strong><?php _e('Website: ', 'color-theme-framework') ?></strong><a href="<?php the_author_meta( 'user_url' ); ?>"><?php the_author_meta( 'user_url' ); ?></a></span><br />
<span><strong><?php _e('Info: ', 'color-theme-framework') ?></strong><?php the_author_meta( 'description' ); ?></span>
</div><!-- #author-description -->
</div><!-- #author-info -->
<?php endif; ?>
</header><!-- .archive-header -->
<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>
<div id="entry-blog">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php
// if post has Feature image
if(has_post_thumbnail()) : ?>
<div class="entry-thumb">
<?php
if ( has_post_format ( 'video' ) ) :
if ( $show_iframe ) :
ct_get_video_player();
else :
echo ct_get_big_thumb();
ct_get_video_icon();
endif;
elseif ( has_post_format ( 'audio' ) ) :
if ( $show_iframe ) :
ct_get_audio_player();
else :
echo ct_get_big_thumb();
ct_get_audio_icon();
endif;
else:
echo ct_get_big_thumb(); ?>
<?php endif; ?>
</div><!-- .entry-thumb -->
<?php endif; //has_post_thumbnail ?>
<h4 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'color-theme-framework' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
</h4><!-- .entry-title -->
<?php if ( $excerpt_lenght != 0 ) : ?>
<div class="entry-content">
<?php ct_get_post_excerpt($excerpt_lenght); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-meta clearfix ct-google-font">
<?php if ( $show_author ) :
ct_get_meta_author();
endif; ?>
<?php if ( $show_views ) :
ct_get_meta_views();
endif; ?>
<?php if ( $show_likes ) :
ct_get_meta_likes();
endif; ?>
<?php if ( $show_date ) :
ct_get_meta_date();
endif; ?>
<?php if ( $show_category ) :
ct_get_meta_category();
endif; ?>
<?php if ( $show_comments and comments_open() ) :
ct_get_meta_comments();
endif; ?>
<?php if ( $show_share ) :
echo ct_get_meta_share();
endif; ?>
<?php if ( $show_readmore ) : ?>
<div class="meta-readmore">
<?php ct_get_readmore(); ?>
</div><!-- .meta-readmore -->
<?php endif; ?>
</div><!-- .entry-meta -->
</article> <!-- /post ID -->
<?php endwhile; ?>
<!-- Begin Navigation -->
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div class="blog-navigation clearfix" role="navigation">
<?php if(function_exists('ct_pagination')) { ct_pagination(); } ?>
</div> <!-- blog-navigation -->
<?php endif; ?>
<!-- End Navigation -->
</div> <!-- .blog-entry -->
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- .col-lg-8 #content -->
<div id="secondary" class="widget-area <?php echo $sidebar_class.' '.$col_lg_pull; ?>" role="complementary">
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("ct_category_sidebar") ) : ?>
<?php endif; ?>
</div><!-- .col-lg-4 -->
</div><!-- .row -->
</div> <!-- .container -->
<?php get_footer(); ?>