ASTRA_Ext_Edd_Markup::body_class( array $classes )
Body Class
Description
Parameters
- $classes
-
(array) (Required) Default argument array.
Return
(array;)
Source
File: addons/edd/classes/class-astra-ext-edd-markup.php
public function body_class( $classes ) { $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_archive_page ) { $shop_style = astra_get_option( 'edd-archive-style' ); if ( 'edd-archive-page-list-style' == $shop_style ) { $classes[] = 'ast-' . $shop_style; } } elseif ( edd_is_checkout() ) { if ( astra_get_option( 'edd-distraction-free-checkout' ) ) { $classes[] = 'ast-edd-distraction-free-checkout'; } } return $classes; }
Expand full source code Collapse full source code View on Trac