HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MBruinsma1/dilyanculthalion.nl/wwwroot/wp-content/themes/portfilo/page.php
<?php
/**
 * The template for displaying all pages
 *
 * Portfilo theme functions and definitions
 * @package Portfilo
 * @author August Infotech
 */
get_header(); 

global $wp_query;
$portfilo_post_id = $wp_query->get_queried_object_id();

switch ( get_post_meta($portfilo_post_id, 'Layout', true) ) {	
	case 'left_sidebar':
		$portfilo_class = 'left';
        break;
	case 'right_sidebar':
		$portfilo_class = 'right';
		break;
	case 'both_sidebar':
		$portfilo_class = 'both';
		break;
	default:
		$portfilo_class = 'full';
		break;
}
 
if($portfilo_class == 'left'){  
    $portfilo_right_class = 'col-xs-12 col-sm-9 col-md-9 pull-right';
    $portfilo_left_class = 'col-xs-12 col-sm-3 col-md-3 pull-left';
    $portfilo_class = 'left';
}     
elseif($portfilo_class == 'right'){    
    $portfilo_right_class = 'col-xs-12 col-sm-9 col-md-9';
    $portfilo_left_class = 'col-xs-12 col-sm-3 col-md-3';
    $portfilo_class = 'right';
}
elseif($portfilo_class == 'both'){    
    $portfilo_center_class = 'col-xs-12 col-sm-6 col-md-6';
    $portfilo_left_class = 'col-xs-12 col-sm-3 col-md-3';
    $portfilo_class = 'both';    
} 
else{	
	$portfilo_right_class = '';
	$portfilo_class = 'full';
}
?>
<div class="mtop"></div>
<section class="container">
    <?php
	if ( is_front_page() ) {	
        get_template_part( 'libs/content', 'homepage' );    	
	}
	else {  ?>
	
        <!-- about section -->
        <section class="about-section">
        
			<?php if($portfilo_class) {
			
				if($portfilo_class == 'both') {
				
					echo '<article class="' .$portfilo_left_class. '">';
                            echo'<aside>';
                            	echo'<div class="sidebar">';
                                        get_sidebar();
                                echo '</div>';
                            echo '</aside>';
	                echo'</article>';
	                    
                    echo'<article class="' .$portfilo_center_class.'">';
							echo '<section class="row">';
                				echo '<div class="about-overview">';
                						get_template_part( 'libs/content', 'page' );
                				echo '</div>';
                			echo '</section>';
						echo '</article>';
	                
				} 
				
				else {
				
					echo'<article class="' .$portfilo_right_class.'">';
							echo '<section class="row">';
                    			echo '<div class="about-overview">';
                    						get_template_part( 'libs/content', 'page' );
                    			echo '</div>';
                    		echo '</section>';
					echo '</article>';
				}
			
			}				
			
			if($portfilo_class) { 
			
					if($portfilo_class == 'full') {
						echo '';
					}
					else {
						
						echo '<article class="' .$portfilo_left_class. '">';
	                            echo'<aside>';
	                                echo'<div class="sidebar">';
	                                	get_template_part( 'sidebar' );
	                                echo '</div>';
	                            echo '</aside>';
	                    echo'</article>';
	                    
					}
	               
            } 
 
			?>			
		
        <!-- sidebar section end -->
        </section>
        <!-- about section end -->
<?php 
	} 
?>
</section>

<?php get_footer(); ?>