<?php /** * The Template for displaying portfolio categories archive. * * @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; ?> ">
/** * The Template for displaying product archives, including the main shop page which is a post type archive. * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly get_header('shop'); $shop_page_id = woocommerce_get_page_id('shop'); $layout = roen_get_page_layout($shop_page_id); $layout_class = roen_get_page_layout_class($shop_page_id); ?> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ do_action('woocommerce_before_main_content'); ?> <div id="page-content-wrap"> <div id="main" class="container"> <div class="row">
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @since roen 1.0 */ get_header(); // get page layout $layout = roen_get_page_layout(); $layout_class = roen_get_page_layout_class(); ?> <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 woo roen-' . $layout_class; ?> "> <?php if (have_posts()) { while (have_posts()) { the_post(); the_content(); wp_link_pages(); }
* * This is the most generic template file in a WordPress theme * and one of the two required files for a theme * * @since roen 1.0 */ global $blog_post_style; get_header(); if ((is_home() && !is_front_page() || is_category() || is_tag() || is_date()) && intval(get_option('page_for_posts')) > 0) { //when you use custom page for blog will use the page layout $layout = roen_get_page_layout(get_option('page_for_posts')); $layout_class = roen_get_page_layout_class(get_option('page_for_posts')); $sidebar_name = get_post_meta(get_option('page_for_posts'), 'sidebar-type', true); } else { // index default will use global layout $layout = roen_get_page_layout('global'); $layout_class = roen_get_page_layout_class('global'); $sidebar_name = '0'; } $blog_post_style = penguin_get_options_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 // blog posts if (have_posts()) {