Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/leadin/public
File: class-leadin.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Leadin;
[2] Fix | Delete
[3] Fix | Delete
require_once LEADIN_PLUGIN_DIR . '/public/includes/api-loader.php';
[4] Fix | Delete
[5] Fix | Delete
use \Leadin\AssetsManager;
[6] Fix | Delete
use \Leadin\PageHooks;
[7] Fix | Delete
use \Leadin\admin\LeadinAdmin;
[8] Fix | Delete
use Leadin\admin\widgets\ElementorForm;
[9] Fix | Delete
use Leadin\admin\widgets\ElementorMeeting;
[10] Fix | Delete
use Leadin\admin\widgets\ElementorFormSelect;
[11] Fix | Delete
use Leadin\admin\widgets\ElementorMeetingSelect;
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Main class of the plugin.
[15] Fix | Delete
*/
[16] Fix | Delete
class Leadin {
[17] Fix | Delete
/**
[18] Fix | Delete
* Plugin's constructor. Everything starts here.
[19] Fix | Delete
*/
[20] Fix | Delete
public function __construct() {
[21] Fix | Delete
new PageHooks();
[22] Fix | Delete
add_action( 'elementor/elements/categories_registered', array( $this, 'add_elementor_widget_categories' ) );
[23] Fix | Delete
add_action( 'elementor/controls/register', array( $this, 'register_hsselectors_control' ) );
[24] Fix | Delete
add_action( 'elementor/widgets/register', array( $this, 'register_elementor_widgets' ) );
[25] Fix | Delete
if ( is_admin() ) {
[26] Fix | Delete
new LeadinAdmin();
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Register widgets for Elementor.
[32] Fix | Delete
*
[33] Fix | Delete
* @param object $elements_manager elementor widget manager.
[34] Fix | Delete
*/
[35] Fix | Delete
public function add_elementor_widget_categories( $elements_manager ) {
[36] Fix | Delete
$elements_manager->add_category(
[37] Fix | Delete
'hubspot',
[38] Fix | Delete
array(
[39] Fix | Delete
'title' => esc_html__( 'Hubspot', 'leadin' ),
[40] Fix | Delete
'icon' => 'fa fa-plug',
[41] Fix | Delete
)
[42] Fix | Delete
);
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Register widgets for Elementor.
[47] Fix | Delete
*
[48] Fix | Delete
* @param object $widgets_manager elementor widget manager.
[49] Fix | Delete
*/
[50] Fix | Delete
public function register_elementor_widgets( $widgets_manager ) {
[51] Fix | Delete
$widgets_manager->register( new ElementorForm() );
[52] Fix | Delete
$widgets_manager->register( new ElementorMeeting() );
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Register controls for elementor widget
[57] Fix | Delete
*
[58] Fix | Delete
* @param object $controls_manager elementor controls manager.
[59] Fix | Delete
*/
[60] Fix | Delete
public function register_hsselectors_control( $controls_manager ) {
[61] Fix | Delete
$controls_manager->register( new ElementorFormSelect() );
[62] Fix | Delete
$controls_manager->register( new ElementorMeetingSelect() );
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function