HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/www/wp-content/themes/neobeat/inc/title/helper.php
<?php

if ( ! function_exists( 'neobeat_is_page_title_enabled' ) ) {
	/**
	 * Function that check is module enabled
	 */
	function neobeat_is_page_title_enabled() {
		return apply_filters( 'neobeat_filter_enable_page_title', true );
	}
}

if ( ! function_exists( 'neobeat_load_page_title' ) ) {
	/**
	 * Function which loads page template module
	 */
	function neobeat_load_page_title() {
		
		if ( neobeat_is_page_title_enabled() ) {
			// Include title template
			echo apply_filters( 'neobeat_filter_title_template', neobeat_get_template_part( 'title', 'templates/title' ) );
		}
	}
	
	add_action( 'neobeat_action_page_title_template', 'neobeat_load_page_title' );
}

if ( ! function_exists( 'neobeat_get_page_title_classes' ) ) {
	/**
	 * Function that return classes for page title area
	 *
	 * @return string
	 */
	function neobeat_get_page_title_classes() {
		$classes = apply_filters( 'neobeat_filter_page_title_classes', array() );
		
		return implode( ' ', $classes );
	}
}

if ( ! function_exists( 'neobeat_get_page_title_text' ) ) {
	/**
	 * Function that returns current page title text
	 */
	function neobeat_get_page_title_text() {
		$title = get_the_title( neobeat_get_page_id() );
		
		if ( ( is_home() && is_front_page() ) || is_singular( 'post' ) ) {
			$title = get_option( 'blogname' );
		} elseif ( is_tag() ) {
			$title = single_term_title( '', false ) . esc_html__( ' Tag', 'neobeat' );
		} elseif ( is_date() ) {
			$title = get_the_time( 'F Y' );
		} elseif ( is_author() ) {
			$title = esc_html__( 'Author: ', 'neobeat' ) . get_the_author();
		} elseif ( is_category() ) {
			$title = single_cat_title( '', false );
		} elseif ( is_archive() ) {
			$title = esc_html__( 'Archive', 'neobeat' );
		} elseif ( is_search() ) {
			$title = esc_html__( 'Search results for: ', 'neobeat' ) . get_search_query();
		} elseif ( is_404() ) {
			$title = esc_html__( '404 - Page not found', 'neobeat' );
		}
		
		return apply_filters( 'neobeat_filter_page_title_text', $title );
	}
}