Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Shortcodes/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Shortcodes/SearchWithMap.php

<?php

namespace RealPress\Shortcodes;

use RealPress\Helpers\Template;

class SearchWithMap extends AbstractShortcode {
	protected $shortcode_name = 'realpress_search_with_map';

	/**
	 * PropertyList constructor.
	 */
	public function __construct() {
		parent::__construct();
	}

	/**
	 * @param $attrs
	 *
	 * @return string
	 */
	public function render( $attrs ): string {
		$data = shortcode_atts(
			array(
				'template' => 'half_map',
			),
			$attrs
		);
		ob_start();
		if ( $data['template'] === 'header_map' ) {
			Template::instance( true )->get_frontend_template_type_classic( 'shortcodes/header-map.php', compact( 'data' ) );
		} else {
			Template::instance( true )->get_frontend_template_type_classic( 'shortcodes/half-map.php', compact( 'data' ) );
		}

		return ob_get_clean();
	}

	/**
	 * @return void
	 */
	public function enqueue_scripts() {
	}
}

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