Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
<?php

/* $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     Opal  Team <*****@*****.** >
 * @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
 */
$object = new WPO_Template();
?>
<div id="wpo-portfolio">
    <p class="wpo_section ">
        <?php 
$mb->the_field('count');
?>
        <label for="pf_number">Pages show at most:</label>
        <input type="text" name="<?php 
$mb->the_name();
?>
" id="pf_number" value="<?php 
$mb->the_value();
?>
" />
    </p>

    <p class="wpo_section">
Exemplo n.º 3
0
<?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()) {
Exemplo n.º 4
0
 function wpo_share_box($layout = '', $args = array())
 {
     $default = array('position' => 'top', 'animation' => 'true');
     $args = wp_parse_args((array) $args, $default);
     $template = new WPO_Template();
     $template->getShareBox($args);
 }