<?php
/**
 * Body Classes.
 * @package Skin Care Solutions
 */

if (!function_exists('skin_care_solutions_body_classes')) :

    function skin_care_solutions_body_classes($skin_care_solutions_classes)
    {
        $skin_care_solutions_defaults = skin_care_solutions_get_default_theme_options();
        $skin_care_solutions_layout = skin_care_solutions_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $skin_care_solutions_classes[] = $skin_care_solutions_layout;

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

        return $skin_care_solutions_classes;
    }

endif;

add_filter('body_class', 'skin_care_solutions_body_classes');