/**
  * 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;
 }
Пример #2
0
 * The template for displaying CPT Services.
 *
 * @package   Cherry_Services
 * @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 
        cherry_attr('post', 'services-template');
        ?>
>

				<?php 
        // Display a page content.
        the_content();
        $args = array('template' => 'image-box.tmpl', 'before_title' => '<h3 class="cherry-services_title">', 'after_title' => '</h3>', 'container' => false, 'linked_title' => 'yes', 'size' => 'cherry-thumb-s', 'col_xs' => '12', 'col_sm' => '6', 'col_md' => '4', 'col_lg' => 'none', 'pager' => true, 'limit' => Cherry_Services_Templater::get_posts_per_archive_page());
        $data = new Cherry_Services_Data();
        $data->the_services($args);
        ?>

			</article>

	<?php 
    }
}