Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Helpers/TemplateHooks/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Helpers/TemplateHooks/ArchiveProperty.php

<?php

namespace RealPress\Helpers\TemplateHooks;

use RealPress\Helpers\Template;

class ArchiveProperty {
	public $template;

	public static function instance() {
		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self();
		}

		return $instance;
	}

	protected function __construct() {
		$this->template = Template::instance();
		add_action( 'realpress/layout/archive-property', array( $this, 'sections_layout' ) );
		add_action( 'realpress/layout/archive-property/main-content', array( $this, 'sections_main_content' ) );
		add_action( 'realpress/layout/archive-property/control-group', array( $this, 'sections_control_group' ) );
		add_action( 'realpress/layout/archive-property/container/before', array( $this, 'section_before_container' ) );
	}

	public function sections_layout( array $data ) {
		$sections = apply_filters(
			'realpress/filter/archive-property/sections',
			array(
				'archive-property/section/main-content.php',
				'archive-property/section/sidebar.php',
			)
		);

		$this->template->get_frontend_templates_type_classic( $sections, compact( 'data' ) );
	}

	public function sections_main_content( $data ) {
		$sections = apply_filters(
			'realpress/filter/archive-property/main-content',
			array(
				'archive-property/section/main-content/control-group.php',
				'shared/property-list/property-container.php',
				'shared/pagination/index.php',
			)
		);

		$this->template->get_frontend_templates_type_classic( $sections, compact( 'data' ) );
	}

	public function sections_control_group( $data ) {
		$sections = apply_filters(
			'realpress/filter/archive-property/control-group',
			array(
				'archive-property/section/main-content/title.php',
				'shared/property-sort.php',
				'archive-property/section/main-content/switch-view.php',
			)
		);

		$this->template->get_frontend_templates_type_classic( $sections, compact( 'data' ) );
	}

	/**
	 * @param $data
	 *
	 * @return void
	 */
	public function section_before_container( $data ) {
		$sections = apply_filters(
			'realpress/filter/archive-property/container/before',
			array(
				'shared/breadcrumb.php',
				'shortcodes/advanced-search.php',
			)
		);

		$this->template->get_frontend_templates_type_classic( $sections, compact( 'data' ) );
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists