Beispiel #1
0
function training_wpo_cst_customize_register($wp_customize)
{
    $readmore = training_wpo_theme_options('post_readmore');
    $wp_customize->get_setting('blogname')->transport = 'postMessage';
    $wp_customize->get_setting('blogdescription')->transport = 'postMessage';
    $wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
}
 function WPO_jsWoocommerce()
 {
     wp_dequeue_script('wc-add-to-cart');
     wp_register_script('wc-add-to-cart', WPO_THEME_URI . '/js/add-to-cart.js', array('jquery'));
     wp_localize_script('wc-add-to-cart', 'woocommerce_localize', array('cart_success' => training_wpo_theme_options('wc_cartnotice_text', esc_html__('Success: Your item has been added to cart!', 'training'))));
     wp_enqueue_script('wc-add-to-cart');
     wp_register_script('noty_js', WPO_THEME_URI . '/js/jquery.noty.packaged.min.js', array('jquery'));
     wp_enqueue_script('noty_js');
 }
Beispiel #3
0
 function training_wpo_woo_styles()
 {
     $current = training_wpo_theme_options('skin', 'default');
     if ($current == 'default') {
         $path = WPO_THEME_URI . '/css/woocommerce.css';
     } else {
         $path = WPO_THEME_URI . '/css/skins/' . $current . '/woocommerce.css';
     }
     wp_enqueue_style('wpo-woocommerce', $path, 'woocommerce_frontend_styles-css', WPO_THEME_VERSION, 'all');
 }
function training_wpo_body_class($classes)
{
    foreach ($classes as $key => $value) {
        if ($value == 'boxed' || $value == 'default') {
            unset($classes[$key]);
        }
    }
    $classes[] = training_wpo_theme_options('configlayout');
    $classes[] = 'wpo-animate-scroll';
    return $classes;
}
<?php

if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
$column = (int) training_wpo_theme_options('gallery-items-show', 3);
$post_per_page = (int) training_wpo_theme_options('gallery-archive-items', 9);
$args = array('post_type' => 'gallery', 'paged' => $paged, 'posts_per_page' => $post_per_page);
$gallerys = new WP_Query($args);
$col = floor(12 / $column);
$smcol = $col > 4 ? 6 : $col;
$class_column = 'col-lg-' . $col . ' col-md-' . $col . ' col-sm-' . $smcol;
if (have_posts()) {
    echo '<div class="row">';
    while (have_posts()) {
        the_post();
        echo '<div class="' . esc_attr($class_column) . '">';
        get_template_part('templates/gallery/item');
        echo '</div>';
    }
    echo '</div>';
    training_wpo_pagination_nav($post_per_page, $gallerys->found_posts, $gallerys->max_num_pages);
} else {
    get_template_part('templates/none');
}
Beispiel #6
0
    ?>
&amp;media=<?php 
    echo urlencode($full_image[0]);
    ?>
" target="_blank" title="<?php 
    echo esc_html__('Share on Pinterest', 'training');
    ?>
">
				<i class="fa fa-pinterest"></i>
			</a>
 
		<?php 
}
?>
		<?php 
if ((bool) training_wpo_theme_options('mail_share_blog', true)) {
    ?>
 
			<a class="bo-social-envelope"  data-toggle="tooltip" data-placement="<?php 
    echo esc_attr($args['position']);
    ?>
" data-animation="<?php 
    echo esc_attr($args['animation']);
    ?>
"  data-original-title="Email" href="mailto:?subject=<?php 
    the_title();
    ?>
&amp;body=<?php 
    the_permalink();
    ?>
" title="<?php 
Beispiel #7
0
					<?php 
$copyright_text = training_wpo_theme_options('copyright_text', '');
if (!empty($copyright_text)) {
    echo do_shortcode($copyright_text);
} else {
    echo 'Copyright &#169; 2015 - <a>Chris Verna</a> - All rights reserved.<br>';
}
?>
				</address>

				<?php 
if (training_wpo_theme_options('image-payment', '')) {
    ?>
					<div class="payment">
						<img src="<?php 
    echo esc_url(training_wpo_theme_options('image-payment', ''));
    ?>
" />
					</div>
				<?php 
}
?>

			</div>
			<div class="noted-tag">
				<p>Designed by <a href="https://www.notedcontent.com" target="_blank">NOTED.</a></p>
			</div>
		</div>
	</div>

</section>
/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2015 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
 */
global $trainingconfig;
$trainingconfig = training_wpo_gallery_page_config();
$column = training_wpo_theme_options('gallery-archive-column', 4);
$class = floor(12 / $column);
get_header($wpoEngine->getHeaderLayout());
?>
  
<?php 
do_action('training_wpo_layout_breadcrumbs_render');
?>
   
  
<?php 
do_action('training_wpo_layout_template_before');
?>
        <?php 
if (have_posts()) {
    ?>
Beispiel #9
0
	<div class="featured">
		<?php 
    while ($featured->have_posts()) {
        $featured->the_post();
        ?>
			<?php 
        get_template_part('content-featured');
        ?>
		<?php 
    }
    ?>
	
	</div><!--/.featured-->
	
<?php 
} elseif (is_home() && !is_paged() && training_wpo_theme_options('featured-posts-count') != '0') {
    // Show slider if posts are not 1 or 0
    ?>
	
	<script type="text/javascript">
		// Check if first slider image is loaded, and load flexslider on document ready
		jQuery(document).ready(function(){
		 var firstImage = jQuery('#flexslider-featured').find('img').filter(':first'),
			checkforloaded = setInterval(function() {
				var image = firstImage.get(0);
				if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
					clearInterval(checkforloaded);
					
					jQuery('#flexslider-featured').flexslider({
						animation: "slide",
						useCSS: false, // Fix iPad flickering issue
?>
" <?php 
post_class();
?>
>
           <div class="post-container">
              <div class="entry-content no-border">
                 <?php 
the_content();
?>
                 <?php 
wp_link_pages();
?>
              </div>
              <?php 
if (training_wpo_theme_options('show-share-portfolio', true)) {
    ?>
                 <div class="post-share">
                  <div class="row">
                    <div class="col-sm-12">
                       <div class="pull-left">
                          <?php 
    training_wpo_share_box();
    ?>
                       </div>      
                    </div>
                  </div>
              </div>
              <?php 
}
?>
Beispiel #11
0
/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2015 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
 */
global $trainingconfig;
$trainingconfig = $wpoEngine->getPostConfig();
get_header(training_wpo_theme_options('headerlayout'));
?>
  
<?php 
do_action('training_wpo_layout_breadcrumbs_render');
?>
   
  
<?php 
do_action('training_wpo_layout_template_before');
?>
        <?php 
if (have_posts()) {
    ?>
         
                <?php 
Beispiel #12
0
                            </div>
                        <?php 
}
?>
                    </div>
                    
                    <!-- MENU -->
                    <div class="wpo-mainmenu-wrap col-lg-10 col-md-10 col-sm-12 col-xs-12 position-static">
                        
                        <div class="mainmenu-content-wapper">
                            <div class="mainmenu-content text-right">
                                <nav id="wpo-mainnav" data-duration="<?php 
echo training_wpo_theme_options('megamenu-duration', 400);
?>
" class="style-dark padding-large position-static  wpo-megamenu <?php 
echo training_wpo_theme_options('magemenu-animation', 'slide');
?>
 animate navbar navbar-mega" role="navigation">
                                    
                                     <?php 
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse space-padding-0', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => class_exists("Wpo_Megamenu") ? new Wpo_Megamenu() : new Training_Wpo_bootstrap_navwalker());
wp_nav_menu($args);
?>
                                </nav>
                            </div>
                        </div>    
                       
                    </div>    
                    <!-- //MENU -->
                    <div class="box-quick-action hidden-xs hidden-sm">
                        <div class="search_form hidden-input">
Beispiel #13
0
<?php

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     Opal  Team <*****@*****.** >
 * @copyright  Copyright (C) 2015 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http:/wpopal.com
 * @support  http://wpopal.com
 */
global $trainingconfig;
get_header(training_wpo_theme_options('headerlayout', ''));
if (is_single()) {
    $trainingconfig = training_wpo_config_layout(training_wpo_theme_options('woocommerce-single-layout', 'fullwidth'));
    wc_get_template('single-product.php', array('config' => $trainingconfig));
} else {
    $trainingconfig = training_wpo_config_layout(training_wpo_theme_options('woocommerce-archive-layout', 'fullwidth'));
    wc_get_template('archive-product.php', array('config' => $trainingconfig));
}
get_footer();
Beispiel #14
0
<?php

if (training_wpo_theme_options('preloader', 0) == '1') {
    ?>
  <div id="jpreContent" >
            <div id="jprecontent-inner">
                <div class="site-logo">
                    <?php 
    $preloader_logo = training_wpo_theme_options('image-preloader', get_template_directory_uri() . '/images/logo-preloader.png');
    ?>
                    <?php 
    if (!empty($preloader_logo)) {
        ?>
                        <img src="<?php 
        echo esc_url($preloader_logo);
        ?>
" alt="<?php 
        bloginfo('name');
        ?>
" />
                    <?php 
    }
    ?>
                </div>
                <div class="preloader-wrapper big active">
                  <div class="spinner-layer spinner-blue-only">
                    <div class="circle-clipper left">
                      <div class="circle"></div>
                    </div><div class="gap-patch">
                      <div class="circle"></div>
                    </div><div class="circle-clipper right">
<?php

global $trainingconfig;
?>
 
<?php 
if ($trainingconfig['left-sidebar']['show']) {
    $pos = empty($trainingconfig['left-sidebar']) ? training_wpo_theme_options('left-sidebar') : $trainingconfig['left-sidebar']['widget'];
    ?>
	<div class="<?php 
    echo esc_attr($trainingconfig['left-sidebar']['class']);
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
 
		</div>
	</div>
<?php 
}
?>
 
<?php

global $portfolio, $trainingconfig, $column;
if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
if (is_page()) {
    $options = array('portfolio_number' => 8, 'portfolio_style' => '', 'portfolio_columns' => 2);
    $trainingconfig = array_merge($options, $trainingconfig);
    $style = $trainingconfig['portfolio_style'];
    $post_per_page = $trainingconfig['portfolio_number'];
    $column = $trainingconfig['portfolio_columns'];
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
} else {
    $style = training_wpo_theme_options('portfolio-style', 'style-1');
    $column = (int) training_wpo_theme_options('portfolio-items-show', 4);
    $post_per_page = get_option('posts_per_page');
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
}
if (have_posts()) {
    get_template_part('templates/portfolio/portfolio', $style);
    training_wpo_pagination_nav($post_per_page, $portfolio->found_posts, $portfolio->max_num_pages);
} else {
    get_template_part('templates/elements/none');
}
Beispiel #17
0
 function training_wpo_print_style_footer()
 {
     $footer = training_wpo_theme_options('footer-style', 'default');
     global $trainingconfig;
     if ('page' == get_post_type()) {
         if ($trainingconfig['footer_skin'] && $trainingconfig['footer_skin'] != 'global') {
             $footer = $trainingconfig['footer_skin'];
         }
     }
     if ($footer != 'default') {
         $shortcodes_custom_css = get_post_meta($footer, '_wpb_shortcodes_custom_css', true);
         if (!empty($shortcodes_custom_css)) {
             echo '<style>
           ' . $shortcodes_custom_css . '
         </style>
       ';
         }
     }
 }
<?php

global $trainingconfig;
$pos = training_wpo_theme_options('woocommerce-archive-right-sidebar');
?>

<?php 
if ($trainingconfig['right-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($trainingconfig['right-sidebar']['class']);
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-right">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
		</div>
	</div>
<?php 
}
									</div>    
								</div>    
								<!-- //MENU -->

								<!-- LOGO -->
								<div id="logo-inner" class="logo-in-theme text-center col-xs-12">
									<?php 
if (training_wpo_theme_options('logo')) {
    ?>
									<div class="logo">
										<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
">
											<img src="<?php 
    echo esc_url_raw(training_wpo_theme_options('logo'));
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
">
										</a>
									</div>
									<?php 
} else {
    ?>
									<div class="logo logo-theme">
										<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
">
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <wpopal@gmail.com, support@wpopal.com>
 * @copyright  Copyright (C) 2015 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
 */
?>

 
	<div class="post-container">
		<header class="header-title clearfix">
			<?php 
if (training_wpo_theme_options('post-title')) {
    ?>
				<h3 class="entry-title pull-left">
					<?php 
    the_title();
    ?>
				</h3>
			<?php 
}
?>

			<div class="pull-right">
			    <?php 
if (get_previous_post_link() != '') {
    ?>
			    <div class="btn btn-link">
">
            <?php 
/**
 * woocommerce_before_shop_loop_item_title hook
 *
 * @hooked woocommerce_show_product_loop_sale_flash - 10
 * @hooked woocommerce_template_loop_product_thumbnail - 10
 */
remove_action('woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10);
do_action('woocommerce_before_shop_loop_item_title');
?>
        </a>

        <div class="button-action button-groups clearfix">
             <?php 
if (training_wpo_theme_options('is-quickview', true)) {
    ?>
                <div class="quick-view">
                    <a href="#" class="quickview button btn-primary btn-sm btn-outline" data-productslug="<?php 
    echo esc_attr($product->post->post_name);
    ?>
" data-toggle="modal" data-target="#wpo_modal_quickview">
                       <span><i class="fa fa-eye"> </i></span>
                    </a>
                </div>
            <?php 
}
?>

            <?php 
if (class_exists('YITH_WCWL')) {
<?php

global $trainingconfig;
$pos = esc_attr(training_wpo_theme_options('woocommerce-archive-left-sidebar'));
?>
 
<?php 
if ($trainingconfig['left-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($trainingconfig['left-sidebar']['class']);
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
 
		</div>
	</div>
<?php 
}
?>
 
     */
    //woocommerce_show_messages();
    woocommerce_catalog_ordering();
    ?>
            </div>
        </div>
	</div>
    <?php 
    woocommerce_product_loop_start();
    ?>

        <?php 
    woocommerce_product_subcategories();
    ?>
        <?php 
    $style = training_wpo_theme_options('wc_listgrid', 'product');
    if (isset($_COOKIE['wpo_cookie_layout']) && $_COOKIE['wpo_cookie_layout'] == 'product') {
        $layout = 'product';
    } elseif (isset($_COOKIE['wpo_cookie_layout']) && $_COOKIE['wpo_cookie_layout'] == 'list') {
        $layout = 'product-list';
    } else {
        $layout = $style;
    }
    ?>
        <?php 
    while (have_posts()) {
        the_post();
        ?>
            <?php 
        wc_get_template_part('content', $layout);
        ?>
Beispiel #24
0
,media: '<?php 
    echo wp_get_attachment_url(get_post_thumbnail_id($post->ID));
    ?>
'<?php 
}
?>
				}
			},
			click: function(api, options){
				api.simulateClick();
				api.openPopup('pinterest');
			}
		});
		
		<?php 
if (training_wpo_theme_options('sharrre-scrollable') == 'on') {
    ?>
		
			// Scrollable sharrre bar, contributed by Erik Frye. Awesome!
			var shareContainer = jQuery(".sharrre-container"),
			header = jQuery('#header'),
			postEntry = jQuery('.entry'),
			$window = jQuery(window),
			distanceFromTop = 20,
			startSharePosition = shareContainer.offset(),
			contentBottom = postEntry.offset().top + postEntry.outerHeight(),
			topOfTemplate = header.offset().top;
			getTopSpacing();

			shareScroll = function(){
				if($window.width() > 719){	
Beispiel #25
0
<?php

$pos = training_wpo_theme_options('sidebar_position') == 'left' ? 'sidebar-left' : 'side-right';
if (is_active_sidebar($pos)) {
    ?>
<div class="col-lg-3 col-md-3 col-sm-3">
	<div class="wpo-sidebar wpo-sidebar-right">
		<div class="sidebar-inner">
			<?php 
    dynamic_sidebar($pos);
    ?>
		</div>
	</div>
</div>
<?php 
}
wp_link_pages();
?>
            </div>
            <?php 
if (training_wpo_theme_options('show-share-portfolio', true)) {
    ?>
               <div class="post-share">
                <div class="row">
                  <div class="col-sm-12">
                     <div class="pull-left">
                        <?php 
    training_wpo_share_box();
    ?>
                     </div>      
                  </div>
                </div>
            </div>
            <?php 
}
?>

            <?php 
if (training_wpo_theme_options('show-related-portfolio')) {
    $relate_count = training_wpo_theme_options('portfolio-items-show', 4);
    training_wpo_related_post($relate_count, 'portfolio', 'category_portfolio');
}
?>
         </div>
      </article>
   </div>
</div>   
<?php

/**
 * Related Products
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$posts_per_page = training_wpo_theme_options('courses-number-related-single', 6);
$column = 2;
$userId = (int) get_post_meta($post->ID, '_relateduser', true);
if ($userId > 0) {
    $args = array('post_type' => 'ib_educator_course', 'posts_per_page' => $posts_per_page, 'meta_query' => array(array('key' => '_ib_educator_teacher', 'value' => $userId)));
    $col = floor(12 / $column);
    $class_col = "col-lg-" . $col . " col-md-" . $col . " col-sm-" . $col . " col-xs-12";
    $query = new WP_Query($args);
    ?>

<?php 
    if ($query->have_posts()) {
        ?>
<div class="space-padding-top-45">
    <div class="widget wpo-courses-related wpo-educator-grid">
       <h3 class="widget-title visual-title font-size-sm separator_align_left">
          <span><?php 
        esc_html_e('Currently Teaching', 'training');
<?php

if (!defined('ABSPATH')) {
    exit;
}
global $trainingconfig;
$trainingconfig = training_wpo_course_page_config();
get_header(training_wpo_theme_options('headerlayout', ''));
$columns = training_wpo_theme_options('courses-archive-column');
switch ($columns) {
    case '6':
        $class_column = 'col-lg-2 col-md-4 col-sm-4';
        break;
    case '4':
        $class_column = 'col-md-3 col-sm-3';
        break;
    case '3':
        $class_column = 'col-md-4 col-sm-4';
        break;
    case '2':
        $class_column = 'col-md-6 col-sm-6';
        break;
    default:
        $class_column = 'col-md-6 col-sm-12';
        break;
}
?>

<?php 
do_action('training_wpo_layout_breadcrumbs_render');
do_action('ib_educator_before_main_loop', 'archive');
Beispiel #29
0
if (!training_wpo_theme_options('wc_show_upsells', false)) {
    if (!defined('ABSPATH')) {
        exit;
    }
    // Exit if accessed directly
    global $product, $woocommerce_loop;
    $upsells = $product->get_upsells();
    $posts_per_page = training_wpo_theme_options('woo-number-product-single', 6);
    if (sizeof($upsells) == 0) {
        return;
    }
    $meta_query = WC()->query->get_meta_query();
    $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query);
    $_count = 1;
    $products = new WP_Query($args);
    $columns_count = training_wpo_theme_options('product-number-columns', 3);
    $class_column = 'col-sm-' . floor(12 / $columns_count);
    $woocommerce_loop['columns'] = $columns;
    if ($products->have_posts()) {
        ?>

		<div class="widget widget-products upsells products product-single">
			<div class="background"></div>
			<h3 class="widget-title visual-title">
		        <span><?php 
        esc_html_e('You may also like&hellip;', 'training');
        ?>
</span>
			</h3>
			<div class="woocommerce">
				<div class="widget-content <?php 
Beispiel #30
0
 /**
  * Custom set layout configuration as page
  */
 public function getPostConfig()
 {
     global $wp_query;
     $postconfig = get_post_meta($wp_query->get_queried_object_id(), 'wpo_postconfig', true);
     $defaults = array('config_layout' => false);
     $postconfig = wp_parse_args((array) $postconfig, $defaults);
     $config = array();
     if ($postconfig['config_layout'] == 1) {
         $config['page_layout'] = $postconfig['page_layout'];
         $config['right-sidebar']['widget'] = $postconfig['right_sidebar'];
         $config['left-sidebar']['widget'] = $postconfig['left_sidebar'];
     } else {
         $config['page_layout'] = training_wpo_theme_options('blog-single-layout', 'mainright');
         $config['right-sidebar']['widget'] = training_wpo_theme_options('blog-single-right-sidebar', 'sidebar-right');
         $config['left-sidebar']['widget'] = training_wpo_theme_options('blog-single-left-sidebar', 'sidebar-left');
     }
     if (empty($config)) {
         $lt = 'fullwidth';
     } else {
         $lt = $config['page_layout'];
     }
     $config = training_wpo_config_layout($lt, $config);
     if (isset($postconfig['audio_link']) && !empty($postconfig['audio_link'])) {
         $config['audio_link'] = $postconfig['audio_link'];
     }
     if (isset($postconfig['video_link']) && !empty($postconfig['video_link'])) {
         $config['video_link'] = $postconfig['video_link'];
     }
     if (isset($postconfig['link_url']) && $postconfig['link_url']) {
         $config['link_url'] = $postconfig['link_url'];
         $config['link_title'] = $postconfig['link_title'];
     }
     if (isset($postconfig['chat_content']) && $postconfig['chat_content']) {
         $config['chat_content'] = $postconfig['chat_content'];
     }
     if (isset($postconfig['quote_content']) && $postconfig['quote_content']) {
         $config['quote_content'] = $postconfig['quote_content'];
         $config['quote_author'] = $postconfig['quote_author'];
     }
     $maincontent = array();
     return $config;
 }