<?php
/**
 * Body Classes.
 * @package Medical Care Unit
 */

if (!function_exists('medical_care_unit_body_classes')) :

    function medical_care_unit_body_classes($medical_care_unit_classes)
    {
        $medical_care_unit_defaults = medical_care_unit_get_default_theme_options();
        $medical_care_unit_layout = medical_care_unit_get_final_sidebar_layout();

        // Adds a class of hfeed to non-singular pages.
        if (!is_singular()) {
            $medical_care_unit_classes[] = 'hfeed';
        }

        // Sidebar layout logic
        $medical_care_unit_classes[] = $medical_care_unit_layout;

        // Copyright alignment
        $copyright_alignment = get_theme_mod('medical_care_unit_copyright_alignment', 'Default');
        $medical_care_unit_classes[] = 'copyright-' . strtolower($copyright_alignment);

        return $medical_care_unit_classes;
    }

endif;

add_filter('body_class', 'medical_care_unit_body_classes');