<?php
$edumodo__teacher_archive_title_typo = get_theme_mod('edumodo__teacher_archive_title_typo',[]);
$edumodo__teacher_archive_title_margin = get_theme_mod('edumodo__teacher_archive_title_margin', [ 'top' => '15px', 'bottom' => '15px']);
$edumodo__teacher_archive_designation_typo = get_theme_mod('edumodo__teacher_archive_designation_typo',[]);

$edumodo__teacher_archive_title_typo_selector = [
    '.post-type-archive-teacher .teacher-title', '.post-type-archive-teacher a:visited .teacher-title'
];
$edumodo__teacher_archive_designation_typo_selector = [
    '.post-type-archive-teacher .teacher-designation'
];

?>
<style style="edumodo-teacher-style">
    <?php 
        edumodo_parse_typography_to_selectors($edumodo__teacher_archive_title_typo, edumodo_parse_selector_as_string($edumodo__teacher_archive_title_typo_selector));
        edumodo_parse_typography_to_selectors($edumodo__teacher_archive_designation_typo, edumodo_parse_selector_as_string($edumodo__teacher_archive_designation_typo_selector));

        if( isset( $edumodo__teacher_archive_title_margin ) ) { ?>
            .post-type-archive-teacher .teacher-title{margin: <?php echo $edumodo__teacher_archive_title_margin['top'] . ' 0px '.$edumodo__teacher_archive_title_margin['bottom'].' 0px '; ?> !important;}
        <?php }
    ?>
</style>
<?php

?>