<?php
/**
 * Body Classes.
 * @package Sneakers Sports Shoes
 */

if (!function_exists('sneakers_sports_shoes_body_classes')) :

    function sneakers_sports_shoes_body_classes($sneakers_sports_shoes_classes)
    {
        $sneakers_sports_shoes_defaults = sneakers_sports_shoes_get_default_theme_options();
        $sneakers_sports_shoes_layout = sneakers_sports_shoes_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $sneakers_sports_shoes_classes[] = $sneakers_sports_shoes_layout;

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

        return $sneakers_sports_shoes_classes;
    }

endif;

add_filter('body_class', 'sneakers_sports_shoes_body_classes');