403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/ict/wp-content/plugins/so-widgets-bundle/base/inc/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/ict/wp-content/plugins/so-widgets-bundle/base/inc/fields/section.class.php
<?php

/**
 * Class SiteOrigin_Widget_Field_Section
 */
class SiteOrigin_Widget_Field_Section extends SiteOrigin_Widget_Field_Container_Base {
	/**
	 * Whether to output the section as a tab. A series of sections setup as tabs will output in a single tab.
	 *
	 * @access protected
	 * @var string
	 */
	protected $tab;

	protected function get_label_classes( $value, $instance ) {
		$label_classes = parent::get_label_classes( $value, $instance );
		if ( $this->state == 'open' ) {
			$label_classes[] = 'siteorigin-widget-section-visible';
		}
		if ( ! empty( $this->tab ) ) {
			 $label_classes[] = 'siteorigin-widget-section-tab';
		}

		return $label_classes;
	}


	protected function render_field( $value, $instance ) {
		$classes = 'siteorigin-widget-section';
		$classes .= $this->state == 'closed' ? ' siteorigin-widget-section-hide' : '';
		?>
		<div class="<?php echo $classes; ?>">
			<?php
			if (
				! isset( $this->fields ) ||
				empty( $this->fields )
			) {
				echo '</div>';
				return;
			}
			$this->create_and_render_sub_fields(
				$value,
				array(
					'name' => $this->base_name,
					'type' => 'section',
				)
			);
			?>
			<input
				type="hidden"
				name="<?php echo esc_attr( $this->element_name . '[so_field_container_state]' ); ?>"
				id="<?php echo esc_attr( $this->element_id . '-so_field_container_state' ); ?>"
				class="siteorigin-widget-input siteorigin-widget-field-container-state"
				value="<?php echo esc_attr( $this->state ); ?>"
			/>
		</div>
		<?php
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit