function yiw_portfolio_custom_columns($column) { global $post; switch ($column) { case "description-portfolio": the_excerpt(); break; case "year": $custom = get_post_custom(); echo $custom["year_completed"][0]; break; case "category-project": $portfolio = yiw_portfolio(); if (!empty($portfolio['tax'])) { echo get_the_term_list($post->ID, $portfolio['tax'], '', ', ', ''); } break; } }
if (yiw_layout_page() == 'sidebar-right') { echo ' last'; } ?> "> <?php do_action('yiw_before_sidebar'); ?> <?php do_action('yiw_before_sidebar_' . yiw_get_current_pagename()); ?> <?php $portfolio = yiw_portfolio(); $portfolio_name = is_page() ? get_post_meta($post->ID, '_portfolio_post_type', true) : $portfolio['title']; if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($portfolio_name . ' Sidebar')) { get_sidebar('default'); } ?> <?php do_action('yiw_after_sidebar'); ?> <?php