<?php /** * Portfolio Widget Recent Style 2 * * @since roen 1.0 */ global $portfolio_recent_post_content; $output = ''; $thumbnail_size = 'thumbnail'; $output .= '<div class="sidebar-portfolio-recent thumbs-style">'; if (has_post_thumbnail(get_the_ID())) { $output .= '<aside class="post-thumbs"><a href="' . esc_url(get_permalink()) . '"><div class="post-img"> ' . get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')) . ' <div class="post-tip"> <div class="center-link"><i class="' . roen_get_post_type_icon(penguin_get_post_meta_key('portfolio-type'), 'portfolio') . '"></i></div> </div> </div></a></aside>'; } $output .= '<div class="post-content"> <a href="' . esc_url(get_permalink()) . '">' . get_the_title() . '</a> <div class="portfolio-categories">' . penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', false), '<span class="seperator">/</span>') . '</div> </div> </div>'; $portfolio_recent_post_content = $output; ?>
* @since roen 1.0 */ global $term, $portfolio_default_page_id, $paged, $thumbnail_size, $page_columns; // get the taxonomy slug $slug = get_query_var('term'); // get the current taxonomy_id $term = get_term_by('slug', $slug, 'portfolio-cats'); get_header(); // get page layout $layout = roen_get_page_layout($portfolio_default_page_id); $layout_class = roen_get_page_layout_class($portfolio_default_page_id); $sidebar_name = penguin_get_post_meta_key('sidebar-type', $portfolio_default_page_id); $page_columns = intval(penguin_get_post_meta_key('page-posts-cols', $portfolio_default_page_id)); $page_item_style = intval(penguin_get_post_meta_key('portfolio-show-style', $portfolio_default_page_id)) + 1; $page_image_no_crop = penguin_get_post_meta_key('page-posts-img-no-crop', $portfolio_default_page_id); $page_items_no_space = penguin_get_post_meta_key('page-posts-img-no-space', $portfolio_default_page_id); $page_columns_class = roen_get_element_columns(intval($page_columns)); $thumbnail_size = roen_get_thumbnail_size(intval($page_columns), $page_image_no_crop); ?> <div id="main" class="container"> <div class="row"> <section class="<?php echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class; ?> "> <div class="portfolio-main-area"> <section class="portfolio-container <?php echo $page_items_no_space == 'on' ? 'portfolio-no-space' : 'row'; ?> portfolio-isotope">
<div class="post-meta" itemprop="genre"><?php echo penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'member-cats', false), '<span class="seperator">/</span>', 'member-cats'); ?> </div> </header><!-- .entry-header --> <div class="short-content"> <?php echo do_shortcode(penguin_get_post_meta_key('member-shortdesc')); ?> </div> </div> </div> <div class="custom-right-side col-md-4 col-sm-4"> <?php echo do_shortcode(penguin_get_post_meta_key('member-custom-right')); ?> </div> </div> <?php edit_post_link('<i class="fa fa-edit"></i>' . __('Edit', 'ROEN'), '', ''); ?> <div class="entry-content" itemprop="articleBody"> <?php the_content(); ?> <?php wp_link_pages();
/** * Get page sticky logo * * @since roen 1.0 */ function roen_get_page_sticky_logo() { if (is_page() || is_single() || is_home() || is_front_page()) { if (is_home() && !is_front_page() && intval(get_option('page_for_posts')) > 0) { $post_id = get_option('page_for_posts'); } else { $post_id = get_the_ID(); } $sticky_type = penguin_get_post_meta_key('page-sticky-type', $post_id, 0); if (intval($sticky_type) != 0) { if (penguin_get_options_key('logo-light-image') != "") { ?> <img class="logo-light-default" src="<?php echo esc_url(penguin_get_options_key('logo-light-image')); ?> " width="<?php echo penguin_get_options_key('logo-image-width'); ?> " height="<?php echo penguin_get_options_key('logo-image-height'); ?> " alt=""> <?php } if (penguin_get_options_key('logo-light-retina-image') != "") { ?> <img class="logo-light-retina" src="<?php echo esc_url(penguin_get_options_key('logo-light-retina-image')); ?> " width="<?php echo penguin_get_options_key('logo-image-width'); ?> " height="<?php echo penguin_get_options_key('logo-image-height'); ?> " alt=""> <?php } } } }
<div class="portfolio-tip"> <?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?> <div class="btns"> <a href="<?php echo get_permalink(); ?> " class="portfolio-link"><i class="fa fa-file-text"></i></a> <?php if (penguin_get_post_meta_key('portfolio-link') != "") { ?> <a href="<?php echo penguin_get_post_meta_key('portfolio-link'); ?> " target="_blank" class="portfolio-link"><i class="fa fa-link"></i></a> <?php } ?> <a href="<?php echo esc_url($full_image[0]); ?> " class="fancyBox portfolio-link"><i class="fa fa-search-plus"></i></a> </div> <div class="portfolio-content"> <?php if (intval($page_columns) == 2) { ?>
if (has_post_thumbnail(get_the_ID())) { echo get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')); } else { echo '<div class="no-gravatar"></div>'; } ?> <div class="post-mask-content"> <div class="centered"> <?php $socials = roen_get_social_list(get_the_ID(), 'social-', 'post-meta'); if ($socials != '') { echo '<ul class="inline roen-social member-social">' . $socials . '</ul>'; } ?> </div> </div> </div> <h4 class="entry-title" itemprop="author"><a href="<?php echo get_permalink(get_the_ID()); ?> " itemprop="url"><?php echo penguin_get_post_meta_key('member-nickname', '', get_the_title()); ?> </a></h4> <div class="post-meta" itemprop="genre"><?php echo penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'member-cats', false), '<span class="seperator">/</span>', 'member-cats'); ?> </div> </article>
/** * Single Post Content * * @since roen 1.0 */ get_header(); // get page layout $layout = roen_get_page_layout(); $layout_class = roen_get_page_layout_class(); $sidebar_name = penguin_get_post_meta_key('sidebar-type'); // get blog default sidebar if ($sidebar_name == '' || $sidebar_name == "Global Sidebar") { $blog_page_id = get_option('page_for_posts'); if (intval($blog_page_id) != 0) { $sidebar_name = penguin_get_post_meta_key('sidebar-type', $blog_page_id); } } ?> <div id="main" class="container"> <div class="row"> <section class="<?php echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class; ?> "> <?php if (have_posts()) { while (have_posts()) { the_post(); get_template_part('template/blog/single/content');
/** * The Template for displaying all single products. * * Override this template by copying it to yourtheme/woocommerce/single-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly get_header('shop'); $layout = penguin_get_post_meta_key('layout-type'); if (intval($layout) == 0 || $layout == "") { $layout = 1; } else { $layout = roen_get_page_layout(); $layout_class = roen_get_page_layout_class(); } ?> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */
function roen_custom_option_posts_per_page($value) { if (is_search()) { if (penguin_get_options_key('search-show-num') != '') { return intval(penguin_get_options_key('search-show-num')); } } else { if (is_tax("portfolio-cats")) { $portfolio_default_page_id = roen_get_default_portfolio_page(); if (intval($portfolio_default_page_id) > 0) { $portfolio_per_page_numbers = penguin_get_post_meta_key('page-posts-num', $portfolio_default_page_id); if ($portfolio_per_page_numbers != '') { return intval($portfolio_per_page_numbers); } } } } return $value; }
* Portfolio Single Page Related Items * * @since roen 1.0 */ if (penguin_get_options_key('portfolio-related-enable') == "on") { ?> <div class="post-related wide-background"> <div class="roen-title"> <h3><?php _e('You may also like', 'roen'); ?> </h3> <div class="line"></div> </div> <?php $cat_slugs = penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', true, ",", 'slug'); $related_style = intval(penguin_get_post_meta_key('related-items-style')); $show_number = intval(penguin_get_options_key('portfolio-related-num')); if ($related_style == 0) { $related_style = intval(penguin_get_options_key('portfolio-related-style')) + 1; } if ($show_number == 0) { $show_number = 4; } echo do_shortcode('[portfolio_scroll_list columns="4" number="' . esc_attr($show_number) . '" style="' . esc_attr($related_style) . '" type="related" cat__in="' . esc_attr($cat_slugs) . '" post__not_in="' . get_the_ID() . '"]'); ?> </div> <?php }
<?php /** * Template Name: Member Template * * @since roen 1.0 */ global $thumbnail_size; get_header(); // get page layout $page_nums = penguin_get_post_meta_key('page-posts-num'); $page_item_style = intval(penguin_get_post_meta_key('member-show-style')) + 1; $page_show_filter = penguin_get_post_meta_key('member-show-filter'); $page_cats = penguin_get_post_meta_key('page-member-cat-slugs'); $page_columns = intval(penguin_get_post_meta_key('page-posts-cols')); $page_columns_class = roen_get_element_columns(intval($page_columns)); $thumbnail_size = 'roen-square-thumbs'; ?> <div id="main" class="container"> <div class="row"> <section class="col-md-12 col-sm-12"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="post-content"> <?php the_content();
echo '<div class="no-gravatar"></div>'; } ?> </div> </a> <h4 class="entry-title" itemprop="author"><a href="<?php echo get_permalink(get_the_ID()); ?> " itemprop="url"><?php echo penguin_get_post_meta_key('member-nickname', '', get_the_title()); ?> </a></h4> <div class="post-meta" itemprop="genre"><?php echo penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'member-cats', false), '<span class="seperator">/</span>', 'member-cats'); ?> </div> <?php $socials = roen_get_social_list(get_the_ID(), 'social-', 'post-meta'); if ($socials != '') { echo '<ul class="inline roen-social member-social">' . $socials . '</ul>'; } ?> <div class="entry-summary" itemprop="articleSection"> <?php echo do_shortcode(penguin_get_post_meta_key('member-shortdesc')); ?> </div><!-- .entry-summary --> </article>
<?php /** * Portfolio Ajax Main Content * * @since roen 1.0 */ global $paged, $thumbnail_size, $page_columns; $page_nums = penguin_get_post_meta_key('page-posts-num'); $page_columns = penguin_get_post_meta_key('page-posts-cols'); $page_cats = penguin_get_post_meta_key('page-posts-cat-slugs'); $page_item_style = intval(penguin_get_post_meta_key('portfolio-show-style')) + 1; $page_auto_load = penguin_get_post_meta_key('page-posts-ajax-auto'); $page_image_no_crop = penguin_get_post_meta_key('page-posts-img-no-crop'); $page_items_no_space = penguin_get_post_meta_key('page-posts-img-no-space'); $page_show_filter = penguin_get_post_meta_key('portfolio-show-filter'); $page_columns_class = roen_get_element_columns(intval($page_columns)); $thumbnail_size = roen_get_thumbnail_size(intval($page_columns), $page_image_no_crop); if (isset($_GET['cat']) && $_GET['cat'] != '*') { $page_cats = $_GET['cat']; } if ($paged == 0) { $paged = 1; } $tax_query = array(); $query_slugs = array(); // category if ($page_cats != "") { $slugs = explode(",", $page_cats); foreach ($slugs as $slug) { $slug_details = explode(":", $slug);
* * @since roen 1.0 */ global $paged, $thumbnail_size, $page_columns, $layout; get_header(); // get page layout $layout = roen_get_page_layout(); $layout_class = roen_get_page_layout_class(); $page_nums = penguin_get_post_meta_key('page-posts-num'); $page_columns = intval(penguin_get_post_meta_key('page-posts-cols')); $page_item_style = intval(penguin_get_post_meta_key('portfolio-show-style')) + 1; $page_show_filter = penguin_get_post_meta_key('portfolio-show-filter'); $page_auto_load = penguin_get_post_meta_key('page-posts-ajax-auto'); $page_image_no_crop = penguin_get_post_meta_key('page-posts-img-no-crop'); $page_items_no_space = penguin_get_post_meta_key('page-posts-img-no-space'); $page_cats = penguin_get_post_meta_key('page-posts-cat-slugs'); $page_columns_class = roen_get_element_columns(intval($page_columns)); $thumbnail_size = roen_get_thumbnail_size(intval($page_columns), $page_image_no_crop); ?> <div id="main" class="container"> <div class="row"> <section class="<?php echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class; ?> "> <?php if (have_posts()) { while (have_posts()) { the_post(); ?>
<?php /** * Template Name: Blog Template * * @since roen 1.0 */ global $blog_post_style; get_header(); // get page layout $layout = roen_get_page_layout(); $layout_class = roen_get_page_layout_class(); $per_page_num = penguin_get_post_meta_key('page-posts-num'); $page_cats = penguin_get_post_meta_key('page-posts-cats'); $sidebar_name = penguin_get_post_meta_key('sidebar-type'); $blog_post_style = penguin_get_post_meta_key('blog-post-show-style'); ?> <div id="main" class="container"> <div class="row"> <section class="<?php echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class; ?> "> <?php if ($paged == 0) { $paged = 1; } $args = array('post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => $per_page_num); if ($page_cats != "") { $args['category_name'] = $page_cats;
<?php /** * Member Shortcode Content Style 1 * * @since roen 1.0 */ global $member_shortcode_content; $thumbnail_size = 'roen-square-thumbs'; $output = '<div class="member-element-avatar">'; if (has_post_thumbnail(get_the_ID())) { $output .= get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')); } else { $output .= '<div class="no-gravatar"></div>'; } $output .= '<div class="post-mask-content"> <div class="centered">'; $socials = roen_get_social_list(get_the_ID(), 'social-', 'post-meta'); if ($socials != '') { $output .= '<ul class="inline roen-social member-social">' . $socials . '</ul>'; } $output .= '</div> </div> </div> <h4 class="entry-title" itemprop="author"><a href="' . get_permalink(get_the_ID()) . '" itemprop="url">' . penguin_get_post_meta_key('member-nickname', '', get_the_title()) . '</a></h4> <div class="post-meta" itemprop="genre">' . penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'member-cats', false), '<span class="seperator">/</span>', 'member-cats') . '</div>'; $member_shortcode_content = $output; ?>
* * @since roen 1.0 */ ?> <article id="post-<?php the_ID(); ?> " <?php post_class('entry-post post-style-3'); ?> itemscope itemtype="http://schema.org/Article"> <div class="post-element-content"> <?php $audio_type = penguin_get_post_meta_key('audio-type'); $audio_content = penguin_get_post_meta_key('audio-content'); if ($audio_content && $audio_content != '') { if (intval($audio_type) == 0) { echo do_shortcode('[soundcloud url="' . $audio_content . '"]'); } else { echo $audio_content; } } ?> </div> <header class="entry-header"> <?php the_title('<h3 class="entry-title" itemprop="name"><a href="' . esc_url(get_permalink()) . '" itemprop="url">', '</a></h3>'); ?>
</span></label> <textarea name="message" id="commentsText" rows="5" cols="60" class="input-xlarge required requiredField"><?php if (isset($_POST['message']) && !$emailSent) { if (function_exists('stripslashes')) { echo stripslashes($_POST['message']); } else { echo $_POST['message']; } } ?> </textarea> </div> <?php if ($recaptcha_valid) { $recaptcha_lang = penguin_get_post_meta_key('recaptcha-lang', 0, "en"); $recaptcha_theme = penguin_get_post_meta_key('recaptcha-theme', 0, "white"); ?> <script type="text/javascript"> var RecaptchaOptions = { lang : '<?php echo esc_attr($recaptcha_lang); ?> ', theme : '<?php echo esc_attr($recaptcha_theme); ?> ' }; </script> <?php
$output .= do_shortcode('[' . (intval(penguin_get_post_meta_key('video-type')) == 0 ? 'youtube' : 'vimeo') . ' id="' . penguin_get_post_meta_key('video-content') . '" width="100%" height="300"]'); } else { $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); $output .= '<div class="portfolio-img">'; if (has_post_thumbnail(get_the_ID())) { $output .= get_the_post_thumbnail(get_the_ID(), $portfolio_shortcode_thumbnail_size); } else { $output .= '<img src="' . get_template_directory_uri() . '/img/portfolio-no-thumbs.png" alt="">'; } $output .= '</div> <div class="portfolio-tip"> <div class="bg"></div> <div class="btns"> <a href="' . get_permalink() . '" class="portfolio-link"><i class="fa fa-file-text"></i></a>'; if (penguin_get_post_meta_key('portfolio-link') != "") { $output .= '<a href="' . penguin_get_post_meta_key('portfolio-link') . '" target="_blank" class="portfolio-link"><i class="fa fa-link"></i></a>'; } $output .= '<a href="' . esc_url($full_image[0]) . '" class="fancyBox portfolio-link"><i class="fa fa-search-plus"></i></a> </div> </div>'; } } $output .= '</div> <div class="portfolio-content"> <h4 class="entry-title" itemprop="name"><a href="' . esc_url(get_permalink()) . '" itemprop="url">' . get_the_title() . '</a></h4> <div class="portfolio-categories" itemprop="genre">' . penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', false), '<span class="seperator">/</span>') . '</div> </div>'; $portfolio_shortcode_content = $output; ?>
<?php /** * Member Shortcode Content Style 2 * * @since roen 1.0 */ global $member_shortcode_content; $thumbnail_size = 'roen-square-thumbs'; $output = '<a href="' . get_permalink(get_the_ID()) . '" class="member-element-avatar-link"> <div class="member-element-avatar" data-placement="top" data-trigger="hover" title="" data-original-title="' . penguin_get_post_meta_key('member-nickname', '', get_the_title()) . '">'; if (has_post_thumbnail(get_the_ID())) { $output .= get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')); } else { $output .= '<div class="no-gravatar"></div>'; } $output .= '</div> </a> <h4 class="entry-title" itemprop="author"><a href="' . get_permalink(get_the_ID()) . '" itemprop="url">' . penguin_get_post_meta_key('member-nickname', '', get_the_title()) . '</a></h4> <div class="post-meta" itemprop="genre">' . penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'member-cats', false), '<span class="seperator">/</span>', 'member-cats') . '</div>'; $socials = roen_get_social_list(get_the_ID(), 'social-', 'post-meta'); if ($socials != '') { $output .= '<ul class="inline roen-social member-social">' . $socials . '</ul>'; } $output .= '<div class="entry-summary" itemprop="articleSection">' . do_shortcode(penguin_get_post_meta_key('member-shortdesc')) . '</div>'; $member_shortcode_content = $output; ?>
?> <?php if (penguin_get_post_meta_key('portfolio-link') != "") { ?> <li class="single-portfolio-link"> <article> <span class="meta-icon"><i class="fa fa-link"></i></span> <div class="type"><?php _e('Link', 'ROEN'); ?> </div> <div class="value"><a href="<?php echo esc_url(penguin_get_post_meta_key('portfolio-link')); ?> "><?php _e('Open Link', 'ROEN'); ?> </a></div> </article> </li> <?php } ?> <li class="single-portfolio-share"> <?php if (penguin_get_options_key('portfolio-enable-share') == "on" && penguin_get_options_key('portfolio-share-code') != '') {
?> <?php echo roen_get_gallery_list(get_the_ID(), $thumbnail_size); ?> </ul> </div> </div> <?php } elseif ($portfolio_type == 2 && $portfolio_type != '') { ?> <div class="post-element-content"> <?php echo do_shortcode('[' . (intval(penguin_get_post_meta_key('video-type')) == 0 ? 'youtube' : 'vimeo') . ' id="' . penguin_get_post_meta_key('video-content') . '" width="100%" height="300"]'); ?> </div> <?php } else { ?> <?php if (has_post_thumbnail(get_the_ID())) { ?> <?php $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
<?php /** * Contact Template > header google map * * @since roen 1.0 */ if (penguin_get_post_meta_key('map-show') == "on") { $map_height = intval(penguin_get_post_meta_key('map-height')); $map_info_width = intval(penguin_get_post_meta_key('map-info-width')); if ($map_height == 0) { $map_height = '320'; } if ($map_info_width == 0) { $map_info_width = '300'; } echo do_shortcode('[map width="100%" height="' . esc_attr($map_height) . '" latlng="' . esc_attr(penguin_get_post_meta_key('map-latlng')) . '" theme="' . esc_attr(penguin_get_post_meta_key('contact-map-theme')) . '" scrollwheel="no" show_marker="yes" show_info="yes" info_width="' . esc_attr($map_info_width) . '"]' . penguin_get_post_meta_key('map-address') . '[/map]'); }
?> <div id="main" class="container"> <div class="row"> <section class="<?php echo $layout == 1 ? 'col-md-12 col-sm-12' : 'roen-col col-lg-9 col-md-8 col-sm-8 roen-' . $layout_class; ?> "> <?php if (have_posts()) { while (have_posts()) { the_post(); the_content(); wp_link_pages(); // contact form if (penguin_get_post_meta_key('contact-form') == "on") { get_template_part('template/contact/content-form'); } } } else { ?> <p><?php _e('Sorry, this page does not exist.', 'ROEN'); ?> </p> <?php } ?> </section>
<?php /** * Blog Ajax Main Content * * @since roen 1.0 */ global $paged, $thumbnail_size, $page_columns, $page_columns_class; $page_nums = penguin_get_post_meta_key('page-posts-num'); $page_columns = penguin_get_post_meta_key('page-posts-cols'); $page_cats = penguin_get_post_meta_key('page-posts-cats'); $page_auto_load = penguin_get_post_meta_key('page-posts-ajax-auto'); $page_image_no_crop = penguin_get_post_meta_key('page-posts-img-no-crop'); $page_columns_class = roen_get_element_columns(intval($page_columns)); $thumbnail_size = roen_get_thumbnail_size(intval($page_columns), $page_image_no_crop); if ($paged == 0) { $paged = 1; } // get blog $args = array('post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => $page_nums); // show category if ($page_cats != "") { $args['category_name'] = $page_cats; } // The Query $blog_posts = new WP_Query($args); if ($blog_posts->have_posts()) { ?> <div class="ajax-main-area"> <section class="ajax-isotope row blog-ajax-type">
<?php /** * Page Header Title & Breadcrumbs * * @since roen 1.0 */ global $post_id, $current_tax; if ((is_home() && !is_front_page() || is_page() || is_single()) && penguin_get_current_bool_value(penguin_get_post_meta_key('title-show', $post_id)) || is_home() && is_front_page()) { $title = penguin_get_post_meta_key('title-content', $post_id); $desc = penguin_get_post_meta_key('title-desc', $post_id); $breadcrumb = penguin_get_post_meta_key('title-breadcrumb', $post_id); ?> <div id="page-header"> <div class="container"> <div class="page-header-content <?php echo roen_get_page_custom_title_style(); ?> "> <div id="page-header-title"> <?php if ($title == '') { echo '<h1 class="title">' . get_the_title($post_id) . '</h1>'; } else { echo $title; } if ($desc != '') { echo '<p class="page-desc">' . $desc . '</p>'; } ?>
* @since roen 1.0 */ ?> <article id="post-<?php the_ID(); ?> " <?php post_class('entry-post post-style-2'); ?> itemscope itemtype="http://schema.org/Article"> <aside class="entry-left-side"> <div class="post-element-content"> <?php $video_type = penguin_get_post_meta_key('video-type'); $video_content = penguin_get_post_meta_key('video-content'); if ($video_content && $video_content != '') { if (intval($video_type) == 0) { echo do_shortcode('[youtube id="' . $video_content . '" width="100%" height="300"]'); } else { if (intval($video_type) == 1) { echo do_shortcode('[vimeo id="' . $video_content . '" width="100%" height="300"]'); } else { echo $video_content; } } } ?> </div> </aside>
*/ global $post_id; if (!(is_category() || is_tag() || is_404() || is_search() || is_date()) && intval(penguin_get_post_meta_key('slide-type', $post_id)) != 0) { if (intval(penguin_get_post_meta_key('slide-type', $post_id)) == 1 && intval(penguin_get_post_meta_key('layer-slide-id', $post_id)) != 0) { ?> <div id="page-slider-wrap" class="layerslide-container <?php echo roen_get_page_sticky_style(); ?> "> <?php echo do_shortcode('[layerslider id="' . intval(penguin_get_post_meta_key('layer-slide-id', $post_id)) . '"]'); ?> </div> <?php } elseif (intval(penguin_get_post_meta_key('slide-type', $post_id)) == 2 && intval(penguin_get_post_meta_key('rev-slide-id', $post_id)) != 0) { ?> <div id="page-slider-wrap" class="revslide-container <?php echo roen_get_page_sticky_style(); ?> "> <?php echo do_shortcode('[rev_slider ' . intval(penguin_get_post_meta_key('rev-slide-id', $post_id)) . ']'); ?> </div> <?php } }