geno/wp-content/plugins/essential-addons-for-elementor-lite/includes/Elements/Crowdfundly_Organization.php
2024-02-01 11:54:18 +00:00

59 lines
1.5 KiB
PHP

<?php
namespace Essential_Addons_Elementor\Elements;
// If this file is called directly, abort.
if (!defined('ABSPATH')) {
exit;
}
use \Elementor\Controls_Manager;
use \Elementor\Widget_Base;
class Crowdfundly_Organization extends Widget_Base {
public function get_name() {
return 'crowdfundly-organization';
}
public function get_title() {
return __( 'Crowdfundly Organization', 'crowdfundly' );
}
public function get_icon() {
return 'eaicon-crowdfundly-organization';
}
public function get_keywords() {
return [ 'crowdfundly', 'fund', 'donation', 'organization', 'ea', 'ea crowdfundly' ];
}
public function get_categories() {
return [ 'essential-addons-elementor' ];
}
protected function register_controls() {
$this->start_controls_section(
'eael_global_warning',
[
'label' => __('Warning!', 'essential-addons-for-elementor-lite'),
]
);
$this->add_control(
'eael_global_warning_text',
[
'type' => Controls_Manager::RAW_HTML,
'raw' => __('<strong>Crowdfundly</strong> is not installed/activated on your site. Please install and activate <a href="plugin-install.php?s=crowdfundly&tab=search&type=term" target="_blank">Crowdfundly</a> first.',
'essential-addons-for-elementor-lite'),
'content_classes' => 'eael-warning',
]
);
$this->end_controls_section();
}
protected function render() {
return;
}
}