getShortcode(), $atts); extract($atts); $uniq = stm_create_unique_id($atts); $inline = ''; if (!empty($title_color)) { $inline = ".{$uniq} .stm_lms_courses_carousel__top h3, .{$uniq} .stm_lms_courses_carousel__top h4, .{$uniq} .stm_lms_courses_carousel__top .h4 {color: {$title_color};} .{$uniq} .stm_lms_courses_carousel__buttons .stm_lms_courses_carousel__button i:before {border-bottom-color: {$title_color};border-left-color: {$title_color}}"; } if (class_exists('STM_LMS_Helpers')): wp_enqueue_script('imagesloaded'); wp_enqueue_script('owl.carousel'); wp_enqueue_style('owl.carousel'); stm_module_styles('courses_carousel', 'style_1', array(), $inline); stm_module_scripts('courses_carousel', 'style_1'); $args = array( 'per_row' => 6, 'include_link' => true ); if (!empty($query)) { $args = array_merge($args, STM_LMS_Helpers::sort_query($query)); } if(!empty($taxonomy_default)) { $args['tax_query'] = array( array( 'taxonomy' => 'stm_lms_course_taxonomy', 'field' => 'term_id', 'terms' => $taxonomy_default, ) ); } if (!empty($show_categories) and $show_categories == 'enable' and !empty($taxonomy)) { $terms = get_terms(array( 'taxonomy' => 'stm_lms_course_taxonomy', 'hide_empty' => false, 'include' => $taxonomy ) ); } ?>