<?php
/**
 * Body Classes.
 * @package Aerial Drone
 */

if (!function_exists('aerial_drone_body_classes')) :

    function aerial_drone_body_classes($aerial_drone_classes)
    {
        $aerial_drone_defaults = aerial_drone_get_default_theme_options();
        $aerial_drone_layout = aerial_drone_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $aerial_drone_classes[] = $aerial_drone_layout;

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

        return $aerial_drone_classes;
    }

endif;

add_filter('body_class', 'aerial_drone_body_classes');