Exemple #1
0
function woostore_after_content()
{
    ?>
		<?php 
    if (is_search() && is_post_type_archive()) {
        add_filter('woo_pagination_args', 'woocommerceframework_add_search_fragment', 10);
    }
    ?>
		<?php 
    woo_pagenav();
    ?>
		</div><!-- /#main -->
        <?php 
    woo_main_after();
    ?>
    
    </div><!-- /#content -->
	<?php 
    woo_content_after();
    ?>
    <?php 
}
Exemple #2
0
    }
} else {
    ?>
            <div class="post">
                <p><?php 
    _e('Sorry, no posts matched your criteria.', 'woothemes');
    ?>
</p>
            </div><!-- /.post -->
        <?php 
}
?>
  
    
            <?php 
woo_pagenav();
?>
                
        </div><!-- /#main -->
        <?php 
woo_main_after();
?>

        <?php 
get_sidebar();
?>

	</div><!-- /#col-full -->
    </div><!-- /#content -->
		
<?php 
 function canvas_commerce_pagination()
 {
     if (is_search() && is_post_type_archive()) {
         add_filter('woo_pagination_args', 'woocommerceframework_add_search_fragment', 10);
     }
     woo_pagenav();
 }
            continue;
        }
        $column_count_1++;
        $column_count_2++;
        $column_count_3++;
        ?>
		<div class="threecol-one<?php 
        if ($column_count_1 > 2) {
            echo esc_attr(' last');
            $column_count_1 = 0;
        }
        ?>
">
		<?php 
        woo_get_template_part('content', 'magazine-grid');
        ?>
		</div><!--/.block-->
<?php 
        if ($column_count_1 == 0) {
            ?>
<div class="fix"></div><?php 
        }
        // End IF Statement
    }
    // End WHILE Loop
} else {
    get_template_part('content', 'noposts');
}
woo_pagenav($query);
wp_reset_query();
add_action('woo_post_inside_before', 'woo_display_post_image', 10);
Exemple #5
0
// Fix for the WordPress 3.0 "paged" bug.
$paged = 1;
if (get_query_var('paged')) {
    $paged = get_query_var('paged');
}
if (get_query_var('page')) {
    $paged = get_query_var('page');
}
$paged = intval($paged);
$query_args = array('post_type' => 'post', 'paged' => $paged);
$query_args = apply_filters('woo_blog_template_query_args', $query_args);
$new_query = new WP_Query($query_args);
$original_query = $wp_query;
$wp_query = $new_query;
if (have_posts()) {
    $count = 0;
    ?>
<div class="fix"></div>
<?php 
    while (have_posts()) {
        the_post();
        $count++;
        woo_get_template_part('content', get_post_type());
    }
} else {
    get_template_part('content', 'noposts');
}
$wp_query = $original_query;
woo_loop_after();
woo_pagenav($new_query);
unset($new_query);