<?php
/**
 * Body Classes.
 * @package Cargo And Shipping Company
 */

if (!function_exists('cargo_and_shipping_company_body_classes')) :

    function cargo_and_shipping_company_body_classes($cargo_and_shipping_company_classes)
    {
        $cargo_and_shipping_company_defaults = cargo_and_shipping_company_get_default_theme_options();
        $cargo_and_shipping_company_layout = cargo_and_shipping_company_get_final_sidebar_layout();

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

        // Sidebar layout logic
        $cargo_and_shipping_company_classes[] = $cargo_and_shipping_company_layout;

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

        return $cargo_and_shipping_company_classes;
    }

endif;

add_filter('body_class', 'cargo_and_shipping_company_body_classes');