/** * * * @package Kopa * @subpackage Core * @author thethangtran <*****@*****.**> * @since 1.0.0 * */ protected function get_control() { $html = ''; if ($this->template_hierarchy) { $this->value = is_array($this->value) ? $this->value : unserialize($this->value); $html = KopaLayout::get_form($this->template_hierarchy, $this->value, $this->name); } else { $html = __('Parameter template_hierarchy is missing.', kopa_get_domain()); } return $html; }
if ($metadata['tags'] && has_tag()) { ?> <p class="kp-tags"> <?php the_tags('', ' '); ?> </p> <?php } ?> <div class="clearfix"></div> <?php $prev_and_next = KopaLayout::get_pre_next_post(); if ($prev_and_next) { ?> <ul class="pager-page list-unstyled clearfix"> <?php if (isset($prev_and_next['prev'])) { ?> <li class="prev pull-left"> <a class="prev" href="<?php echo $prev_and_next['prev']['url']; ?> "> <?php _e('Previous article', kopa_get_domain()); ?> </a> <h4 class="post-title"><a href="<?php
<?php get_header(kopa_get_header_style()); global $kopaCurrentSidebars; ?> <div id="content" class="clearfix"> <?php KopaLayout::get_breadcrumb(); ?> <div class="container"> <div id="main-content" class="pull-left"> <?php if (have_posts()) { global $post; $exceprt_type = KopaOptions::get_option('exceprt_type', 'limit'); $excerpt_limit = KopaOptions::get_option('excerpt_limit', 200, 'Int'); $metadata = array(); $metadata['date'] = KopaOptions::get_option('is_display_created_date', true, 'Boolean'); $metadata['comments'] = KopaOptions::get_option('is_display_comments', true, 'Boolean'); $metadata['views'] = KopaOptions::get_option('is_display_views', true, 'Boolean'); $metadata['likes'] = KopaOptions::get_option('is_display_likes', true, 'Boolean'); $metadata['readmore'] = KopaOptions::get_option('is_display_readmore', true, 'Boolean'); $metadata['formatted'] = apply_filters('kopa_blog_is_display_blog_post_format', KopaOptions::get_option('is_display_blog_post_format', true, 'Boolean')); ?> <div class="list-post-cat"> <ul class="list-post-cat-item list-unstyled"> <?php $loop_index = 0; while (have_posts()) { the_post();
<?php $kopaCurrentSetting = KopaLayout::get_current_setting(); $kopaCurrentLayout = $kopaCurrentSetting['layout_slug']; $kopaCurrentSidebars = $kopaCurrentSetting['sidebars'][$kopaCurrentLayout]; if (file_exists(get_template_directory() . "/layouts/{$kopaCurrentLayout}.php")) { include_once trailingslashit(get_template_directory()) . "/layouts/{$kopaCurrentLayout}.php"; }
/** * @package Kopa * @subpackage Core * @author thethangtran <*****@*****.**> * @since 1.0.0 */ function kopa_body_class($classes) { $kopa_layout = KopaInit::get_layouts(); $kopaCurrentSetting = KopaLayout::get_current_setting(); $kopaCurrentLayout = $kopaCurrentSetting['layout_slug']; $kopaCurrentSidebars = $kopaCurrentSetting['sidebars'][$kopaCurrentLayout]; $classes[] = "kopa-layout-{$kopaCurrentLayout}"; $positions = $kopa_layout[$kopaCurrentLayout]['positions']; foreach ($positions as $index => $position) { if (!is_active_sidebar($kopaCurrentSidebars[$index])) { $classes[] = "kopa-hide-{$position}"; } else { $classes[] = "kopa-show-{$position}"; } } return $classes; }