<?php
/**
 * Body Classes.
 * @package Omega Online Store
 */

if (!function_exists('omega_online_store_body_classes')) :

    function omega_online_store_body_classes($omega_online_store_classes)
    {
        $omega_online_store_defaults = omega_online_store_get_default_theme_options();
        $omega_online_store_layout = omega_online_store_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $omega_online_store_classes[] = $omega_online_store_layout;

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

        return $omega_online_store_classes;
    }

endif;

add_filter('body_class', 'omega_online_store_body_classes');