403Webshell
Server IP : 49.212.180.16  /  Your IP : 3.15.2.88
Web Server : Apache
System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User : utannto ( 1076)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/utannto/www/hironaka.biz/wp-content/plugins/easing-slider/src/Plugin/Views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/utannto/www/hironaka.biz/wp-content/plugins/easing-slider/src/Plugin/Views/Slider.php
<?php

namespace EasingSlider\Plugin\Views;

use EasingSlider\Foundation\Contracts\Models\Model;

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

class Slider
{
	/**
	 * Slider
	 *
	 * @var \EasingSlider\Foundation\Contracts\Models\Model;
	 */
	protected $slider;

	/**
	 * Constructor
	 *
	 * @param  \EasingSlider\Foundation\Contracts\Models\Model $slider
	 * @return void
	 */
	public function __construct(Model $slider)
	{
		$this->slider = $slider;
	}

	/**
	 * Displays the view
	 *
	 * @return void
	 */
	public function display()
	{
		// Run through function
		$slider = apply_filters('easingslider_pre_display_slider', $this->slider);

		// Check for slides
		if (0 == count($slider->slides) && is_super_admin()) {

			// Display an error (to admins only) informing the user that the slider has no slides.
			printf(__('<p><strong>The slider ID #%d has no slides. Cannot display the slider.</strong></p>', 'easingslider'), $slider->ID);
		
		} else {

			// Load the slider template
			easingslider_get_template_part(array('slider' => $slider), 'slider');

		}

		// Do action
		do_action('easingslider_render_slider', $slider);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit