<?php
/**
 * Body Classes.
 * @package Car Rental Service
 */

if (!function_exists('car_rental_service_body_classes')) :

    function car_rental_service_body_classes($car_rental_service_classes)
    {
        $car_rental_service_defaults = car_rental_service_get_default_theme_options();
        $car_rental_service_layout = car_rental_service_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $car_rental_service_classes[] = $car_rental_service_layout;

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

        return $car_rental_service_classes;
    }

endif;

add_filter('body_class', 'car_rental_service_body_classes');