*/ ?> <!DOCTYPE html> <html <?php language_attributes(); ?> > <head> <?php wp_head(); ?> </head> <body <?php cherry_attr('body'); ?> > <?php do_action('cherry_body_start'); ?> <div id="site-wrapper" class="hfeed site"> <?php do_action('cherry_header_before'); ?> <?php do_action('cherry_header');
<?php if (has_nav_menu('primary')) { // Check if there's a menu assigned to the 'primary' location. ?> <!-- Primary navigation --> <nav <?php cherry_attr('menu', 'primary'); ?> > <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'menu_id' => 'menu-primary-items', 'menu_class' => 'menu-items simple-menu', 'fallback_cb' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>')); ?> </nav> <?php } // End check for menu.
<?php /** * The Template for displaying single CPT Portfolio. * */ while (have_posts()) { the_post(); ?> <article <?php if (function_exists('cherry_attr')) { cherry_attr('post'); } ?> > <?php do_action('cherry_entry_before'); $data = new Cherry_Portfolio_Data(); $data->portfolio_single_data(); ?> </article> <?php do_action('cherry_entry_after'); ?> <?php }
<?php if (has_nav_menu('secondary')) { // Check if there's a menu assigned to the 'secondary' location. ?> <!-- Secondary navigation --> <nav <?php cherry_attr('menu', 'secondary'); ?> > <?php wp_nav_menu(array('theme_location' => 'secondary', 'container' => '', 'menu_id' => 'menu-secondary-items', 'menu_class' => 'menu-items', 'fallback_cb' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'depth' => 1)); ?> </nav> <?php } // End check for menu.
* * 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 }
<?php cherry_get_header('base'); ?> <div <?php cherry_attr('content'); ?> > <div class="<?php echo apply_filters('cherry_get_container_class', 'container'); ?> "> <?php cherry_get_content(); ?> <?php cherry_get_sidebar(apply_filters('cherry_get_main_sidebar', 'sidebar-main')); ?> <?php cherry_get_sidebar(apply_filters('cherry_get_secondary_sidebar', 'sidebar-secondary')); ?> </div> </div> <?php cherry_get_footer('base');