?AlkantarClanX12
| Current Path : /home/rankinh/reunionmag/wp-content/themes/reunionmag/library/templates/page/ |
| Current File : /home/rankinh/reunionmag/wp-content/themes/reunionmag/library/templates/page/page_with__sidebar.php |
<?php
/**
* The Default Page Template -- With Sidebar page template
*
*/
?>
<?php
$rubik_option = rubik_core::bk_get_global_var('rubik_option');
$pageID = get_the_ID();
$sidebar = $rubik_option['bk_page_sidebar_select'];
$sidebarPos = $rubik_option['bk_page_sidebar_position'];
$sidebarSticky = $rubik_option['bk_page_sidebar_sticky'];
$featuredImage = $rubik_option['bk_page_feat_img'];
$sidebar_option = '';
if(!is_active_sidebar($sidebar)) {
$sidebar_option = 'disable';
}
?>
<?php ?>
<div class="wp-page bkwrapper container has-sb bksection <?php if($sidebarPos == 'left') echo('has-left-sidebar');?>">
<div class="row">
<div class="content-wrap <?php if ($sidebar_option != 'disable') {echo 'col-md-8';}else {echo 'col-md-12';}?>">
<div class="page-title-wrapper">
<div class="module-title">
<h2 itemprop="name"><span><?php the_title(); ?></span></h2>
</div>
</div>
<?php
if ( ($featuredImage != 0) && rubik_core::bk_check_has_post_thumbnail($pageID)) {
echo '<div class="entry-thumb page-entry-thumb">';
echo get_the_post_thumbnail($pageID, 'rubik-1000-540');
echo '</div>';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
<div class="post-content"><?php the_content(); ?></div>
</article>
<?php wp_link_pages( array(
'before' => '<div class="post-page-links">',
'pagelink' => '<span>%</span>',
'after' => '</div>',
)
);
?>
<?php
if (function_exists("rubik_paginate")) {
rubik_paginate();
}
if($rubik_option['bk-comment-sw']) {
comments_template();
}
?>
</div>
<?php if ($sidebar_option != 'disable') {?>
<div class='sidebar col-md-4'>
<div class="sidebar-wrap <?php if($sidebarSticky == 'enable') echo 'stick';?>" id="rubik-default-page-template-sidebar">
<?php dynamic_sidebar( $sidebar );?>
</div>
</div>
<?php }?>
</div>
</div>