Uname:Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64

Base Dir : /home2/dlsafepha/public_html

User : dlsafepha


403WebShell
403Webshell
Server IP : 103.249.100.196  /  Your IP : 216.73.216.194
Web Server : Apache
System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64
User : dlsafepha ( 1078)
PHP Version : 8.2.36
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/dlsafepha/public_html/wp-content/plugins/elementor-sm-widgets/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/dlsafepha/public_html/wp-content/plugins/elementor-sm-widgets/widgets/service_blockII.php
<?php // phpcs:ignore
namespace SmWidgets\Widgets;

use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Base_Control;

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

/**
 * Elementor Hello World
 *
 * Elementor widget for hello world.
 *
 * @since 1.0.0
 */

// @codingStandardsIgnoreStart
class ServiceBlockII extends Widget_Base {

	/**
	 * Retrieve the widget name.
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 *
	 * @return string Widget name.
	 */
	public function get_name() {
		return 'sm-service-block-II';
	}

	/**
	 * Retrieve the widget title.
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 *
	 * @return string Widget title.
	 */
	public function get_title() {
		return __( 'Service Block II', 'smwidgets' );
	}

	/**
	 * Retrieve the widget icon.
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 *
	 * @return string Widget icon.
	 */
	public function get_icon() {
		return 'eicon-posts-grid';
	}

	/**
	 * Retrieve the list of categories the widget belongs to.
	 *
	 * Used to determine where to display the widget in the editor.
	 *
	 * Note that currently Elementor supports only one category.
	 * When multiple categories passed, Elementor uses the first one.
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 *
	 * @return array Widget categories.
	 */
	public function get_categories() {
		return [ 'theme-elements' ];
	}

	/**
	 * Retrieve the list of scripts the widget depended on.
	 *
	 * Used to set scripts dependencies required to run the widget.
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 *
	 * @return array Widget scripts dependencies.
	 */
	public function get_script_depends() {
		return [ 'smwidgets' ];
	}




	/**
	 * Register the widget controls.
	 *
	 * Adds different input fields to allow the user to change and customize the widget settings.
	 *
	 * @since 1.0.0
	 *
	 * @access protected
	 */
	protected function register_controls() {
		$this->start_controls_section(
			'sm_content',
			[
				'label' => __( 'Content', 'smwidgets' ),
			]
		);

		$this->add_control(
			'title',
			[
				'label' => __( 'Title', 'smwidgets' ),
				'type' => Controls_Manager::TEXT,
				'default' => __( 'Title', 'smwidgets' ),
			]
		);

		$this->add_control(
			'content',
			[
				'label' => __( 'Content', 'smwidgets' ),
				'type' => Controls_Manager::TEXTAREA,
				'default' => __( 'Content', 'smwidgets' ),
			]
		);

		$this->add_control(
			'link',
			[
				'label' => __( 'Link', 'smwidgets' ),
				'type' => Controls_Manager::TEXTAREA,
				'default' => __( 'Link', 'smwidgets' ),
			]
		);

		$this->add_control(
			'related_link',
			[
				'label' => __( 'Related Link', 'smwidgets' ),
				'type' => Controls_Manager::SWITCHER,
				'default' => 'yes',
			]
		);

		$this->add_control(
			'icons',
			[
				'label' => __( 'Icons', 'smwidgets' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'options' => theme_icons(),
				'exclude' => theme_fa_icons(),
				'label_block' => true,
			]
		);

		$this->add_control(
			'image',
			[
				'label' => __( 'Choose Image', 'smwidgets' ),
				'type' => Controls_Manager::MEDIA,
				'dynamic' => [
					'active' => true,
				],

			]
		);

		$this->end_controls_section();




	}

	/**
	 * Render the widget output on the frontend.
	 *
	 * Written in PHP and used to generate the final HTML.
	 *
	 * @since 1.0.0
	 *
	 * @access protected
	 */
	protected function render() {
		$settings = $this->get_settings();
		$this->add_inline_editing_attributes( 'title', 'none' );
		$this->add_inline_editing_attributes( 'content', 'none' );

	?>

	<div class="man_woo_cat_item man_service_block_II man_woo_cat_item_centered">
  		<a href="<?php if ($settings['related_link'] == 'yes'): ?><?php echo esc_url(get_home_url()); ?><?php endif ?><?php echo esc_url($settings['link']); ?>" class="man_image_bck" data-image="<?php echo wp_get_attachment_image_url($settings['image']['id'],'bauwerk_gallery_thumb'); ?>">
  			<span class="man_woo_cat_item_over"></span>
				
				<div class="man_woo_cat_item_cont">
					<i class="<?php echo esc_attr($settings['icons']); ?> man_icon"></i>
					<h3 class="man_woo_cat_item_cont_name"><?php echo wp_kses_post($settings['title']); ?></h3>
				</div>

				<div class="man_woo_cat_item_cont man_woo_cat_item_cont_2">
					<h3 class="man_woo_cat_item_cont_name"><?php echo wp_kses_post($settings['title']); ?></h3>
					<div class="man_woo_cat_item_cont_an">
						<div><?php echo wp_kses_post($settings['content']); ?></div>	
						<span class="btn btn_transparent"><?php echo esc_html__( 'View', 'smwidgets' ); ?><i class="ti ti-arrow-right"></i></span>
					</div>
				</div>




			</a>
  	</div>   


	<?php
	}

	/**
	 * Render the widget output in the editor.
	 *
	 * Written as a Backbone JavaScript template and used to generate the live preview.
	 *
	 * @since 1.0.0
	 *
	 * @access protected
	 */
	protected function _content_template() {
		?>
		<div class="title">	
			<i class="{{{ settings.icons }}} man_icon"></i>
			<h3>{{{ settings.title }}}</h3>
			<p>{{{ settings.content }}}</p>
		</div>
		<?php
	}
}
// @codingStandardsIgnoreEnd

Youez - 2016 - github.com/yon3zu
LinuXploit