<?php

/**
 * @author  Rainbow-Themes
 * @since   1.0
 * @version 1.0
 * @package histudy
 */
trait rainbowCourseDetailsTrait {
    public static function rainbow_course_details_settings(){
        $rainbow_options    = Rainbow_Helper::rainbow_get_options();
        if( TUTOR_ACTIVED || function_exists('academy_start')){
            $rainbow_course_details_banner_switch                   = $rainbow_options['rainbow_course_details_banner_switch'];
            $rainbow_course_details_breadcrumb_switch               = $rainbow_options['rainbow_course_details_breadcrumb_switch'];   
            $rainbow_course_details_title_switch                    = $rainbow_options['rainbow_course_details_title_switch'];   
            $rainbow_course_details_desc_switch                     = $rainbow_options['rainbow_course_details_desc_switch'];   
            $rainbow_course_details_bestsellar_badge_switch         = $rainbow_options['rainbow_course_details_bestsellar_badge_switch'];   
            $rainbow_course_details_bestsellar_rating_switch        = $rainbow_options['rainbow_course_details_bestsellar_rating_switch'];   
            $rainbow_course_details_bestsellar_student_count_switch = $rainbow_options['rainbow_course_details_bestsellar_student_count_switch'];   
            $rainbow_course_details_author_meta_switch              = $rainbow_options['rainbow_course_details_author_meta_switch'];   
            $rainbow_course_details_bestsellar_banner_price_switch  = $rainbow_options['rainbow_course_details_bestsellar_banner_price_switch'];   
            $rainbow_course_details_thumbnail_switch                = $rainbow_options['rainbow_course_details_thumbnail_switch'];   
            $rainbow_course_details_author_course_toggle            = $rainbow_options['rainbow_course_details_author_course_toggle'];   
            $rainbow_course_details_author_course_query_count       = $rainbow_options['rainbow_course_details_author_course_query_count'];   
            $rainbow_course_details_author_course_title_prefix      = $rainbow_options['rainbow_course_details_author_course_title_prefix'];   
            $enable_course_details_sidebar_show_more                = isset( $rainbow_options['enable_course_details_sidebar_show_more'] ) ? $rainbow_options['enable_course_details_sidebar_show_more']: '';   
            $rainbow_course_details_author_course_badge_toggle      = $rainbow_options['rainbow_course_details_author_course_badge_toggle'];   
            $rainbow_course_author_course_badge_title               = $rainbow_options['rainbow_course_author_course_badge_title'];   
            $rainbow_course_details_related_course_toggle           = $rainbow_options['rainbow_course_details_related_course_toggle'];   
            $rainbow_course_details_related_course_badge_toggle     = $rainbow_options['rainbow_course_details_related_course_badge_toggle'];   
            $rainbow_course_details_related_course_badge_title      = $rainbow_options['rainbow_course_details_related_course_badge_title'];   
            $rainbow_course_details_author_course_btn_toggle        = $rainbow_options['rainbow_course_details_author_course_btn_toggle'];   
            $rainbow_course_details_author_course_btn_title         = $rainbow_options['rainbow_course_details_author_course_btn_title'];  
            // side card
            $rainbow_course_details_card_show_hide                  = $rainbow_options['rainbow_course_details_card_show_hide'];  
            $rainbow_course_details_card_position                   = isset( $rainbow_options['rainbow_course_details_card_position'] ) ? $rainbow_options['rainbow_course_details_card_position']      : '';  
            $rainbow_course_details_card_video_thumbnail_show       = $rainbow_options['rainbow_course_details_card_video_thumbnail_show'];  
            $rainbow_course_details_card_price_show                 = $rainbow_options['rainbow_course_details_card_price_show'];  
            $rainbow_course_details_card_progress_show              = $rainbow_options['rainbow_course_details_card_progress_show'];  
            $rainbow_course_details_card_mony_back_badge_show       = $rainbow_options['rainbow_course_details_card_mony_back_badge_show'];  
            $rainbow_course_details_card_last_udpate_show           = $rainbow_options['rainbow_course_details_card_last_udpate_show'];  
            $rainbow_course_details_card_enrolled_show              = $rainbow_options['rainbow_course_details_card_enrolled_show'];  
            $rainbow_course_details_lecture_count_show              = $rainbow_options['rainbow_course_details_lecture_count_show'];  
            $rainbow_course_details_skill_level_show                = $rainbow_options['rainbow_course_details_skill_level_show'];  
            $rainbow_course_details_language_show                   = $rainbow_options['rainbow_course_details_language_show'];  
            $rainbow_course_details_quizzes_show                    = $rainbow_options['rainbow_course_details_quizzes_show'];  
            $rainbow_course_details_card_duration_show              = $rainbow_options['rainbow_course_details_card_duration_show'];  
            $rainbow_course_details_card_instructore_show           = $rainbow_options['rainbow_course_details_card_instructore_show'];  
            // $rainbow_course_details_card_requirement_show           = $rainbow_options['rainbow_course_details_card_requirement_show'];  
            $rainbow_course_details_card_tags_show                  = $rainbow_options['rainbow_course_details_card_tags_show'];  
            $rainbow_course_details_card_target_audience_show       = $rainbow_options['rainbow_course_details_card_target_audience_show'];  
            $rainbow_course_details_related_course_query_count      = $rainbow_options['rainbow_course_details_related_course_query_count'];  
            $rainbow_course_details_card_bottom_show                = $rainbow_options['rainbow_course_details_card_bottom_show'];  
            $rainbow_course_details_card_social_show                = $rainbow_options['rainbow_course_details_card_social_show'];  
            $rainbow_course_details_card_fb_switch                  = $rainbow_options['rainbow_course_details_card_fb_switch'];  
            $rainbow_course_details_card_twitter_switch             = $rainbow_options['rainbow_course_details_card_twitter_switch'];  
            $rainbow_course_details_card_linkedin_switch            = $rainbow_options['rainbow_course_details_card_linkedin_switch'];  
            $rainbow_course_details_card_contact_label              = $rainbow_options['rainbow_course_details_card_contact_label'];  
            $rainbow_course_details_card_contact_number_before_text = $rainbow_options['rainbow_course_details_card_contact_number_before_text'];  
            $rainbow_course_details_related_course_title            = $rainbow_options['rainbow_course_details_related_course_title'];
            $rainbow_course_details_card_contact_number_link        = $rainbow_options['rainbow_course_details_card_contact_number_link'];  
            $rainbow_course_details_card_progress_show              = $rainbow_options['rainbow_course_details_card_progress_show'];  
            $rainbow_course_details_layout                          = $rainbow_options['rainbow_course_details_layout'];   


        }else{
            $rainbow_course_details_banner_switch                   = "";
            $rainbow_course_details_breadcrumb_switch               = "";
            $rainbow_course_details_title_switch                    = "";
            $rainbow_course_details_desc_switch                     = "";
            $rainbow_course_details_bestsellar_badge_switch         = "";
            $rainbow_course_details_bestsellar_rating_switch        = "";
            $rainbow_course_details_bestsellar_student_count_switch = "";
            $rainbow_course_details_author_meta_switch              = "";
            $rainbow_course_details_bestsellar_banner_price_switch  = "";
            $rainbow_course_details_thumbnail_switch                = "";
            $rainbow_course_details_author_course_toggle            = "";
            $rainbow_course_details_author_course_query_count       = "";
            $rainbow_course_details_author_course_title_prefix      = "";
            $rainbow_course_details_author_course_badge_toggle      = "";
            $rainbow_course_author_course_badge_title               = "";
            $rainbow_course_details_related_course_toggle           = "";
            $rainbow_course_details_related_course_badge_toggle     = "";
            $rainbow_course_details_related_course_badge_title      = "";
            $rainbow_course_details_author_course_btn_toggle        = "";
            $rainbow_course_details_author_course_btn_title         = "";
            $rainbow_course_details_author_course_btn_title         = "";
            // card sidebar
            $rainbow_course_details_card_show_hide                  = '';  
            $rainbow_course_details_card_position                   = '';  
            $rainbow_course_details_layout                          = '';  
            $rainbow_course_details_card_video_thumbnail_show       = '';  
            $rainbow_course_details_card_price_show                 = '';  
            $rainbow_course_details_card_progress_show              = '';  
            $enable_course_details_sidebar_show_more                = '';  
            $rainbow_course_details_card_mony_back_badge_show       = '';  
            $rainbow_course_details_card_last_udpate_show           = '';  
            $rainbow_course_details_card_enrolled_show              = '';  
            $rainbow_course_details_lecture_count_show              = '';  
            $rainbow_course_details_skill_level_show                = '';  
            $rainbow_course_details_language_show                   = '';  
            $rainbow_course_details_related_course_title            = '';  
            $rainbow_course_details_quizzes_show                    = '';  
            $rainbow_course_details_card_duration_show              = '';  
            $rainbow_course_details_card_instructore_show           = '';  
            $rainbow_course_details_card_requirement_show           = '';  
            $rainbow_course_details_card_tags_show                  = '';  
            $rainbow_course_details_card_target_audience_show       = '';  
            $rainbow_course_details_card_bottom_show                = '';  
            $rainbow_course_details_card_social_show                = '';  
            $rainbow_course_details_card_fb_switch                  = '';  
            $rainbow_course_details_card_twitter_switch             = '';  
            $rainbow_course_details_card_linkedin_switch            = '';  
            $rainbow_course_details_related_course_query_count      = '';  
            $rainbow_course_details_card_contact_label              = '';  
            $rainbow_course_details_card_contact_number_before_text = ''; 
            $rainbow_course_details_card_contact_number_link        = '';
        }

        $course_cart_layout                                          =  [
            'rainbow_course_details_banner_switch'                   => $rainbow_course_details_banner_switch,
            'rainbow_course_details_breadcrumb_switch'               => $rainbow_course_details_breadcrumb_switch,
            'rainbow_course_details_title_switch'                    => $rainbow_course_details_title_switch,
            'rainbow_course_details_desc_switch'                     => $rainbow_course_details_desc_switch,
            'rainbow_course_details_bestsellar_badge_switch'         => $rainbow_course_details_bestsellar_badge_switch,
            'rainbow_course_details_bestsellar_rating_switch'        => $rainbow_course_details_bestsellar_rating_switch,
            'rainbow_course_details_bestsellar_student_count_switch' => $rainbow_course_details_bestsellar_student_count_switch,
            'rainbow_course_details_author_meta_switch'              => $rainbow_course_details_author_meta_switch,
            'rainbow_course_details_bestsellar_banner_price_switch'  => $rainbow_course_details_bestsellar_banner_price_switch,
            'rainbow_course_details_thumbnail_switch'                => $rainbow_course_details_thumbnail_switch,
            'rainbow_course_details_thumbnail_switch'                => $rainbow_course_details_thumbnail_switch,
            'rainbow_course_details_author_course_toggle'            => $rainbow_course_details_author_course_toggle,
            'rainbow_course_details_author_course_query_count'       => $rainbow_course_details_author_course_query_count,
            'rainbow_course_details_author_course_title_prefix'      => $rainbow_course_details_author_course_title_prefix,
            'rainbow_course_details_author_course_badge_toggle'      => $rainbow_course_details_author_course_badge_toggle,
            'rainbow_course_author_course_badge_title'               => $rainbow_course_author_course_badge_title,
            'rainbow_course_details_related_course_toggle'           => $rainbow_course_details_related_course_toggle,
            'rainbow_course_details_related_course_badge_toggle'     => $rainbow_course_details_related_course_badge_toggle,
            'rainbow_course_details_related_course_badge_title'      => $rainbow_course_details_related_course_badge_title,
            'rainbow_course_details_author_course_btn_toggle'        => $rainbow_course_details_author_course_btn_toggle,
            'rainbow_course_details_author_course_btn_title'         => $rainbow_course_details_author_course_btn_title,
            // card sidebar
            'rainbow_course_details_card_show_hide'                  => $rainbow_course_details_card_show_hide,
            'rainbow_course_details_card_position'                   => $rainbow_course_details_card_position,
            'rainbow_course_details_card_video_thumbnail_show'       => $rainbow_course_details_card_video_thumbnail_show,
            'rainbow_course_details_card_price_show'                 => $rainbow_course_details_card_price_show,
            'rainbow_course_details_card_progress_show'              => $rainbow_course_details_card_progress_show,
            'rainbow_course_details_card_mony_back_badge_show'       => $rainbow_course_details_card_mony_back_badge_show,
            'rainbow_course_details_card_last_udpate_show'           => $rainbow_course_details_card_last_udpate_show,
            'rainbow_course_details_card_enrolled_show'              => $rainbow_course_details_card_enrolled_show,
            'rainbow_course_details_lecture_count_show'              => $rainbow_course_details_lecture_count_show,
            'rainbow_course_details_skill_level_show'                => $rainbow_course_details_skill_level_show,
            'rainbow_course_details_language_show'                   => $rainbow_course_details_language_show,
            'rainbow_course_details_quizzes_show'                    => $rainbow_course_details_quizzes_show,
            'rainbow_course_details_card_duration_show'              => $rainbow_course_details_card_duration_show,
            'rainbow_course_details_card_instructore_show'           => $rainbow_course_details_card_instructore_show,
            //'rainbow_course_details_card_requirement_show'           => $rainbow_course_details_card_requirement_show,
            'rainbow_course_details_card_tags_show'                  => $rainbow_course_details_card_tags_show,
            'rainbow_course_details_card_target_audience_show'       => $rainbow_course_details_card_target_audience_show,
            'rainbow_course_details_card_bottom_show'                => $rainbow_course_details_card_bottom_show,
            'rainbow_course_details_card_social_show'                => $rainbow_course_details_card_social_show,
            'enable_course_details_sidebar_show_more'                => $enable_course_details_sidebar_show_more,
            'rainbow_course_details_card_fb_switch'                  => $rainbow_course_details_card_fb_switch,
            'rainbow_course_details_related_course_title'            => $rainbow_course_details_related_course_title,
            'rainbow_course_details_card_twitter_switch'             => $rainbow_course_details_card_twitter_switch,
            'rainbow_course_details_layout'                          => $rainbow_course_details_layout,
            'rainbow_course_details_card_linkedin_switch'            => $rainbow_course_details_card_linkedin_switch,
            'rainbow_course_details_related_course_query_count'      => $rainbow_course_details_related_course_query_count,
            'rainbow_course_details_card_contact_label'              => $rainbow_course_details_card_contact_label,
            'rainbow_course_details_card_contact_number_before_text' => $rainbow_course_details_card_contact_number_before_text,
            'rainbow_course_details_card_contact_number_link'        => $rainbow_course_details_card_contact_number_link,
        ];
        return $course_cart_layout;
    }

}