function ts_get_blog_loop_title_size($atts = '', $default = 4) { return ts_figure_h_size($atts, $default); }
<?php $ts_query = isset($atts) && $atts['default_query'] === false ? new WP_Query($atts) : $wp_query; $atts = isset($atts) ? $atts : array(); $widget_layout = isset($atts['widget_layout']) && in_array($atts['widget_layout'], array('vertical', 'horizontal')) ? $atts['widget_layout'] : ''; if ($widget_layout == 'horizontal') { $media_class = 'span4'; $row_class = 'ts-row'; } else { $media_class = ''; $row_class = ''; } /* widget heading */ $widget_heading = isset($atts['widget_heading']) ? $atts['widget_heading'] : ''; $widget_heading_size = isset($atts['widget_heading_size']) ? $atts['widget_heading_size'] : ''; $widget_heading_size = ts_figure_h_size($widget_heading_size, 5); if (isset($atts['override_widget_heading']) && ts_attr_is_true($atts['override_widget_heading'])) { if (isset($atts['category_name']) && trim($atts['category_name'])) { $cat_name = $atts['category_name']; $cat_names = explode(',', $cat_name); if (count($cat_names) == 1) { $cat = get_category_by_slug($cat_name); if ($cat !== false) { $widget_heading = '<a href="' . get_category_link($cat->term_id) . '" class="color-primary">' . esc_html($cat->name) . '<i class="fa fa-angle-right"></i></a>'; } } } elseif (isset($atts['cat']) && trim($atts['cat'])) { $cat = $atts['cat']; $cats = explode(',', $cat); if (count($cats) == 1) { $cat = get_term_by('id', $cat, ts_get_the_display_taxonomy($atts));