git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@4 c22fe52d-42d7-ba4f-95f7-33effcf65713
81 lines
2.0 KiB
PHP
81 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* @package WordPress
|
|
* @subpackage Progressio
|
|
*/
|
|
|
|
$layout_type = wpv_post_default('layout-type', 'default-body-layout');
|
|
if(empty($layout_type)) {
|
|
$layout_type = 'full';
|
|
}
|
|
|
|
switch($layout_type) {
|
|
case 'left-only':
|
|
define('WPV_LAYOUT', 'left-sidebar');
|
|
break;
|
|
case 'right-only':
|
|
define('WPV_LAYOUT', 'right-sidebar');
|
|
break;
|
|
case 'left-right':
|
|
define('WPV_LAYOUT', 'two-sidebars');
|
|
break;
|
|
case 'full':
|
|
define('WPV_LAYOUT', 'no-sidebars');
|
|
break;
|
|
}
|
|
|
|
get_header(); ?>
|
|
|
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
<?php $slug = the_slug(); //sanitize_title( get_the_title(), $fallback_title ); ?>
|
|
|
|
<?php if(!!wpv_post_default('show_page_header', 'has-page-header')): ?>
|
|
<header class="page-header <?php echo $slug; ?>">
|
|
<h1><?php the_title();?></h1>
|
|
<?php
|
|
$page_desc = get_post_meta(get_the_id(), 'description', true);
|
|
if(!empty($page_desc)):
|
|
?>
|
|
<div class="description"><?php echo $page_desc?></div>
|
|
<?php endif ?>
|
|
</header>
|
|
<?php endif ?>
|
|
|
|
<?php
|
|
global $wpv_has_header_sidebars;
|
|
if( $wpv_has_header_sidebars) {
|
|
get_sidebar('header');
|
|
}
|
|
?>
|
|
|
|
<div class="clearfix page-wrapper <?php echo $slug; ?>">
|
|
<?php if($layout_type == 'left-only' || $layout_type == 'left-right'): ?>
|
|
<aside class="left">
|
|
<?php get_sidebar('left'); ?>
|
|
</aside>
|
|
<?php endif ?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class($layout_type); ?>>
|
|
<?php $has_image = po_page_image() ?>
|
|
<div class="page-content <?php echo $has_image?>">
|
|
<?php the_content(); ?>
|
|
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wpv' ), 'after' => '</div>' ) ); ?>
|
|
|
|
<?php wpv_share('page'); ?>
|
|
</div><!-- .entry-content -->
|
|
|
|
<?php comments_template( '', true ); ?>
|
|
</article>
|
|
|
|
<?php if($layout_type == 'right-only' || $layout_type == 'left-right'): ?>
|
|
<aside class="right">
|
|
<?php get_sidebar('right'); ?>
|
|
</aside>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
<?php endwhile ?>
|
|
|
|
<?php get_footer(); ?>
|