File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Blog.php
<?php
namespace Layerdrops\Noile\Widgets;
class Blog extends \Elementor\Widget_Base
{
public function get_name()
{
return 'noile-blog';
}
public function get_title()
{
return __('Blog', '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'),
'layout_two' => __('Layout Two', 'noile-addon'),
// 'layout_three' => __('Layout Three', 'noile-addon'),
// 'layout_four' => __('Layout Four', 'noile-addon'),
]
]
);
$this->end_controls_section();
include noile_get_elementor_option('blog-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, 'Section Title', '{{WRAPPER}} .sec-title__heading', ['layout_one']);
noile_elementor_general_style_options($this, 'Section Sub Title', '{{WRAPPER}} .sec-title__top', ['layout_one']);
noile_elementor_link_style_options($this, 'Post Title', '{{WRAPPER}} .blog__card-title', '{{WRAPPER}} .blog__card-title:hover', ['layout_one', 'layout_two', 'layout_three']);
noile_elementor_general_style_options($this, 'Post Meta', '{{WRAPPER}} .blog__card-comment', ['layout_one', 'layout_two']);
noile_elementor_link_style_options($this, 'Comment', '{{WRAPPER}} .blog__card-comment a', '{{WRAPPER}} .blog__card-comment a:hover', ['layout_one', 'layout_two', 'layout_three']);
$this->end_controls_section();
noile_elementor_column_count_options($this, ['layout_one']);
noile_get_elementor_carousel_options($this, ['layout_two']);
}
protected function render()
{
$settings = $this->get_settings_for_display();
include noile_get_template('blog-one.php');
include noile_get_template('blog-two.php');
// include noile_get_template('blog-three.php');
// include noile_get_template('blog-four.php');
}
}