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/Shortcodes/Shortcode.php
<?php

namespace EasingSlider\Foundation\Shortcodes;

use EasingSlider\Foundation\Contracts\Shortcodes\Shortcode as ShortcodeContract;

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

abstract class Shortcode implements ShortcodeContract
{
	/**
	 * Tag
	 *
	 * @var string
	 */
	protected $tag;

	/**
	 * Constructor
	 *
	 * @return void
	 */
	public function __construct()
	{
		$this->defineHooks();
	}

	/**
	 * Define hooks
	 *
	 * @return void
	 */
	protected function defineHooks()
	{
		add_shortcode($this->tag(), array($this, 'render'));
	}

	/**
	 * Returns the shortcode tag
	 *
	 * @return string
	 */
	public function tag()
	{	
		return $this->tag;
	}

	/**
	 * Renders the shortcode
	 *
	 * @param  array $atts
	 * @return string
	 */
	public function render($atts = array())
	{
		//
	}
}