PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/myvideomania.com/wp-content/plugins/boldgrid-easy-seo/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/myvideomania.com/wp-content/plugins/boldgrid-easy-seo/autoload.php

<?php

/**
 * Handles autoloading of the BoldGrid SEO class/interface structure.
 *
 * @since 1.3.1
 * @package Boldgrid_Seo
 * @subpackage Boldgrid_Seo/includes
 * @author BoldGrid <support@boldgrid.com>
 * @link https://boldgrid.com
 */

if ( ! function_exists( 'boldgrid_seo_autoload' ) ) {
	/**
	 * The BoldGrid SEO class autoloader.
	 *
	 * Finds the path to a class that we're requiring and includes the file.
	 *
	 * @since 1.3.1
	 */
	function boldgrid_seo_autoload( $class_name ) {
		$paths = array();
		$our_class = ( 0 === stripos( $class_name, 'Boldgrid_Seo' ) );

		if ( $our_class ) {
			$path     = dirname( __FILE__ ) . '/includes/';
			$is_interface = ( substr( $class_name, -strlen( 'Interface' ) ) == 'Interface' );
			$filename = 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php';
			if ( $is_interface ) {
				$interface = str_replace( '_Interface', '', $class_name );
				$filename = 'interface-' . strtolower( str_replace( '_', '-', $interface ) ) . '.php';
			}

			$paths[] = $path . $filename;

			$substr   = str_replace( 'Boldgrid_Seo_', '', $class_name );
			$exploded = explode( '_', $substr );
			$levels   = count( $exploded );

			$previous_path = '';
			for ( $i = 0; $i < $levels; $i++ ) {
				$paths[] = $path . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename;
				$previous_path .= strtolower( $exploded[ $i ] ) . '/';
			}
			foreach ( $paths as $path ) {
				$path = wp_normalize_path( $path );
				if ( file_exists( $path ) ) {
					include $path;
					return;
				}
			}
		}
	}
	// Run the autoloader.
	spl_autoload_register( 'boldgrid_seo_autoload' );
}