} ?> <div<?php if ($filter) { echo " data-bricks-terms=\"{$terms}\""; } ?> > <?php get_template_part('parts/post'); ?> </div> <?php } ?> </div> <?php echo Everything::getPaginateLinks('blog'); ?> </section> <?php } else { ?> <?php get_template_part('parts/no-posts'); ?> <?php }
<section class="section"> <article id="post-<?php the_ID(); ?> " <?php post_class('post'); ?> > <?php Everything::title(); ?> <?php the_content(null, Everything::to('portfolio/strip_teaser')); ?> <?php echo Everything::getPaginateLinks('page'); ?> </article> </section> <?php get_template_part('parts/author-bio'); ?> <?php Everything::socialButtons(); ?> <?php Everything::meta(); ?> <?php comments_template();
if (have_comments()) { ?> <section id="comments" class="section"> <ul class="comments"> <?php wp_list_comments(array('style' => 'div', 'callback' => function ($comment, $args, $depth) { $GLOBALS['comment'] = $comment; require get_template_directory() . '/comment.php'; }, 'end-callback' => function () { echo '</ul></li>'; })); ?> </ul> <?php echo Everything::getPaginateLinks('comments'); ?> </section> <?php } ?> <?php if (comments_open()) { ?> <section class="section"> <?php comment_form(); ?> </section>
?> <?php while (have_posts()) { the_post(); ?> <section class="section"> <?php get_template_part('parts/post'); ?> </section> <?php } ?> <?php if ($pagination = Everything::getPaginateLinks('blog')) { ?> <div class="section"><?php echo $pagination; ?> </div> <?php } ?> <?php } else { ?> <?php get_template_part('parts/no-posts');
<?php /** * @package WooCommerce/Templates * @subpackage Everything * @since 1.0 * @version 2.2.2 */ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } echo Everything::getPaginateLinks('woocommerce');
protected function getBricks($query) { // HTML $html = HTML::div()->class('bricks')->data('bricks-columns', $this->so('columns'))->data('bricks-filter', Func::boolToString($this->so('filter'))); while (have_posts()) { the_post(); $GLOBALS['more'] = 0; $brick = $html->addNew('div')->add(\Drone\Func::functionGetOutputBuffer('get_template_part', 'parts/post')); if ($this->so('filter')) { $terms = \Drone\Func::wpPostTermsList(get_the_ID(), $this->so('filter')); if (is_category() && ($term_id = array_search(single_cat_title('', false), $terms)) !== false) { unset($terms[$term_id]); } $brick->data('bricks-terms', json_encode(array_values($terms))); } } wp_reset_query(); // Paginate links if ($this->so('pagination') && ($pagination = \Everything::getPaginateLinks('blog', $query))) { $html = HTML::make()->add($html, $pagination); } return $html; }
if (Everything::to('portfolio/archive/taxonomy/visible')) { ?> <?php the_terms(get_the_ID(), 'portfolio-' . Everything::to('portfolio/archive/taxonomy/taxonomy'), '<p class="small alt">', ', ', '</p>'); ?> <?php } ?> </article> </div> <?php } ?> </div> <?php echo Everything::getPaginateLinks('portfolio'); ?> </section> <?php } else { ?> <?php get_template_part('parts/no-posts'); ?> <?php } ?>