mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-05-05 07:31:13 +08:00
* fixed : Language Label in Translation Files * fixed : the author name links to the post itself * fixed : Featured post slider controls (arrows) overflow content container when blog heading is disabled * fixed : Header image alt attribute is empty. * fixed : Change Default Widget Names and CSS id properties. Could be in collision with some plugins * added : Featured posts : new option to display the full content (instead of the excerpt) of the featured posts. Modified template : content-featured.php. * added : Featured posts : swipe gesture supported on mobile devices like tablets and smartphones * added : Customizer : Pre setup step when adding a new widget zone or social icons. * improved : Customizer user interface have been improved for the social links and the widget zones. It's now easier to drag, edit and remove items. * improved : Introduced a pluggable function ( hu_print_placeholder_thumb() )to print the placeholder thumbnail. Modified templates : content-featured.php, content.php, parts/related-posts.php * updated : jQuery FlexSider to v2.6.0 (latest). Support swipe touch navigation * changed : Header widget and full width footer widget are now enabled by default * changed : The footer-ads option has been moved in the Footer Design section. The title and description of this setting have been clarified.
58 lines
No EOL
2.4 KiB
PHP
58 lines
No EOL
2.4 KiB
PHP
<div class="page-title pad group">
|
|
|
|
<?php if ( is_home() && hu_is_checked('blog-heading-enabled') ) : ?>
|
|
<h2><?php echo hu_blog_title(); ?></h2>
|
|
<?php elseif ( is_single() ): ?>
|
|
<ul class="meta-single group">
|
|
<li class="category"><?php the_category(' <span>/</span> '); ?></li>
|
|
<?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?>
|
|
<li class="comments"><a href="<?php comments_link(); ?>"><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
|
|
<?php elseif ( is_page() ): ?>
|
|
<h2><?php echo hu_page_title(); ?></h2>
|
|
|
|
<?php elseif ( is_search() ): ?>
|
|
<h1>
|
|
<?php if ( have_posts() ): ?><i class="fa fa-search"></i><?php endif; ?>
|
|
<?php if ( ! have_posts() ): ?><i class="fa fa-exclamation-circle"></i><?php endif; ?>
|
|
<?php $search_results=$wp_query->found_posts;
|
|
if ($search_results==1) {
|
|
echo $search_results.' '.__('Search result','hueman');
|
|
} else {
|
|
echo $search_results.' '.__('Search results','hueman');
|
|
}
|
|
?>
|
|
</h1>
|
|
|
|
<?php elseif ( is_404() ): ?>
|
|
<h1><i class="fa fa-exclamation-circle"></i><?php _e('Error 404.','hueman'); ?> <span><?php _e('Page not found!','hueman'); ?></span></h1>
|
|
|
|
<?php elseif ( is_author() ): ?>
|
|
<?php $author = get_userdata( get_query_var('author') );?>
|
|
<h1><i class="fa fa-user"></i><?php _e('Author:','hueman'); ?> <span><?php echo $author->display_name;?></span></h1>
|
|
|
|
<?php elseif ( is_category() ): ?>
|
|
<h1><i class="fa fa-folder-open"></i><?php _e('Category:','hueman'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>
|
|
|
|
<?php elseif ( is_tag() ): ?>
|
|
<h1><i class="fa fa-tags"></i><?php _e('Tagged:','hueman'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
|
|
|
|
<?php elseif ( is_day() ): ?>
|
|
<h1><i class="fa fa-calendar"></i><?php _e('Daily Archive:','hueman'); ?> <span><?php echo get_the_time('F j, Y'); ?></span></h1>
|
|
|
|
<?php elseif ( is_month() ): ?>
|
|
<h1><i class="fa fa-calendar"></i><?php _e('Monthly Archive:','hueman'); ?> <span><?php echo get_the_time('F Y'); ?></span></h1>
|
|
|
|
<?php elseif ( is_year() ): ?>
|
|
<h1><i class="fa fa-calendar"></i><?php _e('Yearly Archive:','hueman'); ?> <span><?php echo get_the_time('Y'); ?></span></h1>
|
|
|
|
<?php else: ?>
|
|
<?php if ( ! is_home() && ! hu_is_checked('blog-heading-enabled') ) : ?>
|
|
<h2><?php the_title(); ?></h2>
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div><!--/.page-title-->
|