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/dreamssalon-wp/wp-content/plugins/dreamsalon-widgets/dreamsalon-elementor.php
<?php
/*
Plugin Name: DreamSalon Widgets
Plugin URI: #
Description: ELementor use in DreamSalon Theme
Author: Dreams Technologies
Version: 1.0
Author URI: #
Text Domain: dreamsalon_elementor
Domain Path: /languages/
*/

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

define( 'ELEMENTOR_dreamsalonELEMENTOR__FILE__', __FILE__ );

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


function dreamsalonelementor_elementor_widget_categories( $elements_manager ) {

	$elements_manager->add_category(
		'dreamsalonelemetortheme',
		[
			'title' => __( 'Dreams Saloon', 'dreamsalon_elementor' ),
			'icon' => 'fa fa-plug',
		]
	);

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


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