Exemple #1
0
        }
        $ex_class = $pagination == 'ifscroll' || $pagination == 'loadmore' ? 'posts-with-infinite' : '';
        // Portfolio output starts here..
        $output .= '<div id="portfolio_' . $portfolio_id . '" class="portfolio ' . $ex_class . ' padding-' . $padding . '" ><div class="' . $css_class . '" data-columns="' . $columns . '"  data-animation-delay="' . $css_animation_delay . '" data-animation-effect="' . $css_animation . '" data-masonry-layout="' . $masonry . '">';
        //Build Default argument for portfolio loop
        $args = array('portfolio_style' => $portfolio_style, 'class' => 'span', 'img_size' => $img_size == 'custom' && $custom_img_size != '' ? trim($custom_img_size) : brad_get_img_size($columns, $masonry, $fullwidth), 'show_lb_icon' => $show_lb_icon, 'show_li_icon' => $show_li_icon, 'en_loveit' => $en_loveit, 'disable_li_title' => $disable_li_title, 'show_categories' => $show_categories, 'info_onhover' => $info_onhover);
        while ($portfolios->have_posts()) {
            $portfolios->the_post();
            $output .= brad_portfolio_loop_style1($portfolios, $args);
        }
        $output .= '</div></div>';
        //only included script if portfolio post exists
        $brad_includes['load_isotope'] = true;
        if ($pagination == 'ifscroll' || $pagination == 'loadmore') {
            $output .= '<div id="infinite_scroll_loading" class="clearfix margin-on-' . $padding . ' ' . $portfolio_style . '"></div>';
            $brad_includes['load_infiniteScroll'] = true;
        }
    }
    //End posts if exist;
    if ($pagination == 'default' || $pagination == 'ifscroll' || $pagination == 'loadmore') {
        $p_class = $pagination == 'default' ? '' : 'hidden';
        $output .= brad_pagination($portfolios->max_num_pages, $range = 2, false, $p_class, $portfolios->query_vars['paged']);
    }
    if ($pagination == 'loadmore') {
        $btn_class = !empty($icon) ? 'btn-with-icon' : '';
        $output .= '<p id="load_more" class="sp-container aligncenter"><a  href="#" class="button button_' . $button_style . ' icon-align-right ' . $btn_class . '" title="' . $lm_title . '">' . brad_icon($icon, '', '', false) . '<span>' . $lm_title . '</span></a></p>';
    }
    wp_reset_postdata();
}
$portfolio_id;
echo $output;
Exemple #2
0
        ?>
">
    <?php 
        while (have_posts()) {
            the_post();
            get_template_part('framework/templates/blog/posts/post-format-grid/post', get_post_format());
        }
        ?>
  </ul>
  <p class="hidden">
    <?php 
        posts_nav_link();
        ?>
  </p>
  <?php 
        if ($brad_data['blog_pagination'] == 'ifscroll' || $brad_data['blog_pagination'] == 'loadmore') {
            echo '<div id="infinite_scroll_loading"></div>';
            $brad_includes['load_infiniteScroll'] = true;
        }
        if ($brad_data['blog_pagination'] == 'default' || $brad_data['blog_pagination'] == 'ifscroll' || $brad_data['blog_pagination'] == 'loadmore') {
            $p_class = $brad_data['blog_pagination'] == 'default' ? '' : 'hidden';
            brad_pagination($wp_query->max_num_pages, 2, true, $p_class, $wp_query->query_vars['paged']);
        }
        if ($brad_data['blog_pagination'] == 'loadmore') {
            echo '<p id="load_more" class="sp-container aligncenter"><a  href="#" class="button button_alternate icon-align-left" title="' . __('Load More Posts..', 'brad') . '">' . __('Load More', 'brad') . '</a></p>';
        }
        ?>
</div>
<?php 
    }
}
Exemple #3
0
    <?php 
    $args = array('portfolio_style' => $brad_data['portfolio_style'], 'class' => 'span', 'img_size' => $brad_data['img_size'] == 'custom' && $brad_data['custom_img_size'] != '' ? trim($brad_data['custom_img_size']) : brad_get_img_size($brad_data['portfolio_rcolumns'], 'no'), 'show_lb_icon' => $brad_data['portfolio_lightbox'], 'show_li_icon' => $brad_data['portfolio_linkicon'], 'en_loveit' => $brad_data['portfolio_loveit'], 'disable_li_title' => $brad_data['disable_li_title'], 'show_categories' => $brad_data['portfolio_categories'], 'info_onhover' => $brad_data['info_onhover']);
    while (have_posts()) {
        the_post();
        echo brad_portfolio_loop_style1($post, $args);
    }
    ?>
  </div>
</div>

<?php 
    //only included script if portfolio post exists
    $brad_includes['load_isotope'] = true;
    if ($brad_data['portfolio_pagination'] == 'ifscroll' || $brad_data['portfolio_pagination'] == 'loadmore') {
        echo '<div id="infinite_scroll_loading" class="clearfix margin-on-' . $brad_data['portfolio_vpadding'] . ' ' . $brad_data['portfolio_style'] . '"></div>';
        $brad_includes['load_infiniteScroll'] = true;
    }
    if ($brad_data['portfolio_pagination'] == 'default' || $brad_data['portfolio_pagination'] == 'ifscroll' || $brad_data['portfolio_pagination'] == 'loadmore') {
        $p_class = $brad_data['portfolio_pagination'] == 'default' ? '' : 'hidden';
        brad_pagination('', $range = 2, true, $p_class);
    }
    if ($brad_data['portfolio_pagination'] == 'loadmore') {
        echo '<p id="load_more" class="sp-container aligncenter"><a  href="#" class="button button_' . $brad_data['portfolio_button_style'] . '"><span>' . $brad_data['portfolio_lm_title'] . '</span></a></p>';
    }
    ?>

<?php 
}
?>
 
Exemple #4
0
           </div>
           <div class="excerpt"><?php 
        echo get_the_excerpt();
        ?>
</div>
           </div>
           </div>
           <?php 
    }
    ?>
           <?php 
}
?>
           </div>
           <?php 
brad_pagination($pages = '', $range = 2);
?>
	 
        </div>
      </div>
      <div id="sidebar" class="span3 sidebar <?php 
echo $sidebar_css;
?>
" style="">
        <div class="inner-content">
          <?php 
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog Sidebar')) {
}
?>
        </div>
      </div>
Exemple #5
0
<?php

/**
 * Pagination - Show numbered pagination for catalog pages.
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.2.2
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $wp_query;
if ($wp_query->max_num_pages <= 1) {
    return;
}
echo brad_pagination($wp_query->max_num_pages);