<?php
// if( class_exists( 'SFWD_LMS' ) ) :
    $edumodo_lp_excerpt_padding = get_theme_mod('edumodo_lp_excerpt_padding',[]);
    
    $lp_typo_title_value = get_theme_mod('lp_course_archive_title',[]);
    $lp_typo_selector = [
        '.learnpress .archive h3.entry-title'
    ];
    $edumodo_lp_single_course_top_bg_color = get_theme_mod('learnpress_lp_single_top_bg_color','#07294d');
    $edumodo_lp_single_course_top_color    = get_theme_mod('learnpress_lp_single_top_text_color','#fff');
?>

<style id="edumodo-learnpress-style">
    <?php 
        edumodo_parse_typography_to_selectors($lp_typo_title_value, edumodo_parse_selector_as_string($lp_typo_selector));
        
        /**
         * excerpt
         */
        # leandash course archive excerpt padding
            if( !empty( $edumodo_lp_excerpt_padding ) ): ?>
                .post-type-archive-sfwd-courses .ld_course_grid .entry-content {padding: <?php echo $edumodo_lp_excerpt_padding['top'].' ' .$edumodo_lp_excerpt_padding['right'].' ' .$edumodo_lp_excerpt_padding['bottom'].' ' .$edumodo_lp_excerpt_padding['left'] ; ?>;}
            <?php endif;
        # end of ld course archive excerpt padding
    ?>
    <?php if( $edumodo_lp_single_course_top_bg_color ): ?>
		.lp-archive-courses .course-summary .course-summary-content .course-detail-info {background-color: <?php echo $edumodo_lp_single_course_top_bg_color; ?>;}
	<?php endif; ?>
	<?php if( $edumodo_lp_single_course_top_color ): ?>
		.lp-archive-courses .course-summary .course-summary-content .course-detail-info .course-info-left .course-meta .course-meta__pull-left .meta-item .meta-item__value div a,.lp-archive-courses .course-summary .course-summary-content .course-detail-info .course-info-left .course-meta .course-meta__pull-left .meta-item .meta-item__value label,.lp-archive-courses .course-summary .course-summary-content .course-detail-info .course-info-left .course-meta .course-meta__pull-left .meta-item {color: <?php echo $edumodo_lp_single_course_top_color; ?>;}
	<?php endif; ?>    
</style>
<?php
// endif;
?>