HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/themes/patterns-agency/includes/main.php
<?php // phpcs:ignore Class file names should be based on the class name with "class-" prepended.
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * The file that defines the core theme class
 *
 * A class definition that primarily includes necessary files for core functions, admin, includes, public, and APIs.
 *
 * @link       https://www.acmeit.org/
 * @since      1.0.0
 *
 * @package    Patterns_Agency
 * @subpackage Patterns_Agency/includes
 */

/**
 * The core theme class.
 *
 * A class definition that primarily includes necessary files for core functions, admin, includes, public, and APIs.
 *
 * @since      1.0.0
 * @package    Patterns_Agency
 * @subpackage Patterns_Agency/includes
 * @author     codersantosh <codersantosh@gmail.com>
 */
class Patterns_Agency {

	/**
	 * Define the core functionality of the theme.
	 * Init theme functions.
	 *
	 * @since    1.0.0
	 */
	public function __construct() {
		$this->load_dependencies();
	}

	/**
	 * Load the required dependencies for this theme.
	 *
	 * Include the following files that make up the theme:
	 *
	 * - includes/functions.php Reusable functions.
	 * - includes/class-include.php The common bothend functionality of the theme.
	 * - includes/api/index.php Manage APIs for this theme.
	 * - admin/index.php Manage actions in the admin area.
	 * - public/index.php Manage actions in the public area.
	 *
	 * @since    1.0.0
	 * @access   private
	 */
	private function load_dependencies() {

		/**Theme Core Functions*/
		require_once PATTERNS_AGENCY_PATH . 'includes/functions.php';

		/**The class responsible for defining all actions that occur in both admin and public area.*/
		require_once PATTERNS_AGENCY_PATH . 'includes/class-include.php';

		/**The class responsible for block bindings.*/
		require_once PATTERNS_AGENCY_PATH . 'includes/class-block-bindings.php';

		/* API */
		require_once PATTERNS_AGENCY_PATH . 'includes/api/index.php';

		/**The class responsible for defining all actions that occur in the admin area.*/
		require_once PATTERNS_AGENCY_PATH . 'admin/index.php';

		/** The class responsible for defining all actions that occur in the public-facing side of the site.*/
		require_once PATTERNS_AGENCY_PATH . 'public/index.php';
	}
}