403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.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 : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/www/wp-content/themes/trackstore/framework/modules/widgets/separator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/www/wp-content/themes/trackstore/framework/modules/widgets/separator/separator.php
<?php

class TrackStoreElatedSeparatorWidget extends TrackStoreElatedWidget {
	public function __construct() {
		parent::__construct(
			'eltd_separator_widget',
			esc_html__( 'Elated Separator Widget', 'trackstore' ),
			array( 'description' => esc_html__( 'Add a separator element to your widget areas', 'trackstore' ) )
		);
		
		$this->setParams();
	}
	
	protected function setParams() {
		$this->params = array(
			array(
				'type'    => 'dropdown',
				'name'    => 'type',
				'title'   => esc_html__( 'Type', 'trackstore' ),
				'options' => array(
					'normal'     => esc_html__( 'Normal', 'trackstore' ),
					'full-width' => esc_html__( 'Full Width', 'trackstore' )
				)
			),
			array(
				'type'    => 'dropdown',
				'name'    => 'position',
				'title'   => esc_html__( 'Position', 'trackstore' ),
				'options' => array(
					'center' => esc_html__( 'Center', 'trackstore' ),
					'left'   => esc_html__( 'Left', 'trackstore' ),
					'right'  => esc_html__( 'Right', 'trackstore' )
				)
			),
			array(
				'type'    => 'dropdown',
				'name'    => 'border_style',
				'title'   => esc_html__( 'Style', 'trackstore' ),
				'options' => array(
					'solid'  => esc_html__( 'Solid', 'trackstore' ),
					'dashed' => esc_html__( 'Dashed', 'trackstore' ),
					'dotted' => esc_html__( 'Dotted', 'trackstore' )
				)
			),
			array(
				'type'  => 'textfield',
				'name'  => 'color',
				'title' => esc_html__( 'Color', 'trackstore' )
			),
			array(
				'type'  => 'textfield',
				'name'  => 'width',
				'title' => esc_html__( 'Width (px or %)', 'trackstore' )
			),
			array(
				'type'  => 'textfield',
				'name'  => 'thickness',
				'title' => esc_html__( 'Thickness (px)', 'trackstore' )
			),
			array(
				'type'  => 'textfield',
				'name'  => 'top_margin',
				'title' => esc_html__( 'Top Margin (px or %)', 'trackstore' )
			),
			array(
				'type'  => 'textfield',
				'name'  => 'bottom_margin',
				'title' => esc_html__( 'Bottom Margin (px or %)', 'trackstore' )
			)
		);
	}
	
	public function widget( $args, $instance ) {
		if ( ! is_array( $instance ) ) {
			$instance = array();
		}
		
		//prepare variables
		$params = '';
		
		//is instance empty?
		if ( is_array( $instance ) && count( $instance ) ) {
			//generate shortcode params
			foreach ( $instance as $key => $value ) {
				$params .= " $key='$value' ";
			}
		}
		
		echo '<div class="widget eltd-separator-widget">';
			echo do_shortcode( "[eltd_separator $params]" ); // XSS OK
		echo '</div>';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit