<?php
/**
 * Body Classes.
 * @package Omega Refrigeration
 */

if (!function_exists('omega_refrigeration_body_classes')) :

    function omega_refrigeration_body_classes($omega_refrigeration_classes)
    {
        $omega_refrigeration_defaults = omega_refrigeration_get_default_theme_options();
        $omega_refrigeration_layout = omega_refrigeration_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $omega_refrigeration_classes[] = $omega_refrigeration_layout;

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

        return $omega_refrigeration_classes;
    }

endif;

add_filter('body_class', 'omega_refrigeration_body_classes');