<?php get_header(); ?>
<?php 

    // THEME MOD
    $font_sizes = [
        'small' => "1em",
        'medium' => "1.2em",
        'large' => "1.35em"
    ];

    $general_font_size = get_theme_mod("general-font-size") ? sanitize_text_field(get_theme_mod("general-font-size")) : "medium";
    $general_font_size = $font_sizes[$general_font_size];
    $progressbar_color = sanitize_text_field(get_theme_mod('reading-time-progressbar-color'));
    $show_progressbar = sanitize_text_field(get_theme_mod('reading-time-progressbar'));
    $show_sidebar = (int) get_theme_mod("show-sidebar-single-post", 1) ? true : false;


?>

    <style media="screen">
        .single-content p, .single-content li, .single-content span {
            font-size: <?php echo $general_font_size ;?> !important;
        }

        .reading-time-progressbar .progress {
            background-color: <?php echo $progressbar_color ?> !important;
        }
    </style>

    <?php 


    ?>

    <?php if(!$show_progressbar || $show_progressbar == "yes") { ?>
        <div class="reading-time-progressbar">
            <div class="progress"></div>
        </div>
    <?php } ?>

    <div class="container main-container layout-<?php echo $syrus->get_current_layout() ?>" role="main" id="main-content">
            <div class="row mx-0 mt-4">
                <div class="col-12 <?php echo $show_sidebar ? 'col-md-9' : '' ?>" id="content-col">
                    <?php
                        if ( function_exists('yoast_breadcrumb') ) {
                            yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
                        }
                    ?>
                    <div class="card-post">
                        <?php do_action('single-post-content'); ?>
                        <?php do_action('related-posts') ?>
                    </div>
                </div>

                <?php if($show_sidebar) : ?>
                    <div class="d-none d-md-inline col-md-3">
                        <?php get_sidebar(); ?>
                    </div>
                <?php endif; ?>
                
            </div>
    </div>

<?php do_action('syrus-whatsapp-chat'); ?>


<?php get_footer(); ?>
  