Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : Schema.php
<?php
namespace AIOSEO\Plugin\Addon\LocalBusiness\Schema;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Builds our schema.
 *
 * @since 1.0.0
 */
class Schema {
	/**
	 * Determines which graphs need to be output.
	 *
	 * @since   1.1.0
	 * @version 1.3.0
	 *
	 * @return array A list of graphs that need to be output.
	 */
	public function determineGraphsAndContext() {
		if ( ! aioseo()->options->localBusiness->locations->general->multiple ) {
			return is_front_page() || ( aioseo()->helpers->isStaticHomepage() && aioseo()->schema->generatingValidatorOutput ) ? [ 'LocalBusiness' ] : [];
		}

		return is_singular( aioseoLocalBusiness()->postType->getName() ) ? [ 'LocalBusiness' ] : [];
	}

	/**
	 * Returns data for the given graph if it's contained within this addon.
	 *
	 * @since 1.0.0
	 *
	 * @return array The graph data.
	 */
	public function get( $graphName ) {
		$namespace = __NAMESPACE__ . "\Graphs\\$graphName";
		if ( ! class_exists( $namespace ) ) {
			return [];
		}

		return ( new $namespace() )->get();
	}
}
© 2026 GrazzMean-Shell