示例#1
0
function woocommerceframework_pagination()
{
    $features = get_setting_array('shop_loop_top_bar', array());
    $pagination_pos = get_setting('shop_pagination_pos', 'bottom');
    if (in_array('pagination', $features) && $pagination_pos && ('bottom' == $pagination_pos || 'both' == $pagination_pos)) {
        $args = array('container_class' => 'pagination pagination-lg pull-right', 'echo' => false);
        echo '<div class="row"><div class="col-md-12">' . wp_pagenavi($args) . '</div></div>';
    }
}
function spyropress_social_icons($id = '')
{
    if (empty($id)) {
        return;
    }
    $socials = get_setting_array($id);
    if (empty($socials)) {
        return;
    }
    echo '<ul class="social-icons">';
    foreach ($socials as $social) {
        echo '<li class="' . $social['network'] . '"><a href="' . $social['url'] . '" target="_blank" title="' . ucwords($social['network']) . '">' . ucwords($social['network']) . '</a></li> ';
    }
    echo '</ul>';
}
示例#3
0
<?php

$features = get_setting_array('shop_loop_top_bar', array());
$pagination_pos = get_setting('shop_pagination_pos', 'bottom');
?>

<div class="row">
	<div class="col-md-6">
        <h2 class="shorter"><strong><?php 
woocommerce_page_title();
?>
</strong></h2>
		<?php 
if (in_array('result_count', $features)) {
    woocommerce_result_count();
} else {
    echo '<p></p>';
}
?>

	</div>
    <div class="col-md-6">
    <?php 
if (in_array('pagination', $features) && $pagination_pos && ('top' == $pagination_pos || 'both' == $pagination_pos)) {
    wp_pagenavi(array('container_class' => 'pagination pagination-lg pagination-top pull-right'));
}
if (in_array('filter', $features)) {
    woocommerce_catalog_ordering();
}
?>