*/ 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"> <?php
function roen_member_list_func($atts, $content = null) { global $member_shortcode_content; extract(shortcode_atts(array('number' => '4', 'columns' => '4', 'type' => '', 'style' => '1', 'orderby' => '', 'cat__in' => '', 'post__in' => '', 'post__not_in' => '', 'effect' => ''), $atts)); $output = ""; $members = penguin_get_custom_post_posts($type, $number, $orderby, $cat__in, '', $post__in, $post__not_in, 'member'); if ($members != "" && $members->have_posts()) { $columns = intval($columns) - 2; $member_shortcode_columns = roen_get_element_columns(intval($columns)); if ($effect != "" && $effect != "none") { $output .= '<div class="row"><div class="roen-shortcode-member-post animate-list">'; } else { $output .= '<div class="row"><div class="roen-shortcode-member-post">'; } while ($members->have_posts()) { $members->the_post(); $member_shortcode_content = ""; if ($effect != "" && $effect != "none") { $output .= '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class('shortcode-member-entry member-element member-style-' . esc_attr($style) . ' ' . esc_attr($member_shortcode_columns))) . ' animate-item" data-effect="' . esc_attr($effect) . '" itemscope itemtype="http://schema.org/CreativeWork">'; } else { $output .= '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class('shortcode-member-entry member-element member-style-' . esc_attr($style) . ' ' . esc_attr($member_shortcode_columns))) . '" itemscope itemtype="http://schema.org/CreativeWork">'; } get_template_part('template/member/shortcode/content-style', esc_attr($style)); $output .= $member_shortcode_content; $output .= '</article>'; } $output .= '</div></div>'; } wp_reset_postdata(); return $output; }