khaihihi
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
$modal_wrapper_class = $modal_css_class = $modal_template_class = '';
|
||||
|
||||
if (isset($redux_ThemeTek['tek-modal-css-class']) && $redux_ThemeTek['tek-modal-css-class'] != '' ) {
|
||||
$modal_css_class = $redux_ThemeTek['tek-modal-css-class'];
|
||||
}
|
||||
|
||||
$modal_wrapper_class = implode(' ', array('modal', 'fade', 'popup-modal', $modal_css_class));
|
||||
?>
|
||||
<div class="<?php echo esc_attr($modal_wrapper_class); ?>" id="popup-modal" role="dialog">
|
||||
<div class="modal-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 modal-content-contact">
|
||||
<?php if (isset($redux_ThemeTek['tek-modal-title']) && $redux_ThemeTek['tek-modal-title'] != '' ) : ?>
|
||||
<h3><?php echo esc_html($redux_ThemeTek['tek-modal-title']); ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-modal-subtitle']) && $redux_ThemeTek['tek-modal-subtitle'] != '' ) : ?>
|
||||
<p><?php echo wp_kses_post($redux_ThemeTek['tek-modal-subtitle']); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-business-phone']) && $redux_ThemeTek['tek-business-phone'] != '' ) : ?>
|
||||
<div class="key-icon-box icon-default icon-left cont-left">
|
||||
<i class="iconsmind-Phone fa"></i>
|
||||
<h4 class="service-heading"><a href="tel:<?php echo esc_attr($redux_ThemeTek['tek-business-phone']); ?>"><?php echo esc_html($redux_ThemeTek['tek-business-phone']); ?></a></h4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-business-email']) && $redux_ThemeTek['tek-business-email'] != '' ) : ?>
|
||||
<div class="key-icon-box icon-default icon-left cont-left">
|
||||
<i class="iconsmind-Mail fa"></i>
|
||||
<h4 class="service-heading"><a href="mailto:<?php echo esc_attr($redux_ThemeTek['tek-business-email']); ?>"><?php echo esc_html($redux_ThemeTek['tek-business-email']); ?></a></h4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-modal-socials']) && $redux_ThemeTek['tek-modal-socials']) : ?>
|
||||
<div class="kd-modal-social-list">
|
||||
<?php echo do_shortcode('[social_profiles]'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-sm-6 modal-content-inner" style="background-image: url('<?php if (isset($redux_ThemeTek['tek-modal-bg-image']) && $redux_ThemeTek['tek-modal-bg-image'] != '' ) { echo esc_url($redux_ThemeTek['tek-modal-bg-image']['url']); } ?>')">
|
||||
<?php if (isset($redux_ThemeTek['tek-modal-form-select']) && $redux_ThemeTek['tek-modal-form-select'] != '' ) : ?>
|
||||
<?php if ($redux_ThemeTek['tek-modal-form-select'] == '1' && $redux_ThemeTek['tek-modal-contactf7-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[contact-form-7 id="'. esc_attr($redux_ThemeTek['tek-modal-contactf7-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-modal-form-select'] == '2' && $redux_ThemeTek['tek-modal-ninja-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[ninja_form id="'. esc_attr($redux_ThemeTek['tek-modal-ninja-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-modal-form-select'] == '3' && $redux_ThemeTek['tek-modal-gravity-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[gravityform id="'. esc_attr($redux_ThemeTek['tek-modal-gravity-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-modal-form-select'] == '4' && $redux_ThemeTek['tek-modal-wp-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[wpforms id="'. esc_attr($redux_ThemeTek['tek-modal-wp-formid']).'"]'); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
/* Button style and color scheme */
|
||||
$btn_wrapper_class = $button_style_class = $button_color_class = $button_hover_class = '';
|
||||
if (isset($redux_ThemeTek['tek-header-button-style'])) {
|
||||
if ($redux_ThemeTek['tek-header-button-style'] == 'solid-button') {
|
||||
$button_style_class .= 'tt_primary_button';
|
||||
} elseif ($redux_ThemeTek['tek-header-button-style'] == 'outline-button') {
|
||||
$button_style_class .= 'tt_secondary_button';
|
||||
} else {
|
||||
$button_style_class .= 'tt_primary_button';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-header-button-color'])) {
|
||||
if ($redux_ThemeTek['tek-header-button-color'] == 'primary-color') {
|
||||
$button_color_class .= 'btn_primary_color';
|
||||
} elseif ($redux_ThemeTek['tek-header-button-color'] == 'secondary-color') {
|
||||
$button_color_class .= 'btn_secondary_color';
|
||||
} else {
|
||||
$button_color_class .= 'btn_primary_color';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-header-button-hover-style'])) {
|
||||
$button_hover_class .= $redux_ThemeTek['tek-header-button-hover-style'];
|
||||
}
|
||||
|
||||
$btn_wrapper_class = implode(' ', array('modal-menu-item', 'tt_button', $button_style_class, $button_color_class, $button_hover_class));
|
||||
?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-modal-button'] && ($redux_ThemeTek['tek-header-button-action'] == '1')) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?>" data-toggle="modal" data-target="#popup-modal"><?php echo esc_html($redux_ThemeTek['tek-header-button-text']);?></a>
|
||||
<?php elseif ($redux_ThemeTek['tek-modal-button'] && ($redux_ThemeTek['tek-header-button-action'] == '2')) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-scroll-id']) && $redux_ThemeTek['tek-scroll-id'] != '' ) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?> scroll-section" href="<?php if( is_page('Home')) { echo esc_attr($redux_ThemeTek['tek-scroll-id']); } else { echo esc_url(site_url()) . esc_attr($redux_ThemeTek['tek-scroll-id']);} ?>"><?php echo esc_html($redux_ThemeTek['tek-header-button-text']);?></a>
|
||||
<?php endif; ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-modal-button'] && ($redux_ThemeTek['tek-header-button-action'] == '3')) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-button-new-page']) && $redux_ThemeTek['tek-button-new-page'] != '' ) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?>" <?php echo (isset($redux_ThemeTek['tek-button-target']) && $redux_ThemeTek['tek-button-target'] == 'new-page') ? 'target="_blank"' : 'target="_self"'; ?> href="<?php echo esc_url($redux_ThemeTek['tek-button-new-page']); ?>"><?php echo esc_html($redux_ThemeTek['tek-header-button-text']);?></a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
/* Button style and color scheme */
|
||||
$btn_wrapper_class = $button_style_class = $button_color_class = $button_hover_class = '';
|
||||
if (isset($redux_ThemeTek['tek-panel-button-style'])) {
|
||||
if ($redux_ThemeTek['tek-panel-button-style'] == 'solid-button') {
|
||||
$button_style_class .= 'tt_primary_button';
|
||||
} elseif ($redux_ThemeTek['tek-panel-button-style'] == 'outline-button') {
|
||||
$button_style_class .= 'tt_secondary_button';
|
||||
} else {
|
||||
$button_style_class .= 'tt_primary_button';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-panel-button-color'])) {
|
||||
if ($redux_ThemeTek['tek-panel-button-color'] == 'primary-color') {
|
||||
$button_color_class .= 'btn_primary_color';
|
||||
} elseif ($redux_ThemeTek['tek-panel-button-color'] == 'secondary-color') {
|
||||
$button_color_class .= 'btn_secondary_color';
|
||||
} else {
|
||||
$button_color_class .= 'btn_primary_color';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-panel-button-hover-style'])) {
|
||||
$button_hover_class .= $redux_ThemeTek['tek-panel-button-hover-style'];
|
||||
}
|
||||
|
||||
$btn_wrapper_class = implode(' ', array('modal-menu-item', 'tt_button', $button_style_class, $button_color_class, $button_hover_class));
|
||||
?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-panel-button'] && ($redux_ThemeTek['tek-panel-button-action'] == '1')) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?> panel-trigger-btn"><?php echo esc_html($redux_ThemeTek['tek-panel-button-text']);?></a>
|
||||
<?php elseif ($redux_ThemeTek['tek-panel-button'] && ($redux_ThemeTek['tek-panel-button-action'] == '2')) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-scroll-id']) && $redux_ThemeTek['tek-panel-scroll-id'] != '' ) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?> scroll-section" href="<?php if( is_page('Home')) { echo esc_attr($redux_ThemeTek['tek-panel-scroll-id']); } else { echo esc_url(site_url()) . esc_attr($redux_ThemeTek['tek-panel-scroll-id']);} ?>"><?php echo esc_html($redux_ThemeTek['tek-panel-button-text']);?></a>
|
||||
<?php endif; ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-panel-button'] && ($redux_ThemeTek['tek-panel-button-action'] == '3')) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-button-new-page']) && $redux_ThemeTek['tek-panel-button-new-page'] != '' ) : ?>
|
||||
<a class="<?php echo esc_attr($btn_wrapper_class); ?>" <?php echo (isset($redux_ThemeTek['tek-panel-button-target']) && $redux_ThemeTek['tek-panel-button-target'] == 'new-page') ? 'target="_blank"' : 'target="_self"'; ?> href="<?php echo esc_url($redux_ThemeTek['tek-panel-button-new-page']); ?>"><?php echo esc_html($redux_ThemeTek['tek-panel-button-text']);?></a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
$panel_wrapper_class = $button_hover_class = $panel_css_class = '';
|
||||
|
||||
if (isset($redux_ThemeTek['tek-panel-css-class']) && $redux_ThemeTek['tek-panel-css-class'] != '' ) {
|
||||
$panel_css_class = $redux_ThemeTek['tek-panel-css-class'];
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-btn-effect']) && $redux_ThemeTek['tek-btn-effect'] != '' ) {
|
||||
$button_hover_class = $redux_ThemeTek['tek-btn-effect'];
|
||||
}
|
||||
|
||||
$panel_wrapper_class = implode(' ', array('kd-side-panel', $button_hover_class, $panel_css_class));
|
||||
?>
|
||||
<div class="panel-screen-overlay"></div>
|
||||
<div class="<?php echo esc_attr($panel_wrapper_class); ?>">
|
||||
<div class="kd-panel-wrapper">
|
||||
<div class="kd-panel-header">
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-title']) && $redux_ThemeTek['tek-panel-title'] != '' ) : ?>
|
||||
<h3 class="kd-panel-title"><?php echo esc_html($redux_ThemeTek['tek-panel-title']); ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-subtitle']) && $redux_ThemeTek['tek-panel-subtitle'] != '' ) : ?>
|
||||
<div class="kd-panel-subtitle">
|
||||
<?php echo wp_kses_post($redux_ThemeTek['tek-panel-subtitle']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="kd-panel-phone-email">
|
||||
<?php if (isset($redux_ThemeTek['tek-business-phone']) && $redux_ThemeTek['tek-business-phone'] != '' ) : ?>
|
||||
<div class="kd-panel-phone">
|
||||
<i class="fa fa-phone"></i>
|
||||
<a href="tel:<?php echo esc_attr($redux_ThemeTek['tek-business-phone']); ?>"><?php echo esc_html($redux_ThemeTek['tek-business-phone']); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-business-email']) && $redux_ThemeTek['tek-business-email'] != '' ) : ?>
|
||||
<div class="kd-panel-email">
|
||||
<i class="fa fa-envelope"></i>
|
||||
<a href="mailto:<?php echo esc_attr($redux_ThemeTek['tek-business-email']); ?>"><?php echo esc_html($redux_ThemeTek['tek-business-email']); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="kd-panel-contact">
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-form-select']) && $redux_ThemeTek['tek-panel-form-select'] != '' ) : ?>
|
||||
<?php if ($redux_ThemeTek['tek-panel-form-select'] == '1' && $redux_ThemeTek['tek-panel-contactf7-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[contact-form-7 id="'. esc_attr($redux_ThemeTek['tek-panel-contactf7-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-panel-form-select'] == '2' && $redux_ThemeTek['tek-panel-ninja-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[ninja_form id="'. esc_attr($redux_ThemeTek['tek-panel-ninja-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-panel-form-select'] == '3' && $redux_ThemeTek['tek-panel-gravity-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[gravityform id="'. esc_attr($redux_ThemeTek['tek-panel-gravity-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-panel-form-select'] == '4' && $redux_ThemeTek['tek-panel-wp-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[wpforms id="'. esc_attr($redux_ThemeTek['tek-panel-wp-formid']).'"]'); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (isset($redux_ThemeTek['tek-panel-socials']) && $redux_ThemeTek['tek-panel-socials']) : ?>
|
||||
<div class="kd-panel-social-list">
|
||||
<?php echo do_shortcode('[social_profiles]'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="panel-close" data-dismiss="side-panel">×</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,239 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$title_align_class = $single_page_title_align = $values = $titlebar_bg = $shop_titlebar_bg = $shop_title_bar_text_align = '';
|
||||
|
||||
$blog_title = get_the_title( get_option('page_for_posts', true) );
|
||||
$keydesign_header_image = wp_get_attachment_image_src( get_post_thumbnail_id(get_option('page_for_posts')), 'full', false );
|
||||
|
||||
if (is_home() && is_front_page()) {
|
||||
$blog_title = get_bloginfo();
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
}
|
||||
|
||||
$themetek_page_subtitle = get_post_meta( get_the_ID(), '_themetek_page_subtitle', true );
|
||||
$themetek_page_showhide_title_section = get_post_meta( get_the_ID(), '_themetek_page_showhide_title_section', true );
|
||||
$themetek_page_showhide_breadcrumbs = get_post_meta( get_the_ID(), '_themetek_page_showhide_breadcrumbs', true );
|
||||
$themetek_page_title_color = get_post_meta( get_the_ID(), '_themetek_page_title_color', true );
|
||||
$themetek_page_title_subtitle_color = ' color:'.$themetek_page_title_color;
|
||||
$themetek_page_titlebar_background = get_post_meta( get_the_ID(), '_themetek_page_titlebar_background', true );
|
||||
$themetek_post_id = get_the_ID();
|
||||
$themetek_header_image = wp_get_attachment_image_src( get_post_thumbnail_id($themetek_post_id), 'full', false );
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) && is_post_type_archive( 'product' ) ) {
|
||||
$shop_page_id = wc_get_page_id( 'shop' );
|
||||
/* Shop page title color */
|
||||
$shop_page_title_color = get_post_meta( $shop_page_id, '_themetek_page_title_color', true );
|
||||
$shop_title_color = 'color:'.$shop_page_title_color;
|
||||
|
||||
/* Shop page title align */
|
||||
$values = get_post_custom( $shop_page_id );
|
||||
$shop_page_title_align = isset( $values['page_title_align'] ) ? esc_attr( $values['page_title_align'][0] ) : '';
|
||||
if ( $shop_page_title_align == "left-align" ) {
|
||||
$shop_title_bar_text_align = 'blog-title-left';
|
||||
} elseif ( $shop_page_title_align == "center-align" ) {
|
||||
$shop_title_bar_text_align = 'blog-title-center';
|
||||
} elseif ( $shop_page_title_align == "right-align" ) {
|
||||
$shop_title_bar_text_align = 'blog-title-right';
|
||||
}
|
||||
|
||||
/* Shop page header image */
|
||||
$shop_page_header_image = wp_get_attachment_image_src( get_post_thumbnail_id($shop_page_id), 'full', false );
|
||||
|
||||
/* Shop page title bar background color */
|
||||
$shop_page_titlebar_background = get_post_meta( $shop_page_id, '_themetek_page_titlebar_background', true );
|
||||
if ($shop_page_titlebar_background != '') {
|
||||
$shop_titlebar_bg = $shop_page_titlebar_background;
|
||||
}
|
||||
|
||||
/* Shop page show/hide title */
|
||||
$shop_page_showhide_title_section = get_post_meta( $shop_page_id, '_themetek_page_showhide_title_section', true );
|
||||
|
||||
/* Shop page show/hide breadcrumbs */
|
||||
$shop_page_showhide_breadcrumbs = get_post_meta( $shop_page_id, '_themetek_page_showhide_breadcrumbs', true );
|
||||
|
||||
/* Shop page subtitle */
|
||||
$shop_page_subtitle = get_post_meta( $shop_page_id, '_themetek_page_subtitle', true );
|
||||
}
|
||||
|
||||
/* Single Page title bar background color */
|
||||
if ($themetek_page_titlebar_background != '') {
|
||||
$titlebar_bg = $themetek_page_titlebar_background;
|
||||
}
|
||||
|
||||
if (!is_404()) {
|
||||
$values = get_post_custom( get_the_ID() );
|
||||
$keydesign_page_title_align = isset( $values['page_title_align'] ) ? esc_attr( $values['page_title_align'][0] ) : '';
|
||||
if ( $keydesign_page_title_align == "left-align" ) {
|
||||
$single_page_title_align = 'blog-title-left';
|
||||
} elseif ( $keydesign_page_title_align == "center-align" ) {
|
||||
$single_page_title_align = 'blog-title-center';
|
||||
} elseif ( $keydesign_page_title_align == "right-align" ) {
|
||||
$single_page_title_align = 'blog-title-right';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-blog-header-text-align']) && $redux_ThemeTek['tek-blog-header-text-align'] != '') {
|
||||
$title_align_class = $redux_ThemeTek['tek-blog-header-text-align'];
|
||||
}
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-single-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-single-sidebar'] = 1;
|
||||
}
|
||||
|
||||
if (is_single() && $redux_ThemeTek['tek-blog-single-sidebar'] == 0) {
|
||||
$title_align_class = 'blog-title-center';
|
||||
} elseif (is_single() && $redux_ThemeTek['tek-blog-single-sidebar'] == 1) {
|
||||
$title_align_class = 'blog-title-left';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php if ( class_exists( 'bbPress' ) && is_bbpress() ) : ?>
|
||||
<header class="entry-header blog-header bbpress-header">
|
||||
<div class="container">
|
||||
<h2 class="section-heading">
|
||||
<?php the_title(); ?>
|
||||
</h2>
|
||||
<div class="bbpress-breadcrumbs"></div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php elseif (class_exists( 'WooCommerce' ) && is_woocommerce()) : ?>
|
||||
<?php if ( empty($shop_page_showhide_title_section)) : ?>
|
||||
<header class="entry-header blog-header <?php if (isset($redux_ThemeTek['tek-topbar'])) { if ($redux_ThemeTek['tek-topbar'] == '1') { echo esc_attr('with-topbar'); }} ?>" <?php if ($shop_titlebar_bg != '') { echo 'style="background-color: '.$shop_titlebar_bg.';"'; } ?>>
|
||||
<div class="row blog-page-heading <?php if (is_shop()) { echo esc_attr($shop_title_bar_text_align); } ?>">
|
||||
<?php if ( is_shop() && $shop_page_header_image != '' ) : ?>
|
||||
<div class="header-overlay parallax-overlay" style="background-image:url('<?php echo esc_url($shop_page_header_image[0]); ?>')"></div>
|
||||
<?php endif; ?>
|
||||
<div class="container">
|
||||
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
|
||||
<h1 class="section-heading" <?php if (!empty($shop_title_color)) : ?> style="<?php echo esc_attr($shop_title_color); ?>" <?php endif; ?>><?php woocommerce_page_title(); ?></h1>
|
||||
<?php do_action( 'woocommerce_archive_description' ); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (is_shop() && $shop_page_subtitle != '') : ?>
|
||||
<p class="section-subheading" <?php if (!empty($shop_title_color)) : ?> style="<?php echo esc_attr($shop_title_color); ?>" <?php endif; ?>><?php echo esc_html($shop_page_subtitle); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if(function_exists('bcn_display') && empty($shop_page_showhide_breadcrumbs)) : ?>
|
||||
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" <?php if (!empty($shop_title_color)) : ?> style="<?php echo esc_attr($shop_title_color); ?>" <?php endif; ?>>
|
||||
<?php bcn_display(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php elseif(is_home() || is_search() || is_archive() || is_single() && !is_singular( 'portfolio' )) : ?>
|
||||
<header class="entry-header blog-header <?php if (isset($redux_ThemeTek['tek-topbar'])) { if ($redux_ThemeTek['tek-topbar'] == '1') { echo esc_attr('with-topbar'); }} ?>">
|
||||
<div class="row blog-page-heading <?php echo esc_attr($title_align_class); ?>">
|
||||
<?php if (!is_single()) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-blog-header-template']) && $redux_ThemeTek['tek-blog-header-template'] == 'blog-header-titlebar') : ?>
|
||||
<div class="header-overlay parallax-overlay" style="background-image:url('<?php echo esc_url($keydesign_header_image[0]); ?>')"></div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<div class="container">
|
||||
<?php if( is_home() ) : ?>
|
||||
<?php if (isset($redux_ThemeTek['tek-blog-title-switch'])) : ?>
|
||||
<?php if ($redux_ThemeTek['tek-blog-title-switch'] != '0') : ?>
|
||||
<h1 class="section-heading"><?php echo esc_html($blog_title); ?></h1>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<h1 class="section-heading"><?php echo esc_html($blog_title); ?></h1>
|
||||
<p class="site-description"><?php echo esc_html($description); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_search_query_title', esc_html__("Search results for", "ekko") ); ?>: <?php the_search_query(); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_category() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_single_cat_title', esc_html__("Currently browsing", "ekko") ); ?>: <?php single_cat_title(); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_tag() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_single_tag_title', esc_html__("All posts tagged", "ekko") ); ?>: <?php single_tag_title(); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_author() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_author_archive_title', esc_html__("All posts by", "ekko") ); ?> <?php echo esc_html(get_userdata(get_query_var('author'))->display_name); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_day() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_day_archive_title', esc_html__("Posts archive for", "ekko") ); ?> <?php echo get_the_date('F jS, Y'); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_month() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_month_archive_title', esc_html__("Posts archive for", "ekko") ); ?> <?php echo get_the_date('F, Y'); ?>
|
||||
</h1>
|
||||
<?php elseif ( is_year() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters( 'kd_year_archive_title', esc_html__("Posts archive for", "ekko") ); ?> <?php echo get_the_date('Y'); ?>
|
||||
</h1>
|
||||
<?php elseif ( get_page( get_option('page_for_posts') ) && !is_single() ) : ?>
|
||||
<h1 class="section-heading">
|
||||
<?php echo apply_filters('the_title',get_page( get_option('page_for_posts') )->post_title); ?>
|
||||
</h1>
|
||||
<?php elseif (!is_single()) : ?>
|
||||
<h1 class="section-heading"><?php echo esc_html(get_the_title(get_queried_object_id())); ?></h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($redux_ThemeTek['tek-blog-subtitle']) && ($redux_ThemeTek['tek-blog-subtitle'] != '') && is_home() ) : ?>
|
||||
<p class="section-subheading"><?php echo esc_html($redux_ThemeTek['tek-blog-subtitle']); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(function_exists('bcn_display')) : ?>
|
||||
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
|
||||
<?php bcn_display(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($redux_ThemeTek['tek-blog-header-form']) && is_home()) : ?>
|
||||
<?php if( !empty($redux_ThemeTek['tek-blog-header-form-id']) && $redux_ThemeTek['tek-blog-header-form'] == 1 ) : ?>
|
||||
<div class="blog-header-form">
|
||||
<?php echo do_shortcode('[contact-form-7 id="'. esc_attr($redux_ThemeTek['tek-blog-header-form-id']).'"]'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<?php elseif(!is_404() && !is_singular( 'portfolio' )) : ?>
|
||||
<?php if ( empty($themetek_page_showhide_title_section) && !is_single()) : ?>
|
||||
<header class="entry-header single-page-header <?php if (isset($redux_ThemeTek['tek-topbar'])) { if ($redux_ThemeTek['tek-topbar'] == '1') { echo esc_attr('with-topbar'); }} ?>" <?php if ($titlebar_bg != '') { echo 'style="background-color: '.$titlebar_bg.';"'; } ?>>
|
||||
<div class="row single-page-heading <?php echo esc_attr($single_page_title_align); ?>">
|
||||
<?php if (!empty($themetek_header_image) && !is_single()) : ?>
|
||||
<div class="header-overlay parallax-overlay" style="background-image:url('<?php echo esc_url($themetek_header_image[0]); ?>')"></div>
|
||||
<?php endif; ?>
|
||||
<div class="container">
|
||||
<h1 class="section-heading" <?php if (!empty($themetek_page_title_color)) : ?> style="<?php echo esc_attr($themetek_page_title_subtitle_color); ?>" <?php endif; ?>><?php the_title(); ?></h1>
|
||||
<?php if (($themetek_page_subtitle) && !is_single()) : ?>
|
||||
<p class="section-subheading" <?php if (!empty($themetek_page_title_color)) : ?> style="<?php echo esc_attr($themetek_page_title_subtitle_color); ?>" <?php endif; ?>><?php echo esc_html($themetek_page_subtitle); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if(function_exists('bcn_display') && empty($themetek_page_showhide_breadcrumbs)) : ?>
|
||||
<div <?php echo (!empty($themetek_page_title_color) ? 'style="color: '.$themetek_page_title_color.';"' : ''); ?> class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
|
||||
<?php bcn_display(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<?php elseif(is_singular( 'portfolio' )) : ?>
|
||||
<?php if ( empty($themetek_page_showhide_title_section)) : ?>
|
||||
<header class="entry-header single-page-header <?php if (isset($redux_ThemeTek['tek-topbar'])) { if ($redux_ThemeTek['tek-topbar'] == '1') { echo esc_attr('with-topbar'); }} ?>" <?php if ($titlebar_bg != '') { echo 'style="background-color: '.$titlebar_bg.';"'; } ?>>
|
||||
<div class="row single-page-heading <?php echo esc_attr($single_page_title_align); ?>">
|
||||
<div class="container">
|
||||
<h1 class="section-heading" <?php if (!empty($themetek_page_title_color)) : ?> style="<?php echo esc_attr($themetek_page_title_subtitle_color); ?>" <?php endif; ?>><?php the_title(); ?></h1>
|
||||
<?php if (($themetek_page_subtitle)) : ?>
|
||||
<p class="section-subheading" <?php if (!empty($themetek_page_title_color)) : ?> style="<?php echo esc_attr($themetek_page_title_subtitle_color); ?>" <?php endif; ?>><?php echo esc_html($themetek_page_subtitle); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if(function_exists('bcn_display')) : ?>
|
||||
<div <?php echo (!empty($themetek_page_title_color) ? 'style="color: '.$themetek_page_title_color.';"' : ''); ?> class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
|
||||
<?php bcn_display(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
112
wp-content/themes/ekko/core/templates/header/content-topbar.php
Normal file
112
wp-content/themes/ekko/core/templates/header/content-topbar.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
// Do not allow directly accessing this file.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit( 'Direct script access denied.' );
|
||||
}
|
||||
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$social_icon_class = $content_to_display = $topbar_left_content = $topbar_right_content = $topbar_content_design = $topbar_left_empty = $topbar_right_empty = '';
|
||||
|
||||
if ( ! function_exists( 'kd_topbar_content' ) ) {
|
||||
function kd_topbar_content ( $topbar_section ) {
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$section_content = '';
|
||||
$content_to_display = $redux_ThemeTek[$topbar_section];
|
||||
|
||||
if ( 'contact-info' === $content_to_display ) {
|
||||
$section_content = '<div class="topbar-contact">';
|
||||
if (isset($redux_ThemeTek['tek-business-phone']) && $redux_ThemeTek['tek-business-phone'] != '' ) {
|
||||
$section_content .= '<span class="topbar-phone"><i class="fa fa-phone"></i><a href="tel:'. esc_attr($redux_ThemeTek['tek-business-phone']) .'">'. esc_html($redux_ThemeTek['tek-business-phone']) .'</a></span>';
|
||||
}
|
||||
if (isset($redux_ThemeTek['tek-business-email']) && $redux_ThemeTek['tek-business-email'] != '' ) {
|
||||
$section_content .= '<span class="topbar-email"><i class="fa fa-envelope-o"></i><a href="mailto:'. esc_attr($redux_ThemeTek['tek-business-email']) .'">'. esc_html($redux_ThemeTek['tek-business-email']) .'</a></span>';
|
||||
}
|
||||
if (isset($redux_ThemeTek['tek-business-opening-hours']) && $redux_ThemeTek['tek-business-opening-hours'] != '' ) {
|
||||
$section_content .= '<span class="topbar-opening-hours"><i class="fa fa-clock-o"></i>'. esc_html($redux_ThemeTek['tek-business-opening-hours']) .'</span>';
|
||||
}
|
||||
$section_content .= '</div>';
|
||||
} elseif ( 'social-links' === $content_to_display ) {
|
||||
$section_content = '<div class="topbar-socials">';
|
||||
if( class_exists( 'ReduxFramework' )) {
|
||||
$section_content .= do_shortcode('[social_profiles]');
|
||||
}
|
||||
$section_content .= '</div>';
|
||||
} elseif ( 'navigation' === $content_to_display ) {
|
||||
$section_content = '<div class="topbar-menu">';
|
||||
if ( has_nav_menu( 'topbar-menu' ) ) {
|
||||
$section_content .= wp_nav_menu( array( 'theme_location' => 'topbar-menu', 'depth' => 1, 'container' => false, 'menu_class' => 'navbar-topbar', 'fallback_cb' => 'false', 'echo' => false ) );
|
||||
}
|
||||
$section_content .= '</div>';
|
||||
}
|
||||
|
||||
return $section_content;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($redux_ThemeTek['tek-topbar-content-design']) && 'empty' != $redux_ThemeTek['tek-topbar-content-design']) {
|
||||
$topbar_content_design = $redux_ThemeTek['tek-topbar-content-design'];
|
||||
}
|
||||
|
||||
$topbar_left_content = kd_topbar_content( 'tek-topbar-left-content' );
|
||||
$topbar_right_content = kd_topbar_content( 'tek-topbar-right-content' );
|
||||
|
||||
if ( $redux_ThemeTek['tek-topbar-left-content'] == 'empty' ) {
|
||||
$topbar_left_empty = 'content-empty';
|
||||
}
|
||||
if ( $redux_ThemeTek['tek-topbar-right-content'] == 'empty' ) {
|
||||
$topbar_right_empty = 'content-empty';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-topbar']) : ?>
|
||||
<?php if ( 'empty' != $redux_ThemeTek['tek-topbar-left-content'] || 'empty' != $redux_ThemeTek['tek-topbar-right-content'] ) : ?>
|
||||
<div class="topbar <?php echo esc_attr($topbar_content_design); ?>">
|
||||
<div class="container">
|
||||
<div class="topbar-left-content <?php echo esc_attr($topbar_left_empty); ?>">
|
||||
<?php
|
||||
// This variable ($topbar_left_content) has been safely escaped in the following file: ekko/core/templates/header/content-topbar.php Lines: 10-44
|
||||
?>
|
||||
<?php echo $topbar_left_content; ?>
|
||||
</div>
|
||||
<div class="topbar-right-content <?php echo esc_attr($topbar_right_empty); ?>">
|
||||
<?php
|
||||
// This variable ($topbar_right_content) has been safely escaped in the following file: ekko/core/templates/header/content-topbar.php Lines: 10-44
|
||||
?>
|
||||
<?php echo $topbar_right_content; ?>
|
||||
</div>
|
||||
<div class="topbar-extra-content">
|
||||
<?php if( !empty($redux_ThemeTek['tek-topbar-search']) && $redux_ThemeTek['tek-topbar-search'] == 1 ) : ?>
|
||||
<div class="topbar-search">
|
||||
<span class="toggle-search fa-search fa"></span>
|
||||
<div class="topbar-search-container">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( function_exists('wpml_loaded') ) : ?>
|
||||
<div class="topbar-lang-switcher">
|
||||
<div class="lang-switcher-wpml">
|
||||
<?php do_action( 'wpml_add_language_selector' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ( class_exists('Polylang') && function_exists('pll_the_languages')) : ?>
|
||||
<div class="topbar-lang-switcher">
|
||||
<ul class="lang-switcher-polylang">
|
||||
<?php pll_the_languages( array( 'show_flags' => 1,'show_names' => 1) ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (class_exists( 'WooCommerce' )) {
|
||||
if( isset($redux_ThemeTek['tek-woo-display-cart-icon']) && ($redux_ThemeTek['tek-woo-display-cart-icon'] == '1')) {
|
||||
$keydesign_minicart = '';
|
||||
$keydesign_minicart = keydesign_add_cart_in_menu();
|
||||
echo do_shortcode( shortcode_unautop( $keydesign_minicart ) );
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
?>
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ) ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) : ?>
|
||||
<link href="<?php echo esc_url($redux_ThemeTek['tek-favicon']['url']); ?>" rel="icon">
|
||||
<?php endif; ?>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class('maintenance-mode'); ?> style="background-image: url('<?php if (isset($redux_ThemeTek['tek-maintenance-bg-image']) && $redux_ThemeTek['tek-maintenance-bg-image'] != '' ) { echo esc_url($redux_ThemeTek['tek-maintenance-bg-image']['url']); } ?>')">
|
||||
<div class="container section">
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-title']) :?>
|
||||
<h2 class="maintenance-title"><?php echo esc_html($redux_ThemeTek['tek-maintenance-title']); ?></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-content']) :?>
|
||||
<div class="maintenance-content"><?php echo wp_kses_post($redux_ThemeTek['tek-maintenance-content']); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-countdown']) :?>
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-count-day'] && $redux_ThemeTek['tek-maintenance-count-month'] && $redux_ThemeTek['tek-maintenance-count-year']) : ?>
|
||||
<?php echo do_shortcode('[tek_countdown starting_year="'.esc_attr($redux_ThemeTek['tek-maintenance-count-year']).'" starting_month="'.esc_attr($redux_ThemeTek['tek-maintenance-count-month']).'" starting_day="'.esc_attr($redux_ThemeTek['tek-maintenance-count-day']).'" cd_text_days="Days" cd_text_hours="Hours" cd_text_minutes="Minutes" cd_text_seconds="Seconds"]'); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-subscribe']) : ?>
|
||||
<?php if ($redux_ThemeTek['tek-maintenance-form-select'] == '1' && isset($redux_ThemeTek['tek-maintenance-contactf7-formid'])) : ?>
|
||||
<div class="inline-cf">
|
||||
<?php echo do_shortcode('[contact-form-7 id="'. esc_attr($redux_ThemeTek['tek-maintenance-contactf7-formid']).'"]'); ?>
|
||||
</div>
|
||||
<?php elseif ($redux_ThemeTek['tek-maintenance-form-select'] == '2' && $redux_ThemeTek['tek-maintenance-ninja-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[ninja_form id="'. esc_attr($redux_ThemeTek['tek-maintenance-ninja-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-maintenance-form-select'] == '3' && $redux_ThemeTek['tek-maintenance-gravity-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[gravityform id="'. esc_attr($redux_ThemeTek['tek-maintenance-gravity-formid']).'"]'); ?>
|
||||
<?php elseif ($redux_ThemeTek['tek-maintenance-form-select'] == '4' && $redux_ThemeTek['tek-maintenance-wp-formid'] != '') : ?>
|
||||
<?php echo do_shortcode('[wpforms id="'. esc_attr($redux_ThemeTek['tek-maintenance-wp-formid']).'"]'); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php wp_footer(); ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays content for front page
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$themetek_page_bgcolor = get_post_meta( get_the_ID(), '_themetek_page_bgcolor', true );
|
||||
$themetek_page_background_color = ' background-color:'.$themetek_page_bgcolor.';';
|
||||
?>
|
||||
<section id="<?php echo esc_attr($post->post_name);?>" class="section" style="<?php echo ( !empty($themetek_page_bgcolor) ? esc_attr($themetek_page_background_color) : '' ); ?>">
|
||||
<div class="container" >
|
||||
<div class="row">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
41
wp-content/themes/ekko/core/templates/page/content-page.php
Normal file
41
wp-content/themes/ekko/core/templates/page/content-page.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying page content in page.php
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$themetek_page_bgcolor = get_post_meta( get_the_ID(), '_themetek_page_bgcolor', true );
|
||||
$themetek_page_background_color = ' background-color:'.$themetek_page_bgcolor.';';
|
||||
?>
|
||||
|
||||
<section id="single-page" class="section <?php echo esc_attr($post->post_name);?>" style="<?php echo ( !empty($themetek_page_bgcolor) ? esc_attr($themetek_page_background_color) : '' ); ?>">
|
||||
<div class="container">
|
||||
<div class="row single-page-content">
|
||||
<?php if ( is_active_sidebar( 'bbpress-sidebar' ) && class_exists( 'bbPress' ) && is_bbpress() ) : ?>
|
||||
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
|
||||
<?php endif; ?>
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ekko' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
); ?>
|
||||
<?php if ( is_active_sidebar( 'bbpress-sidebar' ) && class_exists( 'bbPress' ) && is_bbpress() ) : ?>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
|
||||
<div class="right-sidebar">
|
||||
<?php dynamic_sidebar( 'bbpress-sidebar' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php /**
|
||||
* The template for displaying the navigation area for Portfolio post types
|
||||
*/ ?>
|
||||
|
||||
<div class="row portfolio-navigation-links col-lg-12">
|
||||
<div class="container">
|
||||
<div class="port-nav-prev col-sm-6 col-lg-6">
|
||||
<?php
|
||||
$prev_post = get_adjacent_post(false, '', true);
|
||||
if(!empty($prev_post)) {
|
||||
echo '<a class="port-prev tt_button" href="' . esc_url(get_permalink($prev_post->ID)) . '" title="' . esc_attr($prev_post->post_title) . '">' . esc_html__("Previous project", "ekko") . '</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="port-nav-next col-sm-6 col-lg-6">
|
||||
<?php $next_post = get_adjacent_post(false, '', false);
|
||||
if(!empty($next_post)) {
|
||||
echo '<a class="port-next tt_button" href="' . esc_url(get_permalink($next_post->ID)) . '" title="' . esc_attr($next_post->post_title) . '">' . esc_html__("Next project", "ekko") . '</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Related posts for Portfolio post types
|
||||
*/
|
||||
|
||||
if(!( 'portfolio' == get_post_type() )) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$carousel_class = '';
|
||||
$terms = get_the_terms( $post->ID , 'portfolio-category', 'string');
|
||||
if ($terms == 0) {
|
||||
return false;
|
||||
}
|
||||
$term_ids = array_values( wp_list_pluck( $terms,'term_id' ) );
|
||||
|
||||
$related_query = new WP_Query(
|
||||
array(
|
||||
'post_type' => 'portfolio',
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'portfolio-category',
|
||||
'field' => 'id',
|
||||
'terms' => $term_ids,
|
||||
'operator'=> 'IN'
|
||||
)
|
||||
),
|
||||
'posts_per_page' => $redux_ThemeTek['tek-portfolio-related-posts-number'],
|
||||
'ignore_sticky_posts' => 1,
|
||||
'orderby' => 'rand',
|
||||
'post__not_in' => array($post->ID)
|
||||
)
|
||||
);
|
||||
|
||||
if( $related_query->found_posts == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($related_query->found_posts > 3 && $redux_ThemeTek['tek-portfolio-related-posts-number'] > 3) {
|
||||
$carousel_class = 'owlslider-related-posts';
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="related-posts">
|
||||
<div class="container">
|
||||
<?php if (isset($redux_ThemeTek['tek-portfolio-related-posts-title']) && $redux_ThemeTek['tek-portfolio-related-posts-title'] != '') : ?>
|
||||
<div class="related-title">
|
||||
<h3><?php echo esc_html($redux_ThemeTek['tek-portfolio-related-posts-title']); ?></h3>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="related-content <?php echo esc_attr($carousel_class); ?>">
|
||||
<?php
|
||||
if ( $related_query->have_posts() ) : while ( $related_query->have_posts() ) : $related_query->the_post();
|
||||
get_template_part('core/templates/portfolio/project', 'minimal-grid');
|
||||
endwhile;
|
||||
else :
|
||||
get_template_part('core/templates/post/content','none');
|
||||
endif;
|
||||
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying the portfolio page content
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$load_nav = $load_related = $load_comments = '';
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$themetek_page_bgcolor = get_post_meta( get_the_ID(), '_themetek_page_bgcolor', true );
|
||||
$themetek_page_background_color = ' background-color:'.$themetek_page_bgcolor.';';
|
||||
$themetek_page_top_padding = get_post_meta( get_the_ID(), '_themetek_page_top_padding', true );
|
||||
$themetek_page_bottom_padding = get_post_meta( get_the_ID(), '_themetek_page_bottom_padding', true );
|
||||
if (isset($redux_ThemeTek['tek-portfolio-single-nav']) && $redux_ThemeTek['tek-portfolio-single-nav'] == true ) {
|
||||
$load_nav = true;
|
||||
}
|
||||
if (isset($redux_ThemeTek['tek-portfolio-related-posts']) && $redux_ThemeTek['tek-portfolio-related-posts'] == true ) {
|
||||
$load_related = true;
|
||||
}
|
||||
if (isset($redux_ThemeTek['tek-portfolio-comments']) && $redux_ThemeTek['tek-portfolio-comments'] == true ) {
|
||||
$load_comments = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<section id="single-page" class="section portfolio-wrapper <?php echo esc_attr($post->post_name);?>" style="
|
||||
<?php echo ( !empty($themetek_page_bgcolor) ? esc_attr($themetek_page_background_color) : '' ); ?>
|
||||
<?php echo ( !empty($themetek_page_top_padding) ? ' padding-top:'. esc_attr($themetek_page_top_padding) .';' : '' );?>
|
||||
<?php echo ( !empty($themetek_page_bottom_padding) ? ' padding-bottom:'. esc_attr($themetek_page_bottom_padding) .';' : '' );?> ">
|
||||
<div class="container">
|
||||
<div class="row single-page-content portfolio-single">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php if ($load_nav) : ?>
|
||||
<?php get_template_part( 'core/templates/portfolio/content', 'project-nav' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($load_related) : ?>
|
||||
<?php get_template_part( 'core/templates/portfolio/content', 'project-related' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( $load_comments ) :
|
||||
if ( comments_open() || get_comments_number() ) : ?>
|
||||
<div class="page-content comments-content container">
|
||||
<?php comments_template(); ?>
|
||||
</div>
|
||||
<?php endif;
|
||||
endif;
|
||||
?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying portfolio item boxes
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$without_image_class = '';
|
||||
|
||||
if (!has_post_thumbnail()) {
|
||||
$without_image_class .= 'without-image';
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-grid-image'); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="entry-wrapper <?php echo esc_attr($without_image_class); ?>">
|
||||
<div class="entry-meta">
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span>
|
||||
<?php
|
||||
$terms_slug_str = '';
|
||||
$terms = get_the_terms($post->ID, 'portfolio-category' );
|
||||
if ($terms && ! is_wp_error($terms)) :
|
||||
$term_slugs_arr = array();
|
||||
foreach ($terms as $term) {
|
||||
$term_slugs_arr[] = $term->name;
|
||||
}
|
||||
$terms_slug_str = join(", ", $term_slugs_arr);
|
||||
endif;
|
||||
echo esc_attr($terms_slug_str);
|
||||
?>
|
||||
</span>
|
||||
</div>
|
||||
<h5 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
|
||||
<div class="entry-content">
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'View project', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$without_image_class = '';
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
|
||||
if (!has_post_thumbnail()) {
|
||||
$without_image_class .= 'without-image';
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-grid-image'); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="entry-wrapper <?php echo esc_attr($without_image_class); ?>">
|
||||
<h4 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<div class="post-meta-child">
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
</div>
|
||||
<div class="post-meta-child">
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="entry-content">
|
||||
<?php the_excerpt(); ?>
|
||||
<?php wp_link_pages(); ?>
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$url = $entry_class = '';
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
|
||||
if ( !has_post_thumbnail() ) {
|
||||
$entry_class .="without-image";
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="entry-image">
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-left-image'); ?></a>
|
||||
</div>
|
||||
<div class="entry-wrapper <?php echo esc_attr($entry_class); ?>">
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
</div>
|
||||
<?php if ('quote' === get_post_format()) : ?>
|
||||
<h2 class="blog-single-title quote"><?php the_title(); ?></h2>
|
||||
<?php else : ?>
|
||||
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
|
||||
<?php endif; ?>
|
||||
<div class="entry-content">
|
||||
<?php the_excerpt(); ?>
|
||||
<?php wp_link_pages(); ?>
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<?php if ('quote' === get_post_format()) : ?>
|
||||
<h2 class="blog-single-title quote"><?php the_title(); ?></h2>
|
||||
<?php else : ?>
|
||||
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
|
||||
<?php endif; ?>
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
|
||||
</div>
|
||||
<?php get_template_part( 'core/templates/post/post-type/content', get_post_format() ); ?>
|
||||
<div class="entry-content">
|
||||
<div class="page-content">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
<?php wp_link_pages(); ?>
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$without_image_class = '';
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
|
||||
if (!has_post_thumbnail()) {
|
||||
$without_image_class .= 'without-image';
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('keydesign-grid-image'); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="entry-wrapper <?php echo esc_attr($without_image_class); ?>">
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
</div>
|
||||
<h5 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
|
||||
<div class="entry-content">
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
|
||||
</div>
|
||||
<div class="entry-content">
|
||||
<?php the_excerpt(); ?>
|
||||
<?php wp_link_pages(); ?>
|
||||
</div>
|
||||
</article>
|
||||
27
wp-content/themes/ekko/core/templates/post/content-none.php
Normal file
27
wp-content/themes/ekko/core/templates/post/content-none.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying a message that posts cannot be found
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section id="posts-content" class="container">
|
||||
<div class="row">
|
||||
<h2 class="section-title"><?php esc_html_e( 'Nothing Found', 'ekko' ); ?></h2>
|
||||
<?php
|
||||
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'ekko' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
<p class="section-subheading"><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again using different keywords.', 'ekko' ); ?></p>
|
||||
<?php get_search_form();
|
||||
else : ?>
|
||||
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'ekko' ); ?></p>
|
||||
<?php get_search_form();
|
||||
endif; ?>
|
||||
</div>
|
||||
</section><!-- .no-results -->
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying posts with excerpts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<h2 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
|
||||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<span class="page-type"><span class="fa fa-file-text-o"></span><?php esc_html_e( 'Post', 'ekko' ); ?></span>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="entry-meta">
|
||||
<?php if ( 'page' === get_post_type() ) : ?>
|
||||
<span class="page-type"><span class="fa fa-file-text-o"></span><?php esc_html_e( 'Page', 'ekko' ); ?></span>
|
||||
<?php elseif ( 'portfolio' === get_post_type() ) : ?>
|
||||
<span class="page-type"><span class="fa fa-file-image-o"></span><?php esc_html_e( 'Portfolio', 'ekko' ); ?></span>
|
||||
<?php elseif ( 'product' === get_post_type() ) : ?>
|
||||
<span class="page-type"><span class="fa fa-shopping-cart"></span><?php esc_html_e( 'Product', 'ekko' ); ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="entry-content">
|
||||
<?php if ( has_excerpt() ) {
|
||||
the_excerpt();
|
||||
} ?>
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php esc_html_e( 'Read more', 'ekko' ); ?></a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying all single posts.
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
?>
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="blog-single-content">
|
||||
<div class="blog-content">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages(); ?>
|
||||
</div>
|
||||
<div class="meta-content">
|
||||
<?php do_action( 'keydesign_post_after_main_content' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying standard posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package ekko
|
||||
* by KeyDesign
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
|
||||
if (!isset($redux_ThemeTek['tek-blog-sidebar'])) {
|
||||
$redux_ThemeTek['tek-blog-sidebar'] = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><h2 class="blog-single-title"><?php the_title(); ?></h2></a>
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option('date_format') ); ?></a></span>
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
<span class="comment-count"><span class="fa fa-comment-o"></span><?php comments_popup_link( esc_html__('No comments yet', 'ekko'), esc_html__('1 comment', 'ekko'), esc_html__('% comments', 'ekko') ); ?></span>
|
||||
</div>
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('large'); ?></a>
|
||||
<div class="entry-content">
|
||||
<?php if(has_excerpt()) : ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php else : ?>
|
||||
<div class="page-content"><?php the_content(); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php wp_link_pages(); ?>
|
||||
<a class="post-link" href="<?php esc_url(the_permalink()); ?>"><?php echo apply_filters( 'blog-readmore-text', esc_html__("Read more", "ekko") ); ?><span class="fa fa-chevron-right"></span></a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Author info box
|
||||
*/
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
if( false === $redux_ThemeTek['tek-author-box'] ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize needed variables
|
||||
global $authordata;
|
||||
$author_id = is_object( $authordata ) ? $authordata->ID : -1;
|
||||
?>
|
||||
<?php if ('' != get_the_author_meta( 'description', $author_id )) : ?>
|
||||
<div class="author-box-wrapper">
|
||||
<figure class="author-avatar">
|
||||
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 85 ); ?>
|
||||
</figure>
|
||||
<div class="author-desc-wrapper">
|
||||
<div class="author-name">
|
||||
<h6><?php esc_html_e('Author:', 'ekko'); ?> <?php the_author_posts_link(); ?></h6>
|
||||
</div>
|
||||
<?php if ('' != get_the_author_meta( 'user_url', $author_id )) : ?>
|
||||
<div class="author-website">
|
||||
<p><?php esc_html_e('Website:', 'ekko'); ?> <a href="<?php echo get_the_author_meta( 'user_url', $author_id ); ?>"><?php echo get_the_author_meta( 'user_url', $author_id ); ?></a></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="author-desc">
|
||||
<?php echo get_the_author_meta( 'description', $author_id ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying comments for single Blog posts
|
||||
*/
|
||||
?>
|
||||
|
||||
<section class="page-content comments-content">
|
||||
<div class="container">
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template
|
||||
if ( comments_open() || '0' != get_comments_number() ) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying meta information for single Blog posts
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php if ( is_sticky() ) echo '<span class="fa fa-thumb-tack"></span> Sticky <span class="blog-separator">|</span> '; ?>
|
||||
<span class="published"><span class="fa fa-clock-o"></span><?php the_time( get_option('date_format') ); ?></span>
|
||||
<span class="author"><span class="fa fa-keyboard-o"></span><?php the_author_posts_link(); ?></span>
|
||||
<span class="blog-label"><span class="fa fa-folder-open-o"></span><?php the_category(', '); ?></span>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying navigation for single Blog posts
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="navigation pagination">
|
||||
<?php previous_post_link('%link', esc_html__('Previous', 'ekko')); ?>
|
||||
<?php next_post_link('%link', esc_html__('Next', 'ekko')); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Related posts for Blog posts
|
||||
*/
|
||||
|
||||
if(!( 'post' == get_post_type() )) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$carousel_class = '';
|
||||
$redux_ThemeTek = get_option( 'redux_ThemeTek' );
|
||||
$terms = get_the_terms( $post->ID , 'category', 'string');
|
||||
if ($terms == 0) {
|
||||
return false;
|
||||
}
|
||||
$term_ids = array_values( wp_list_pluck( $terms,'term_id' ) );
|
||||
|
||||
$related_query = new WP_Query(
|
||||
array(
|
||||
'post_type' => 'post',
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'category',
|
||||
'field' => 'id',
|
||||
'terms' => $term_ids,
|
||||
'operator'=> 'IN'
|
||||
)
|
||||
),
|
||||
'posts_per_page' => $redux_ThemeTek['tek-related-posts-number'],
|
||||
'ignore_sticky_posts' => 1,
|
||||
'orderby' => 'date',
|
||||
'post__not_in' => array($post->ID)
|
||||
)
|
||||
);
|
||||
|
||||
if( $related_query->found_posts == 0) {
|
||||
return false;
|
||||
}
|
||||
if ($related_query->found_posts > 3 && $redux_ThemeTek['tek-related-posts-number'] > 3) {
|
||||
$carousel_class = 'owlslider-related-posts';
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="related-posts">
|
||||
<div class="container">
|
||||
<?php if (isset($redux_ThemeTek['tek-related-posts-title']) && $redux_ThemeTek['tek-related-posts-title'] != '') : ?>
|
||||
<div class="related-title">
|
||||
<h3><?php echo esc_html($redux_ThemeTek['tek-related-posts-title']); ?></h3>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="related-content <?php echo esc_attr($carousel_class); ?>">
|
||||
<?php
|
||||
if ( $related_query->have_posts() ) : while ( $related_query->have_posts() ) : $related_query->the_post();
|
||||
get_template_part('core/templates/post/blog', 'minimal-grid');
|
||||
endwhile;
|
||||
else :
|
||||
get_template_part('core/templates/post/content','none');
|
||||
endif;
|
||||
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying tags for single Blog posts
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
the_tags(
|
||||
'<div class="tags">',
|
||||
' ',
|
||||
'</div>'
|
||||
);
|
||||
?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying titles for single Blog posts
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ('quote' === get_post_format()) : ?>
|
||||
<h1 class="blog-single-title quote"><?php the_title(); ?></h1>
|
||||
<?php else : ?>
|
||||
<h1 class="blog-single-title"><?php the_title(); ?></h1>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
$content = apply_filters( 'the_content', get_the_content() );
|
||||
$audio = false;
|
||||
|
||||
// Only get video from the content if a playlist isn't present.
|
||||
if ( false === strpos( $content, 'wp-playlist-script' ) ) {
|
||||
$audio = get_media_embedded_in_content( $content, array( 'audio', 'iframe' ) );
|
||||
}
|
||||
?>
|
||||
<?php if ( '' !== get_the_post_thumbnail() && empty( $audio ) ) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php the_post_thumbnail('large'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( !empty( $audio ) && !is_single() ) {
|
||||
foreach ( $audio as $audio_html ) {
|
||||
echo '<div class="entry-audio">'.$audio_html.'</div>';
|
||||
}
|
||||
}; ?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php if ( '' !== get_the_post_thumbnail() && ! get_post_gallery() ) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php the_post_thumbnail('large'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php elseif (get_post_gallery() && !is_single()) : ?>
|
||||
<div class="entry-gallery">
|
||||
<?php echo get_post_gallery(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
<?php if ('quote' === get_post_format()) : ?>
|
||||
<h3 class="blog-single-title quote"><?php the_title(); ?></h3>
|
||||
<?php else : ?>
|
||||
<h3 class="blog-single-title"><a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$content = apply_filters( 'the_content', get_the_content() );
|
||||
$video = false;
|
||||
|
||||
// Only get video from the content if a playlist isn't present.
|
||||
if ( false === strpos( $content, 'wp-playlist-script' ) ) {
|
||||
$video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) );
|
||||
}
|
||||
?>
|
||||
<?php if ( '' !== get_the_post_thumbnail() && empty( $video ) ) : ?>
|
||||
<div class="entry-image">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php the_post_thumbnail('large'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( !empty( $video ) && !is_single() && class_exists('KEYDESIGN_ADDON_CLASS') ) {
|
||||
foreach ( $video as $video_html ) {
|
||||
echo '<div class="entry-video">
|
||||
<div class="video-cover">
|
||||
<div class="background-video-image">'. wp_get_attachment_image(get_post_thumbnail_id(), 'large') .'</div>
|
||||
<div class="play-video"><span class="fa fa-play"></span></div>';
|
||||
echo '<div class="kd-esc-video">'.$video_html.'</div>';
|
||||
echo '</div>
|
||||
</div>';
|
||||
}
|
||||
} elseif (!class_exists('KEYDESIGN_ADDON_CLASS')) {
|
||||
foreach ( $video as $video_html ) {
|
||||
echo '<div class="entry-video simple-video-iframe">'.$video_html.'</div>';
|
||||
}
|
||||
} ?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="entry-image">
|
||||
<?php if (is_single()) :
|
||||
the_post_thumbnail('large');
|
||||
else: ?>
|
||||
<a href="<?php esc_url(the_permalink()); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('large'); ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user