public_html/wp-content/themes/LocalTwo/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 divertheme_body_classes( $classes ) {
	if ( is_multi_author() ) {
		$classes[] = 'group-blog';
	}
	global $divertheme_header_preset;
	if ( $divertheme_header_preset == 'default' || $divertheme_header_preset == '' ) {
		$classes[] = get_theme_mod( 'header_preset', header_preset );
	} elseif ( $divertheme_header_preset != 'default' ) {
		$classes[] = $divertheme_header_preset;
	} else {
		$classes[] = get_theme_mod( 'header_preset', header_preset );
	};
	if ( get_theme_mod( 'box_mode_enable' ) ) {
		$classes[] = 'boxed';
	}
	global $divertheme_uncover_enable, $wc_divertheme_uncover_enable;
	if ( ( get_theme_mod( 'footer_uncovering_enable', footer_uncovering_enable ) || $divertheme_uncover_enable == 'enable' || $wc_divertheme_uncover_enable == 'enable' ) && $divertheme_uncover_enable != 'disable' && $wc_divertheme_uncover_enable != 'disable' ) {
		$classes[] = 'uncover';
	}
	global $divertheme_disable_title;
	if ( $divertheme_disable_title == 'on' ) {
		$classes[] = 'disable-title';
	}
	global $divertheme_bread_crumb_enable;
	if ( $divertheme_bread_crumb_enable == 'disable' ) {
		$classes[] = 'disable-breadcrumb';
	}
	if ( get_post_meta( get_the_ID(), "divertheme_contact_address", true ) && is_page_template() ) {
		$classes[] = 'map-enable';
	}
	global $divertheme_sticky_header, $wc_divertheme_sticky_header;
	if ( ( get_theme_mod( 'header_sticky_enable', header_sticky_enable ) || $divertheme_sticky_header == 'enable' || $wc_divertheme_sticky_header == 'enable' ) && $divertheme_sticky_header != 'disable' && $wc_divertheme_sticky_header != 'disable' ) {
		$classes[] = 'header-sticky';
	}
	global $divertheme_header_top, $wc_divertheme_header_top;
	if ( ( get_theme_mod( 'header_top_enable', header_top_enable ) || $divertheme_header_top == 'enable' || $wc_divertheme_header_top == 'enable' ) && $divertheme_header_top != 'disable' && $wc_divertheme_header_top != 'disable' ) {
		$classes[] = 'top-area-enable';
	}
	global $divertheme_enable_page_layout_private, $divertheme_page_layout_private;
	if ( get_theme_mod( 'site_layout', site_layout ) == 'full-width' || $divertheme_page_layout_private == 'full-width' ) {
		$classes[] = 'full-width';
	} elseif ( get_theme_mod( 'site_layout', site_layout ) == 'content-sidebar' || $divertheme_page_layout_private == 'content-sidebar' ) {
		$classes[] = 'content-sidebar';
	} elseif ( get_theme_mod( 'site_layout', site_layout ) == 'sidebar-content' || $divertheme_page_layout_private == 'sidebar-content' ) {
		$classes[] = 'sidebar-content';
	}
	global $divertheme_custom_class;
	if ( $divertheme_custom_class ) {
		$classes[] = $divertheme_custom_class;
	}
	$classes[] = 'scheme';
	if ( defined( 'TM_CORE_VERSION' ) ) {
		$classes[] = 'core_' . str_replace( ".", "", TM_CORE_VERSION );
	}
	return $classes;
}
function divertheme_body_classes ( $ classes ) { if ( is_multi_author ( ) ) { $ classes [ ] = 'group-blog' ; } global $ divertheme_header_preset ; if ( $ divertheme_header_preset == 'default' || $ divertheme_header_preset == '' ) { $ classes [ ] = get_theme_mod ( 'header_preset' , header_preset ) ; } elseif ( $ divertheme_header_preset != 'default' ) { $ classes [ ] = $ divertheme_header_preset ; } else { $ classes [ ] = get_theme_mod ( 'header_preset' , header_preset ) ; } ; if ( get_theme_mod ( 'box_mode_enable' ) ) { $ classes [ ] = 'boxed' ; } global $ divertheme_uncover_enable , $ wc_divertheme_uncover_enable ; if ( ( get_theme_mod ( 'footer_uncovering_enable' , footer_uncovering_enable ) || $ divertheme_uncover_enable == 'enable' || $ wc_divertheme_uncover_enable == 'enable' ) && $ divertheme_uncover_enable != 'disable' && $ wc_divertheme_uncover_enable != 'disable' ) { $ classes [ ] = 'uncover' ; } global $ divertheme_disable_title ; if ( $ divertheme_disable_title == 'on' ) { $ classes [ ] = 'disable-title' ; } global $ divertheme_bread_crumb_enable ; if ( $ divertheme_bread_crumb_enable == 'disable' ) { $ classes [ ] = 'disable-breadcrumb' ; } if ( get_post_meta ( get_the_ID ( ) , " divertheme_contact_address " , true ) && is_page_template ( ) ) { $ classes [ ] = 'map-enable' ; } global $ divertheme_sticky_header , $ wc_divertheme_sticky_header ; if ( ( get_theme_mod ( 'header_sticky_enable' , header_sticky_enable ) || $ divertheme_sticky_header == 'enable' || $ wc_divertheme_sticky_header == 'enable' ) && $ divertheme_sticky_header != 'disable' && $ wc_divertheme_sticky_header != 'disable' ) { $ classes [ ] = 'header-sticky' ; } global $ divertheme_header_top , $ wc_divertheme_header_top ; if ( ( get_theme_mod ( 'header_top_enable' , header_top_enable ) || $ divertheme_header_top == 'enable' || $ wc_divertheme_header_top == 'enable' ) && $ divertheme_header_top != 'disable' && $ wc_divertheme_header_top != 'disable' ) { $ classes [ ] = 'top-area-enable' ; } global $ divertheme_enable_page_layout_private , $ divertheme_page_layout_private ; if ( get_theme_mod ( 'site_layout' , site_layout ) == 'full-width' || $ divertheme_page_layout_private == 'full-width' ) { $ classes [ ] = 'full-width' ; } elseif ( get_theme_mod ( 'site_layout' , site_layout ) == 'content-sidebar' || $ divertheme_page_layout_private == 'content-sidebar' ) { $ classes [ ] = 'content-sidebar' ; } elseif ( get_theme_mod ( 'site_layout' , site_layout ) == 'sidebar-content' || $ divertheme_page_layout_private == 'sidebar-content' ) { $ classes [ ] = 'sidebar-content' ; } global $ divertheme_custom_class ; if ( $ divertheme_custom_class ) { $ classes [ ] = $ divertheme_custom_class ; } $ classes [ ] = 'scheme' ; if ( defined ( 'TM_CORE_VERSION' ) ) { $ classes [ ] = 'core_' . str_replace ( " . " , " " , TM_CORE_VERSION ) ; } 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.