File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Award.php
<?php
namespace Layerdrops\Noile\Widgets;
class Award extends \Elementor\Widget_Base
{
public function get_name()
{
return 'noile-award';
}
public function get_title()
{
return __('Award', 'noile-addon');
}
public function get_icon()
{
return 'eicon-cogs';
}
public function get_categories()
{
return ['noile-category'];
}
protected function register_controls()
{
$this->start_controls_section(
'layout_section',
[
'label' => __('Layout', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'layout_type',
[
'label' => __('Select Layout', 'noile-addon'),
'type' => \Elementor\Controls_Manager::SELECT2,
'default' => 'layout_one',
'options' => [
'layout_one' => __('Layout One', 'noile-addon'),
]
]
);
$this->end_controls_section();
include noile_get_elementor_option('award-one-option.php');
//General style
$this->start_controls_section(
'general_style',
[
'label' => esc_html__('Content Style', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
noile_elementor_general_style_options($this, 'Title', '{{WRAPPER}} .awards-one__title', ['layout_one']);
noile_elementor_general_style_options($this, 'Year', '{{WRAPPER}} .awards-one__year', ['layout_one']);
noile_elementor_general_style_options($this, 'Summary', '{{WRAPPER}} .awards-one__text', ['layout_one']);
$this->end_controls_section();
}
protected function render()
{
$settings = $this->get_settings_for_display();
include noile_get_template('award-one.php');
}
}