function wpo_get_pageconfig() { die('page config here'); global $wp_query; $pageconfig = get_post_meta($wp_query->get_queried_object_id(), 'wpo_pageconfig', true); $lt = !empty($pageconfig['page_layout']) || $pageconfig['page_layout'] != '' ? $pageconfig['page_layout'] : '0-1-0'; $maincontent = array(); $config = array(); $config['breadcrumb'] = $pageconfig['breadcrumb']; $config['right-sidebar']['widget'] = $pageconfig['right_sidebar']; $config['left-sidebar']['widget'] = $pageconfig['left_sidebar']; $config['showtitle'] = $pageconfig['showtitle']; $obj = new WPO_Template(); $config = $obj->configLayout($lt, $config); return $config; }
<?php /** * $Desc * * @version $Id$ * @package wpbase * @author WPOpal Team <wpopal@gmail.com, support@wpopal.com> * @copyright Copyright (C) 2014 wpopal.com. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * @website http://www.wpopal.com * @support http://www.wpopal.com/support/forum.html */ $template = new WPO_Template(); $config = $template->configLayout(of_get_option('single-layout', '0-1-0')); get_header(); ?> <?php wpo_breadcrumb(); ?> <section id="wpo-mainbody" class="container wpo-mainbody"> <div class="row"> <!-- MAIN CONTENT --> <div id="wpo-content" class="wpo-content <?php echo $config['main']['class']; ?> "> <?php if (have_posts()) {