Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/skins/default/templates/header-title.php |
<?php
/**
* The template to display the page title and breadcrumbs
*
* @package GLOBALLOGISTICS
* @since GLOBALLOGISTICS 1.0
*/
// Page (category, tag, archive, author) title
if ( globallogistics_need_page_title() ) {
globallogistics_sc_layouts_showed( 'title', true );
globallogistics_sc_layouts_showed( 'postmeta', true );
?>
<div class="top_panel_title sc_layouts_row sc_layouts_row_type_normal">
<div class="content_wrap">
<div class="sc_layouts_column sc_layouts_column_align_center">
<div class="sc_layouts_item">
<div class="sc_layouts_title sc_align_center">
<?php
// Post meta on the single post
if ( is_single() ) {
?>
<div class="sc_layouts_title_meta">
<?php
globallogistics_show_post_meta(
apply_filters(
'globallogistics_filter_post_meta_args', array(
'components' => join( ',', globallogistics_array_get_keys_by_value( globallogistics_get_theme_option( 'meta_parts' ) ) ),
'counters' => join( ',', globallogistics_array_get_keys_by_value( globallogistics_get_theme_option( 'counters' ) ) ),
'seo' => globallogistics_is_on( globallogistics_get_theme_option( 'seo_snippets' ) ),
), 'header', 1
)
);
?>
</div>
<?php
}
// Blog/Post title
?>
<div class="sc_layouts_title_title">
<?php
$globallogistics_blog_title = globallogistics_get_blog_title();
$globallogistics_blog_title_text = '';
$globallogistics_blog_title_class = '';
$globallogistics_blog_title_link = '';
$globallogistics_blog_title_link_text = '';
if ( is_array( $globallogistics_blog_title ) ) {
$globallogistics_blog_title_text = $globallogistics_blog_title['text'];
$globallogistics_blog_title_class = ! empty( $globallogistics_blog_title['class'] ) ? ' ' . $globallogistics_blog_title['class'] : '';
$globallogistics_blog_title_link = ! empty( $globallogistics_blog_title['link'] ) ? $globallogistics_blog_title['link'] : '';
$globallogistics_blog_title_link_text = ! empty( $globallogistics_blog_title['link_text'] ) ? $globallogistics_blog_title['link_text'] : '';
} else {
$globallogistics_blog_title_text = $globallogistics_blog_title;
}
?>
<h1 itemprop="headline" class="sc_layouts_title_caption<?php echo esc_attr( $globallogistics_blog_title_class ); ?>">
<?php
$globallogistics_top_icon = globallogistics_get_term_image_small();
if ( ! empty( $globallogistics_top_icon ) ) {
$globallogistics_attr = globallogistics_getimagesize( $globallogistics_top_icon );
?>
<img src="<?php echo esc_url( $globallogistics_top_icon ); ?>" alt="<?php esc_attr_e( 'Site icon', 'globallogistics' ); ?>"
<?php
if ( ! empty( $globallogistics_attr[3] ) ) {
globallogistics_show_layout( $globallogistics_attr[3] );
}
?>
>
<?php
}
echo wp_kses_data( $globallogistics_blog_title_text );
?>
</h1>
<?php
if ( ! empty( $globallogistics_blog_title_link ) && ! empty( $globallogistics_blog_title_link_text ) ) {
?>
<a href="<?php echo esc_url( $globallogistics_blog_title_link ); ?>" class="theme_button theme_button_small sc_layouts_title_link"><?php echo esc_html( $globallogistics_blog_title_link_text ); ?></a>
<?php
}
// Category/Tag description
if ( ! is_paged() && ( is_category() || is_tag() || is_tax() ) ) {
the_archive_description( '<div class="sc_layouts_title_description">', '</div>' );
}
?>
</div>
<?php
// Breadcrumbs
ob_start();
do_action( 'globallogistics_action_breadcrumbs' );
$globallogistics_breadcrumbs = ob_get_contents();
ob_end_clean();
globallogistics_show_layout( $globallogistics_breadcrumbs, '<div class="sc_layouts_title_breadcrumbs">', '</div>' );
?>
</div>
</div>
</div>
</div>
</div>
<?php
}