Sindbad~EG File Manager

Current Path : /home/escuelai/www/wp-content/themes/coursector/
Upload File :
Current File : /home/escuelai/www/wp-content/themes/coursector/page-r.php

<?php
/**
 * Template Name: Page Right Sidebar
 * The main template file for display page.
 *
 * @package WordPress
*/

/**
*	Get Current page object
**/
if(!is_null($post))
{
	$page_obj = get_page($post->ID);
}

$current_page_id = '';

/**
*	Get current page id
**/

if(!is_null($post) && isset($page_obj->ID))
{
    $current_page_id = $page_obj->ID;
}

$page_style = 'Right Sidebar';
$page_sidebar = get_post_meta($current_page_id, 'page_sidebar', true);

if(empty($page_sidebar))
{
	$page_sidebar = 'Page Sidebar';
}

get_header(); 

$page_sidebar = sanitize_title($page_sidebar);
?>

<?php
    //Include custom header feature
	get_template_part("/templates/template-header");
?>

    <div class="inner">
    
    <!-- Begin main content -->
    <div class="inner_wrapper">
        	
        <div class="sidebar_content full_width nopadding">
        	<div class="sidebar_content page_content <?php if(!is_active_sidebar($page_sidebar)) { ?>full_width<?php } ?>">
	        	 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
				 	<?php the_content(); ?>
				 <?php endwhile; 
					 wp_link_pages(
		    			array(
							'before'           => '<br class="clear"/><p>' . esc_html__( 'Pages:', 'coursector' ),
							'after'            => '</p>',
						)
					);
				 ?>
				 
				 <?php
				if (comments_open($post->ID)) 
				{
				?>
				<div class="fullwidth_comment_wrapper sidebar themeborder">
					<?php comments_template( '', true ); ?>
				</div>
				<?php
				}
				?>
        	</div>
        	
        	<?php 
				if (is_active_sidebar($page_sidebar)) 
				{ 
			?>	
    			<div class="sidebar_wrapper">
    		
	    			<div class="sidebar_top"></div>
	    		
	    			<div class="sidebar">
	    			
	    				<div class="content">
	
			    	    	<ul class="sidebar_widget">
			    	    		<?php dynamic_sidebar($page_sidebar); ?>
			    	    	</ul>
	    				
	    				</div>
	    		
	    			</div>
	    			<br class="clear"/>
	    	
	    			<div class="sidebar_bottom"></div>
    			</div>
    		<?php 
	    		}
	    	?>
        </div>
    
    </div>
    <!-- End main content -->
    </div>
    <br class="clear"/>
</div>
<?php get_footer(); ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists