HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/jennysmasks.com/wp-content/themes/dyad/inc/extras.php
<?php
/**
 * Custom functions that act independently of the theme templates
 *
 * Eventually, some of the functionality here could be replaced by core features
 *
 * @package Dyad
 */


/**
 * HTML Body classes
 *
 * @since    1.0
 * @version  1.0
 *
 * @param  array $classes
 */


// Add specific CSS class to body
function dyad_body_classes( $classes ) {
	global $post;

	// Adds a class of group-blog to blogs with more than 1 published author.
	if ( is_multi_author() ) {
		$classes[] = 'group-blog';
	}

	//Singular?
	if ( is_singular() ) {
		$classes[] = 'is-singular';
	}

	//Has featured image?
	if ( has_post_thumbnail( $post->ID ) ) {
		$classes[] = 'has-post-thumbnail';
	}

	$header_image = get_header_image();
	if ( ( ! dyad_has_banner_posts( 1 ) && ( is_home() || is_archive() || is_search() ) ) && '' == $header_image ) {
		$classes[] = 'no-featured-posts';
	}

	$classes[] = 'no-js';

	return $classes;
}
add_filter( 'body_class', 'dyad_body_classes' );