HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/demo-smarthrlanding-wp/wp-content/plugins/dreamslanding-widgets/dreamstour-elementor.php
<?php
/*
Plugin Name: DreamsLanding Widgets
Plugin URI: #
Description: ELementor use in DreamstLanding Theme
Author: Dreams Technologies
Version: 1.0
Author URI: #
Text Domain: dreamslanding_elementor
Domain Path: /languages/
*/

if ( ! defined( 'ABSPATH' ) ) exit;

define( 'ELEMENTOR_DREAMSLANDINGELEMENTOR__FILE__', __FILE__ );

include dirname( __FILE__ ) . '/plugin.php';
   
load_plugin_textdomain( 'dreamslanding_elementor', false, basename( dirname( __FILE__ ) ) .'/languages' );


function dreamslandingelementor_elementor_widget_categories( $elements_manager ) {

	$elements_manager->add_category(
		'dreamslandingelemetortheme',
		[
			'title' => __( 'Dreams Landing', 'dreamslanding_elementor' ),
			'icon' => 'fa fa-plug',
		]
	);

}
add_action( 'elementor/elements/categories_registered', 'dreamslandingelementor_elementor_widget_categories' );


function dreamslandingelementor_html_widget_title( $title ) {
	$title = str_replace( '{{', '<i class="', $title );
	$title = str_replace( '}}', '"></i>', $title );
	return $title;
}
add_filter( 'widget_title', 'dreamslandingelementor_html_widget_title' );