File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Shop.php
<?php
namespace Layerdrops\Noile\Widgets;
class Shop extends \Elementor\Widget_Base
{
public function get_name()
{
return 'noile-shop';
}
public function get_title()
{
return __('Shop', '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('shop-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, 'Product Title', '{{WRAPPER}} .product__item__title a', ['layout_one']);
noile_elementor_general_style_options($this, 'Product Price', '{{WRAPPER}} .product__item__price', ['layout_one']);
$this->end_controls_section();
//Button Style
$this->start_controls_section(
'button_style',
[
'label' => esc_html__('Button Style', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
noile_elementor_button_style_options($this, 'Button', '{{WRAPPER}} .thm-btn', '{{WRAPPER}} .hot-products__content .hot-products__btn-box .thm-btn::before,{{WRAPPER}} .hot-product-three__btn-box .thm-btn::before', ['layout_one', 'layout_two', 'layout_three', 'layout_four']);
$this->end_controls_section();
noile_get_elementor_carousel_options($this, ['layout_one']);
}
protected function render()
{
$settings = $this->get_settings_for_display();
include noile_get_template('shop-one.php');
}
}