ID) ? $post->ID : '', 'aryx_transparent_header', true ); $global_transparent_header = get_theme_mod( 'aryx_f_enable_s_transparent_header_p_header', '' ); if ( is_home() || is_archive() || ! $inpage_transparent_header || $inpage_transparent_header == 'customizer-default' ) { if ( $global_transparent_header == true ) { $classes[] = 'transparent-header'; } } elseif ( $inpage_transparent_header == 'enabled' ) { $classes[] = 'transparent-header'; } return $classes; } add_filter( 'body_class', 'aryx_body_classes' ); /** * Add a pingback url auto-discovery header for single posts, pages, or attachments. */ function aryx_pingback_header() { if ( is_singular() && pings_open() ) { printf( '', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'aryx_pingback_header' ); /** * Filters the default archive titles. */ function aryx_get_the_archive_title() { if ( is_category() ) { $title = __( '

Category

', 'aryx' ) . '

' . single_term_title( '', false ) . '

'; } elseif ( is_tag() ) { $title = __( '

Tag

', 'aryx' ) . '

' . single_term_title( '', false ) . '

'; } elseif ( is_author() ) { $title = __( '

Author

', 'aryx' ) . '

' . get_the_author_meta( 'display_name' ) . '

'; } elseif ( is_year() ) { $title = __( '

Yearly

', 'aryx' ) . '

' . get_the_date( _x( 'Y', 'yearly archives date format', 'aryx' ) ) . '

'; } elseif ( is_month() ) { $title = __( '

Monthly

', 'aryx' ) . '

' . get_the_date( _x( 'F Y', 'monthly archives date format', 'aryx' ) ) . '

'; } elseif ( is_day() ) { $title = __( '

Daily

', 'aryx' ) . '

' . get_the_date() . '

'; } elseif ( is_post_type_archive() ) { $title = __( '

Post Types

', 'aryx' ) . '

' . post_type_archive_title( '', false ) . '

'; } elseif ( is_tax() ) { $tax = get_taxonomy( get_queried_object()->taxonomy ); /* translators: %s: Taxonomy singular name */ $title = sprintf( esc_html__( '%s Archives:', 'aryx' ), $tax->labels->singular_name ); } else { $title = __( 'Archives:', 'aryx' ); } return $title; } add_filter( 'get_the_archive_title', 'aryx_get_the_archive_title' );