/**
  * Returns the instance.
  *
  * @since  1.0.0
  * @return object
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 * @package   Cherry_Team
 * @author    Cherry Team
 * @license   GPL-2.0+
 * @link      http://www.cherryframework.com/
 * @copyright 2015 Cherry Team
 */
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

			<article <?php 
        if (function_exists('cherry_attr')) {
            cherry_attr('post');
        }
        ?>
 >

				<?php 
        // Display a page content.
        the_content();
        $args = array('template' => 'default.tmpl', 'limit' => 3, 'custom_class' => 'team-listing row', 'item_class' => 'team-listing_item', 'col_xs' => '12', 'col_sm' => '6', 'col_md' => '4', 'col_lg' => false, 'container' => false, 'size' => 'thumbnail', 'pager' => true, 'limit' => Cherry_Team_Templater::get_posts_per_archive_page());
        $data = new Cherry_Team_Data();
        $data->the_team($args);
        ?>

			</article>

	<?php 
    }
}
Example #3
0
<?php

/**
 * The Template for displaying archive CPT Team.
 *
 * @package   Cherry_Team
 * @author    Cherry Team
 * @license   GPL-2.0+
 * @link      http://www.cherryframework.com/
 * @copyright 2015 Cherry Team
 */
global $wp_query;
$args = array('template' => 'default.tmpl', 'custom_class' => 'team-listing row', 'item_class' => 'team-listing_item', 'container' => false, 'col_xs' => '12', 'col_sm' => '6', 'col_md' => '4', 'col_lg' => false, 'size' => 'thumbnail', 'pager' => true, 'limit' => Cherry_Team_Templater::get_posts_per_archive_page(), 'group' => !empty($wp_query->query_vars['term']) ? $wp_query->query_vars['term'] : '');
$data = new Cherry_Team_Data();
$data->the_team($args);