public/wordpress/wp-content/themes/puro/inc/extras.php
/**
 * Adds custom classes to the array of body classes.
 *
 * @param array $classes Classes for the body element.
 * @return array
 */
Adds custom classes to the array of body classes.
@param array $classes Classes for the body element.
@return array
Adds custom classes to the array of body classes . @param array $classes Classes for the body element . @return array
function puro_body_classes( $classes ) {
	if ( is_multi_author() ) {
		$classes[] = 'group-blog';
	}
	$classes[] = 'no-touch';
	if ( ! is_active_sidebar( 'sidebar-1') ) {
		$classes[] = 'one-column';
	}	
	if ( siteorigin_setting( 'layout_responsive' ) ) {
		$classes[] = 'resp';
	}
	if ( is_active_sidebar( 'sidebar-1') ) {
		 $classes[] = 'sidebar';
	}
	return $classes;
}
function puro_body_classes ( $ classes ) { if ( is_multi_author ( ) ) { $ classes [ ] = 'group-blog' ; } $ classes [ ] = 'no-touch' ; if ( ! is_active_sidebar ( 'sidebar-1' ) ) { $ classes [ ] = 'one-column' ; } if ( siteorigin_setting ( 'layout_responsive' ) ) { $ classes [ ] = 'resp' ; } if ( is_active_sidebar ( 'sidebar-1' ) ) { $ classes [ ] = 'sidebar' ; } return $ classes ; }
Adds custom classes to the array of body classes.
Adds custom classes to the array of body classes .
// Adds a class of group-blog to blogs with more than 1 published author. // Adds a class which will be removed if a touch device is in use. // Add a class if the sidebar isn't active. // Add a class if responsive layout is enabled. // Add a class if the sidebar is active.