<?php
/**
 * Body Classes.
 * @package Omega Hair Salon
 */

if (!function_exists('omega_hair_salon_body_classes')) :

    function omega_hair_salon_body_classes($omega_hair_salon_classes)
    {
        $omega_hair_salon_defaults = omega_hair_salon_get_default_theme_options();
        $omega_hair_salon_layout = omega_hair_salon_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $omega_hair_salon_classes[] = $omega_hair_salon_layout;

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

        return $omega_hair_salon_classes;
    }

endif;

add_filter('body_class', 'omega_hair_salon_body_classes');