HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/themes/hiroshi/inc/title/helper.php
<?php

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

if ( ! function_exists( 'hiroshi_load_page_title' ) ) {
	/**
	 * Function which loads page template module
	 */
	function hiroshi_load_page_title() {

		if ( hiroshi_is_page_title_enabled() ) {
			// Include title template
			echo apply_filters( 'hiroshi_filter_title_template', hiroshi_get_template_part( 'title', 'templates/title' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		}
	}

	add_action( 'hiroshi_action_page_title_template', 'hiroshi_load_page_title' );
}

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

		return implode( ' ', $classes );
	}
}

if ( ! function_exists( 'hiroshi_get_page_title_text' ) ) {
	/**
	 * Function that returns current page title text
	 */
	function hiroshi_get_page_title_text() {
		$title = get_the_title( hiroshi_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', 'hiroshi' );
		} elseif ( is_date() ) {
			$title = get_the_time( 'F Y' );
		} elseif ( is_author() ) {
			$title = esc_html__( 'Author: ', 'hiroshi' ) . get_the_author();
		} elseif ( is_category() ) {
			$title = single_cat_title( '', false );
		} elseif ( is_archive() ) {
			$title = esc_html__( 'Archive', 'hiroshi' );
		} elseif ( is_search() ) {
			$title = esc_html__( 'Search results for: ', 'hiroshi' ) . get_search_query();
		} elseif ( is_404() ) {
			$title = esc_html__( '404 - Page not found', 'hiroshi' );
		}

		return apply_filters( 'hiroshi_filter_page_title_text', $title );
	}
}