File: /mnt/data/dreamsrent-wp/wp-content/plugins/dreamsrent-widgets/dreamsrent-elementor.php
<?php
/*
Plugin Name: DreamsRent Widgets
Plugin URI: #
Description: ELementor use in DreamsRent Theme
Author: Dreams Technologies
Version: 1.1.9
Author URI: #
Text Domain: dreamsrent_elementor
Domain Path: /languages/
*/
if ( ! defined( 'ABSPATH' ) ) exit;
define( 'ELEMENTOR_DREAMSRENTELEMENTOR__FILE__', __FILE__ );
include dirname( __FILE__ ) . '/plugin.php';
include dirname( __FILE__ ) . '/dreamsrentelementor-search-widget/dreamsrentelementor-search-widget.php';
include dirname( __FILE__ ) . '/dreamsrentelementor-recent-post/dreamsrentelementor-recent-post.php';
include dirname( __FILE__ ) . '/inc/ajax_process.php';
include dirname( __FILE__ ) . '/inc/shortcode.php';
load_plugin_textdomain( 'dreamsrent_elementor', false, basename( dirname( __FILE__ ) ) .'/languages' );
function dreamsrentelementor_elementor_widget_categories( $elements_manager ) {
$elements_manager->add_category(
'dreamsrentelemetortheme',
[
'title' => __( 'Dreams Rent', 'dreamsrent_elementor' ),
'icon' => 'fa fa-plug',
]
);
}
add_action( 'elementor/elements/categories_registered', 'dreamsrentelementor_elementor_widget_categories' );
function dreamsrentelementor_html_widget_title( $title ) {
$title = str_replace( '{{', '<i class="', $title );
$title = str_replace( '}}', '"></i>', $title );
return $title;
}
add_filter( 'widget_title', 'dreamsrentelementor_html_widget_title' );