Example #1
0
function jigoshop_page_body_classes()
{
    global $jigoshop_body_classes;
    $jigoshop_body_classes = (array) $jigoshop_body_classes;
    if (is_order_tracker()) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-tracker'));
    }
    if (is_checkout()) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-checkout'));
    }
    if (is_cart()) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-cart'));
    }
    if (is_page(jigoshop_get_page_id('thanks'))) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-thanks'));
    }
    if (is_page(jigoshop_get_page_id('pay'))) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-pay'));
    }
    if (is_account()) {
        jigoshop_add_body_class(array('jigoshop', 'jigoshop-myaccount'));
    }
}
Example #2
0
function fflcommerce_page_body_classes()
{
    global $fflcommerce_body_classes;
    $fflcommerce_body_classes = (array) $fflcommerce_body_classes;
    if (is_order_tracker()) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-tracker'));
    }
    if (is_checkout()) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-checkout'));
    }
    if (is_cart()) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-cart'));
    }
    if (is_page(fflcommerce_get_page_id('thanks'))) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-thanks'));
    }
    if (is_page(fflcommerce_get_page_id('pay'))) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-pay'));
    }
    if (is_account()) {
        fflcommerce_add_body_class(array('fflcommerce', 'fflcommerce-myaccount'));
    }
}