PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /home/telusvwg/alwatnitraders.com/wp-content/plugins/ideapark-luchiana/elementor/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //home/telusvwg/alwatnitraders.com/wp-content/plugins/ideapark-luchiana/elementor/icon-list-1.php |
<?php
use Elementor\Icons_Manager;
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Repeater;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor icon list widget.
*
* Elementor widget that displays a bullet list with any chosen icons and texts.
*
* @since 1.0.0
*/
class Ideapark_Elementor_Icon_List_1 extends Widget_Base {
/**
* Get widget name.
*
* Retrieve icon list widget name.
*
* @return string Widget name.
* @since 1.0.0
* @access public
*
*/
public function get_name() {
return 'ideapark-icon-list-1';
}
/**
* Get widget title.
*
* Retrieve icon list widget title.
*
* @return string Widget title.
* @since 1.0.0
* @access public
*
*/
public function get_title() {
return __( 'Icon List', 'ideapark-luchiana' );
}
/**
* Get widget icon.
*
* Retrieve icon list widget icon.
*
* @return string Widget icon.
* @since 1.0.0
* @access public
*
*/
public function get_icon() {
return 'ip-icon-list';
}
/**
* Retrieve the list of categories the widget belongs to.
*
* Used to determine where to display the widget in the editor.
*
* Note that currently Elementor supports only one category.
* When multiple categories passed, Elementor uses the first one.
*
*/
public function get_categories() {
return [ 'ideapark-elements' ];
}
/**
* Get widget keywords.
*
* Retrieve the list of keywords the widget belongs to.
*
* @return array Widget keywords.
* @since 2.1.0
* @access public
*
*/
public function get_keywords() {
return [ 'icon list', 'icon', 'list' ];
}
/**
* Register icon list widget controls.
*
* Adds different input fields to allow the user to change and customize the widget settings.
*
* @since 1.0.0
* @access protected
*/
protected function register_controls() {
$this->start_controls_section(
'section_icon',
[
'label' => __( 'Icon List', 'ideapark-luchiana' ),
]
);
$repeater = new Repeater();
$repeater->add_control(
'title',
[
'label' => __( 'Title', 'ideapark-luchiana' ),
'type' => Controls_Manager::TEXT,
'label_block' => true,
'default' => __( 'List Item', 'ideapark-luchiana' ),
'placeholder' => __( 'Enter title', 'ideapark-luchiana' ),
'dynamic' => [
'active' => true,
],
]
);
$repeater->add_control(
'description',
[
'label' => __( 'Description', 'ideapark-luchiana' ),
'type' => Controls_Manager::TEXTAREA,
'rows' => 3,
'label_block' => true,
'default' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'ideapark-luchiana' ),
'placeholder' => __( 'Enter short description', 'ideapark-luchiana' ),
'dynamic' => [
'active' => true,
],
]
);
$repeater->add_control(
'icon_svg',
[
'label' => __( 'Icon', 'ideapark-luchiana' ),
'type' => Controls_Manager::ICONS,
'label_block' => true,
'default' => [
'value' => 'fas fa-star',
'library' => 'fa-solid',
],
'fa4compatibility' => 'icon'
]
);
$repeater->add_control(
'link',
[
'label' => __( 'Link', 'ideapark-luchiana' ),
'type' => Controls_Manager::URL,
'dynamic' => [
'active' => true,
],
'label_block' => true,
'placeholder' => __( 'https://your-link.com', 'ideapark-luchiana' ),
]
);
$this->add_control(
'icon_list',
[
'label' => '',
'type' => Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'title' => __( 'List Item #1', 'ideapark-luchiana' ),
'description' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'ideapark-luchiana' ),
'icon_svg' => 'fa fa-dot-circle-o',
'link' => '#'
],
[
'title' => __( 'List Item #2', 'ideapark-luchiana' ),
'description' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'ideapark-luchiana' ),
'icon_svg' => 'fa fa-dot-circle-o',
'link' => '#'
],
[
'title' => __( 'List Item #3', 'ideapark-luchiana' ),
'description' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'ideapark-luchiana' ),
'icon_svg' => 'fa fa-dot-circle-o',
'link' => '#'
],
],
'title_field' => '{{{ elementor.helpers.renderIcon( this, icon_svg, {}, "i", "panel" ) }}} {{{ title }}}',
]
);
$this->end_controls_section();
$this->start_controls_section(
'section_settings',
[
'label' => __( 'Widget Settings', 'ideapark-luchiana' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'icon_color',
[
'label' => __( 'Icon Color', 'ideapark-luchiana' ),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .c-ip-icon-list-1__icon' => 'color: {{VALUE}};',
'{{WRAPPER}} .c-ip-icon-list-1__item svg' => 'fill: {{VALUE}};',
],
]
);
$this->add_control(
'text_color',
[
'label' => __( 'Text Color', 'ideapark-luchiana' ),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .c-ip-icon-list-1__item' => 'color: {{VALUE}};',
],
]
);
$this->add_control(
'button_text',
[
'label' => __( 'Button text', 'ideapark-luchiana' ),
'description' => __( 'Leave empty for a link to the entire block', 'ideapark-luchiana' ),
'type' => Controls_Manager::TEXT,
'label_block' => true,
'placeholder' => __( 'Enter text', 'ideapark-luchiana' ),
'default' => __( 'Read more', 'ideapark-luchiana' ),
]
);
$this->end_controls_section();
}
/**
* Render icon list widget output on the frontend.
*
* Written in PHP and used to generate the final HTML.
*
* @since 1.0.0
* @access protected
*/
protected function render() {
$settings = $this->get_settings_for_display();
$count = sizeof( $settings['icon_list'] );
$half = ceil( $count / 2 );
?>
<div class="c-ip-icon-list-1">
<ul class="c-ip-icon-list-1__list">
<?php
foreach ( $settings['icon_list'] as $index => $item ) { ?>
<?php
if ( ! empty( $item['link']['url'] ) ) {
$link_key = 'link_' . $index;
$this->add_link_attributes( $link_key, $item['link'] );
$this->add_render_attribute( $link_key, 'class', $settings['button_text'] ? 'c-button c-button--outline c-ip-icon-list-1__button' : 'c-ip-icon-list-1__link' );
$is_link = true;
} else {
$is_link = false;
}
?>
<li class="c-ip-icon-list-1__item">
<?php
if ( $is_link && ! $settings['button_text'] ) {
echo '<a ' . $this->get_render_attribute_string( $link_key ) . '>';
}
if ( ! empty( $item['icon_svg'] ) ) { ?>
<?php Icons_Manager::render_icon( $item['icon_svg'], [
'aria-hidden' => 'true',
'class' => 'c-ip-icon-list-1__icon'
] ); ?>
<?php } ?>
<?php if ( $item['title'] ) { ?>
<div class="c-ip-icon-list-1__title"><?php echo $item['title']; ?></div>
<i class="ip-romb c-ip-icon-list-1__romb"></i>
<?php } ?>
<?php if ( $item['description'] ) { ?>
<div class="c-ip-icon-list-1__description"><?php echo $item['description']; ?></div>
<?php } ?>
<?php if ( $is_link && $settings['button_text'] ) {
echo '<a ' . $this->get_render_attribute_string( $link_key ) . '>' . esc_html( $settings['button_text'] );
} ?>
<?php if ( $is_link ) { ?></a><?php } ?>
</li>
<?php } ?>
</ul>
</div>
<?php
}
/**
* Render icon list widget output in the editor.
*
* Written as a Backbone JavaScript template and used to generate the live preview.
*
* @since 1.0.0
* @access protected
*/
protected function content_template() {
}
}