<?php
/**
 * Body Classes.
 * @package Solar Energy Engine
 */

if (!function_exists('solar_energy_engine_body_classes')) :

    function solar_energy_engine_body_classes($solar_energy_engine_classes)
    {
        $solar_energy_engine_defaults = solar_energy_engine_get_default_theme_options();
        $solar_energy_engine_layout = solar_energy_engine_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $solar_energy_engine_classes[] = $solar_energy_engine_layout;

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

        return $solar_energy_engine_classes;
    }

endif;

add_filter('body_class', 'solar_energy_engine_body_classes');