| Server IP : 172.67.193.39 / Your IP : 216.73.216.217 Web Server : Apache System : Linux sr32.hostlife.net 6.12.0-124.52.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 2 09:06:54 EDT 2026 x86_64 User : golfb689 ( 1071) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/golfb689/fonbetbk.click/wp-content/themes/virtue_premium/ |
Upload File : |
<?php
/*
Template Name: Feature - Sidebar
*/
?>
<?php global $post; $headoption = get_post_meta( $post->ID, '_kad_page_head', true );
if ($headoption == 'flex') {
get_template_part('templates/flex', 'slider');
}
else if ($headoption == 'carousel') {
get_template_part('templates/imagecarousel', 'slider');
}
else if ($headoption == 'carouselslider') {
get_template_part('templates/carousel', 'slider');
}
else if ($headoption == 'rev') {
$above = get_post_meta( $post->ID, '_kad_shortcode_above_header', true ); if(isset($above) && $above != 'on') {
get_template_part('templates/rev', 'slider');
}
}
else if ($headoption == 'cyclone' || $headoption == 'ktslider') {
$above = get_post_meta( $post->ID, '_kad_shortcode_above_header', true ); if(isset($above) && $above != 'on') {
get_template_part('templates/cyclone', 'slider');
}
}
else if ($headoption == 'video') {
?>
<section class="postfeat pageheadfeature container">
<div class="videofit">
<?php global $post; $video = get_post_meta( $post->ID, '_kad_post_video', true ); echo $video; ?>
</div>
</section>
<?php
}
else if ($headoption == 'image') {
global $post; $height = get_post_meta( $post->ID, '_kad_posthead_height', true ); if (!empty($height)) $slideheight = $height; else $slideheight = 400;
$swidth = get_post_meta( $post->ID, '_kad_posthead_width', true ); if (!empty($swidth)) $slidewidth = $swidth; else $slidewidth = 1170;
$uselightbox = get_post_meta( $post->ID, '_kad_feature_img_lightbox', true ); if (!empty($uselightbox)) $lightbox = $uselightbox; else $lightbox = 'yes';
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full' );
$image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image
?>
<?php if($image == "") { $image = $img_url; } ?>
<div class="container pageheadfeature postfeat"><div class="imghoverclass img-margin-center">
<?php if($lightbox == 'yes') {?><a href="<?php echo $img_url ?>" rel="lightbox" class="lightboxhover"><?php } ?>
<img src="<?php echo $image ?>" alt="<?php the_title(); ?>" />
<?php if($lightbox == 'yes') {?></a><?php } ?>
</div></div>
<?php
}
?>
<div id="pageheader" class="titleclass">
<div class="container">
<?php get_template_part('templates/page', 'header'); ?>
</div><!--container-->
</div><!--titleclass-->
<div id="content" class="container">
<div class="row">
<div class="main <?php echo kadence_main_class(); ?>" id="ktmain" role="main">
<div class="entry-content" itemprop="mainContentOfPage">
<?php get_template_part('templates/content', 'page'); ?>
</div>
<?php global $virtue_premium; if(isset($virtue_premium['page_comments']) && $virtue_premium['page_comments'] == '1') { comments_template('/templates/comments.php');} ?>
</div><!-- /.main -->