function vw_the_category_top_content() { $content = vw_get_category_option(vw_get_archive_category_id(), 'category_top_content'); if (!empty($content)) { echo '<div class="vw-category-top-content">'; echo do_shortcode($content); echo '</div>'; } }
function vw_get_archive_blog_layout() { $blog_layout = vw_get_theme_option('blog_default_layout'); if (is_category()) { $category_blog_layout = vw_get_category_option(vw_get_archive_category_id(), 'category_blog_layout', $blog_layout); if ($category_blog_layout != 'site_default') { $blog_layout = $category_blog_layout; } } return $blog_layout; }