| Server IP : 119.59.104.26 / Your IP : 216.73.216.226 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/MIXThemes/templates/header/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
// Posts Only
if ( ! TIELABS_HELPER::is_supported_post_type() ){
return;
}
// Get the current post
the_post();
// Post Layout
if( tie_get_object_option( 'post_layout', 'cat_post_layout', 'tie_post_layout' ) ){
$post_layout = tie_get_object_option( 'post_layout', 'cat_post_layout', 'tie_post_layout' );
$post_layout = ! empty( $post_layout ) ? $post_layout : 1;
// Post title area
if( $post_layout == 3 || $post_layout == 7 ){
echo '
<div class="container">
<div class="container-wrapper fullwidth-entry-title">';
TIELABS_HELPER::get_template_part( 'templates/single-post/head' );
echo '
</div>
</div>
';
}
elseif( $post_layout == 4 || $post_layout == 5 || $post_layout == 8 ){
// Get the parallax js file
wp_enqueue_script( 'tie-js-parallax' );
# Normal Width layout
$before_featured = $after_featured = '';
$featured_area_class = 'full-width-area tie-parallax';
$inner_featured_1 = '<div class="container">';
$inner_featured_2 = '</div><!-- .container /-->';
$bg_overlay_effect = '<div class="thumb-overlay"></div><!-- .thumb-overlay /-->';
# Full Width layout
if( $post_layout == 5 ){
$featured_area_class = 'container-wrapper tie-parallax';
$before_featured = '<div class="container">';
$after_featured = '</div><!-- .container /-->';
$inner_featured_1 = $inner_featured_2 = '';
}
// Get the custom featured area bg
if( tie_get_object_option( 'featured_custom_bg', 'cat_featured_custom_bg', 'tie_featured_custom_bg' ) ){
$featured_img = tie_get_object_option( 'featured_custom_bg', 'cat_featured_custom_bg', 'tie_featured_custom_bg' );
}
elseif( tie_get_object_option( 'featured_use_fea', 'cat_featured_use_fea', 'tie_featured_use_fea' ) && ( tie_get_object_option( 'featured_use_fea', 'cat_featured_use_fea', 'tie_featured_use_fea' ) != 'no' ) && has_post_thumbnail() ){
$featured_img = tie_thumb_src( 'full' );
}
$featured_bg = ! empty( $featured_img ) ? 'style="background-image: url('. $featured_img .')"' : '';
if( $post_layout == 8 ){
$bg_overlay_effect = '';
$featured_bg = '';
$featured_area_class = 'full-width-area';
if( ! empty( $featured_img ) ){
$featured_color = tie_get_object_option( 'featured_bg_color', 'cat_featured_bg_color', 'tie_featured_bg_color' );
$featured_color = ! empty( $featured_color ) ? $featured_color : '';
echo'
<style scoped type="text/css">
#tie-container{
background-color: '. $featured_color .' !important;
background-image: url('. $featured_img .') !important;
}
</style>
';
}
}
echo
$before_featured.
'<div '.$featured_bg.' class="fullwidth-entry-title single-big-img '. $featured_area_class .'">'
.$bg_overlay_effect
.$inner_featured_1;
TIELABS_HELPER::get_template_part( 'templates/single-post/head' );
echo
$inner_featured_2 .'
</div><!-- .single-big-img /-->
'.$after_featured;
}
// Post featured area
if( $post_layout == 6 || $post_layout == 7 ){
$before_featured = $after_featured = '';
if( tie_get_postdata( 'tie_post_head' ) != 'slider' && tie_get_postdata( 'tie_post_head' ) != 'map' ){
$before_featured = '<div class="container">';
$after_featured = '</div><!-- .container /-->';
}
echo ( $before_featured );
TIELABS_HELPER::get_template_part( 'templates/single-post/featured' );
echo ( $after_featured );
}
}
rewind_posts();