403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/www/wp-content/themes/woodmart/inc/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/www/wp-content/themes/woodmart/inc/widgets/class-static-block-widget.php
<?php if ( ! defined('WOODMART_THEME_DIR')) exit('No direct script access allowed');

/**
 * Register widget that displays HTML static block
 *
 */

if ( ! class_exists( 'WOODMART_Static_Block_Widget' ) ) {
	class WOODMART_Static_Block_Widget extends WPH_Widget {
	
		function __construct() {
			
		
			// Configure widget array
			$args = array( 
				// Widget Backend label
				'label' => esc_html__( 'WOODMART HTML Block', 'woodmart' ), 
				// Widget Backend Description								
				'description' => esc_html__( 'Display HTML block', 'woodmart' ), 	
				'slug' => 'woodmart-html-block',
			 );
		
		
			// fields array

			$args['fields'] = array(
				array(
					'id'              => 'id',
					'type'            => 'dropdown',
					'heading'         => esc_html__( 'Select block', 'woodmart' ),
					'callback_global' => 'woodmart_get_static_blocks_array',
					'description'     => function_exists( 'woodmart_get_html_block_links' ) ? woodmart_get_html_block_links() : '',
				),
			); // fields array

			// create widget
			$this->create_widget( $args );
		}
		
		// Output function

		function widget( $args, $instance )	{
			if ( $this->is_widget_preview() ) {
				return;
			}

			echo woodmart_get_html_block( $instance['id'] );
		}
	
	} // class
}

Youez - 2016 - github.com/yon3zu
LinuXploit