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