HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/easing-slider/src/Foundation/Admin/Panels/Panel.php
<?php

namespace EasingSlider\Foundation\Admin\Panels;

use EasingSlider\Foundation\Contracts\Admin\Panels\Panel as PanelContract;

/**
 * Exit if accessed directly
 */
if ( ! defined('ABSPATH')) {
	exit;
}

abstract class Panel implements PanelContract
{
	/**
	 * Gets a parameter from the URL
	 *
	 * @param  string $param
	 * @return string|false
	 */
	protected function getUrlParam($param)
	{
		if ( ! empty($_GET[$param])) {
			return $_GET[$param];
		}

		return false;
	}

	/**
	 * Gets the page slug
	 *
	 * @return string|false
	 */
	protected function getPage()
	{
		return $this->getUrlParam('page');
	}

	/**
	 * Gets the page ID
	 *
	 * @return string|false
	 */
	protected function getID()
	{
		return $this->getUrlParam('edit');
	}

	/**
	 * Shows a view
	 *
	 * @param  string $view
	 * @param  array  $data
	 * @return void
	 */
	protected function showView($view, $data = array())
	{
		extract($data);

		require EASINGSLIDER_RESOURCES_DIR .'views/'. $view .'.php';
	}

	/**
	 * Displays the panel
	 *
	 * @return void
	 */
	public function display()
	{
		//
	}
}