示例#1
0
						<aside class="col-md-3">

							<?php 
                if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($cs_meta_page->sidebar_layout->cs_sidebar_left)) {
                }
                ?>

						</aside>

					<?php 
            }
            ?>

					<div class="<?php 
            echo cs_meta_content_class();
            ?>
">

					<?php 
            wp_reset_query();
            if ($cs_meta_page->page_content == "Yes") {
                echo '<div class="rich_editor_text">';
                $content_post = get_post($cs_shop_id);
                $content = $content_post->post_content;
                $content = apply_filters('the_content', $content);
                $content = str_replace(']]>', ']]&gt;', $content);
                echo $content;
                echo '</div>';
            }
            if (have_posts()) {
示例#2
0
$count_post = 0;
// if ($cs_node->cs_blog_pagination == "Single Page") $cs_node->cs_blog_num_post = $cs_node->cs_blog_num_post;
$args = array('posts_per_page' => "{$cs_node->cs_blog_num_post}", 'paged' => $_GET['page_id_all'], 'order' => "{$cs_node->cs_blog_orderby}");
if (isset($cs_node->cs_blog_cat) && $cs_node->cs_blog_cat != '' && $cs_node->cs_blog_cat != '0') {
    $blog_category_array = array('category_name' => "{$cs_node->cs_blog_cat}");
    $args = array_merge($args, $blog_category_array);
}
$custom_query = new WP_Query($args);
$cs_counter = 0;
cs_meta_content_class();
if (cs_meta_content_class() == "col-md-12") {
    if ($cs_node->cs_blog_view == "blog-large") {
        $custom_width = 716;
        $custom_height = 393;
    }
} elseif (cs_meta_content_class() == "col-md-9") {
    if ($cs_node->cs_blog_view == "blog-large") {
        $custom_width = 716;
        $custom_height = 393;
    }
}
if ($cs_node->cs_blog_view == "blog-grid" || $cs_node->cs_blog_view == "blog-medium") {
    $custom_width = 342;
    $custom_height = 193;
    $width = 342;
    $height = 193;
    while ($custom_query->have_posts()) {
        $custom_query->the_post();
        $post_xml = get_post_meta($post->ID, "post", true);
        if ($post_xml != "") {
            $cs_xmlObject = new SimpleXMLElement($post_xml);