git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@4 c22fe52d-42d7-ba4f-95f7-33effcf65713
75 lines
1.7 KiB
PHP
75 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* @package WordPress
|
|
* @subpackage Progressio
|
|
*/
|
|
|
|
$layout_type = wpv_post_default('layout-type', 'default-body-layout');
|
|
|
|
switch($layout_type) {
|
|
case 'left-only':
|
|
define('WPV_LAYOUT', 'left-sidebar');
|
|
break;
|
|
case 'right-only':
|
|
define('WPV_LAYOUT', 'right-sidebar');
|
|
break;
|
|
case 'two-sidebars':
|
|
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 if (0) : ?>
|
|
<header class="page-header">
|
|
|
|
<h1><?php the_title() ?> <?php echo $the_format; ?></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 if($layout_type == 'left-only' || $layout_type == 'left-right'): ?>
|
|
<aside class="left">
|
|
<?php get_sidebar('left'); ?>
|
|
</aside>
|
|
<?php endif ?>
|
|
|
|
<div class="single-post-wrapper <?php echo $layout_type?>">
|
|
<div class="loop-wrapper clearfix full">
|
|
<div class="page-content post-head clearfix">
|
|
<?php wpv_post_template(array('audio', 'video')); ?>
|
|
<div class="clearboth">
|
|
<?php comments_template(); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?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(); ?>
|