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' );