Plugin Directory

Changeset 3217400


Ignore:
Timestamp:
01/06/2025 05:28:35 AM (13 months ago)
Author:
shaikhaezaz80
Message:

1.3.3

Location:
news-ticker-widget-for-elementor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • news-ticker-widget-for-elementor/trunk/elementor-news-ticker.php

    r3030068 r3217400  
    44 * Plugin URI: https://flickdevs.com/elementor/
    55 * description: It showcases your most recent posts in a ticker style.
    6  * Version: 1.3.2
    7  * Elementor tested up to: 3.19.0
     6 * Version: 1.3.3
     7 * Elementor tested up to: 3.26.3
    88 * Author: FlickDevs
    99 * Author URI: https://flickdevs.com
     
    4646 */
    4747function fd_nt_elementor_load_plugin() {
    48     load_plugin_textdomain('ELEMENTORNEWTICKER_DOMAIN');
     48    load_plugin_textdomain('elementor-news-ticker');
    4949    if (!did_action('elementor/loaded')) {
    5050        add_action('admin_notices', 'fd_nt_elementor_widgets_fail_load');
     
    6969        }
    7070        $activation_url = wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin);
    71         $message = '<p>' . __('Elementor News Ticker not working because you need to activate the Elementor plugin.', ELEMENTORNEWTICKER_DOMAIN) . '</p>';
    72         $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $activation_url, __('Activate Elementor Now', ELEMENTORNEWTICKER_DOMAIN)) . '</p>';
     71        $message = '<p>' . __('Elementor News Ticker not working because you need to activate the Elementor plugin.', 'elementor-news-ticker') . '</p>';
     72        $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $activation_url, __('Activate Elementor Now', 'elementor-news-ticker')) . '</p>';
    7373    } else {
    7474        if (!current_user_can('install_plugins')) {
     
    7676        }
    7777        $install_url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=elementor'), 'install-plugin_elementor');
    78         $message = '<p>' . __('Elementor News Ticker not working because you need to install the Elemenor plugin', ELEMENTORNEWTICKER_DOMAIN) . '</p>';
    79         $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $install_url, __('Install Elementor Now', ELEMENTORNEWTICKER_DOMAIN)) . '</p>';
    80     }
    81     echo '<div class="error"><p>' . $message . '</p></div>';
     78        $message = '<p>' . __('Elementor News Ticker not working because you need to install the Elemenor plugin', 'elementor-news-ticker') . '</p>';
     79        $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $install_url, __('Install Elementor Now', 'elementor-news-ticker')) . '</p>';
     80    }
     81    echo '<div class="error"><p>' . esc_html($message) . '</p></div>';
    8282}
    8383function fd_nt_elementor_fail_load_out_of_date() {
     
    8787    $file_path = 'elementor/elementor.php';
    8888    $upgrade_link = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file_path, 'upgrade-plugin_' . $file_path);
    89     $message = '<p>' . __('Elementor News Ticker not working because you are using an old version of Elementor.', ELEMENTORNEWTICKER_DOMAIN) . '</p>';
    90     $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $upgrade_link, __('Update Elementor Now', ELEMENTORNEWTICKER_DOMAIN)) . '</p>';
    91     echo '<div class="error">' . $message . '</div>';
     89    $message = '<p>' . __('Elementor News Ticker not working because you are using an old version of Elementor.', 'elementor-news-ticker') . '</p>';
     90    $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $upgrade_link, __('Update Elementor Now', 'elementor-news-ticker')) . '</p>';
     91    echo '<div class="error">' . esc_html($message) . '</div>';
    9292}
    9393if (!function_exists('_is_elementor_installed')) {
  • news-ticker-widget-for-elementor/trunk/elements/news-ticker-widget.php

    r3030068 r3217400  
    77    }
    88    public function get_title() {       //Function for get the name of the element.
    9         return __( 'News Ticker', ELEMENTORNEWTICKER_DOMAIN );
     9        return __( 'News Ticker', 'elementor-news-ticker' );
    1010    }   
    1111    public function get_icon() {        //Function for get the icon of the element.
     
    3434            'section_content',
    3535            [
    36                 'label' => __( 'General Settings', ELEMENTORNEWTICKER_DOMAIN ),
     36                'label' => __( 'General Settings', 'elementor-news-ticker' ),
    3737            ]
    3838        );     
     
    4242            'post_type',
    4343            [
    44                 'label' => __('Source', ELEMENTORNEWTICKER_DOMAIN),
     44                'label' => __('Source', 'elementor-news-ticker'),
    4545                'type' => Controls_Manager::SELECT,
    4646                'options' => $post_types1,
     
    7676            'no_of_post',
    7777            [
    78                 'label' => __( 'Post Number', ELEMENTORNEWTICKER_DOMAIN ),
     78                'label' => __( 'Post Number', 'elementor-news-ticker' ),
    7979                'type' => Controls_Manager::NUMBER,
    80                 'default' => __( '6', ELEMENTORNEWTICKER_DOMAIN )
     80                'default' => __( '6', 'elementor-news-ticker' )
    8181            ]
    8282        );
     
    8484            'label',
    8585            [
    86                 'label' => __( 'Show label', ELEMENTORNEWTICKER_DOMAIN ),
     86                'label' => __( 'Show label', 'elementor-news-ticker' ),
    8787                'type' => Controls_Manager::SWITCHER,
    88                 'label_off' => __( 'Off', ELEMENTORNEWTICKER_DOMAIN ),
    89                 'label_on' => __( 'On', ELEMENTORNEWTICKER_DOMAIN ),
     88                'label_off' => __( 'Off', 'elementor-news-ticker' ),
     89                'label_on' => __( 'On', 'elementor-news-ticker' ),
    9090                'default' => 'yes',
    9191            ]
     
    9393        $this->add_control(
    9494            'label_heading',            [
    95                 'label' => __( 'Label', ELEMENTORNEWTICKER_DOMAIN ),
     95                'label' => __( 'Label', 'elementor-news-ticker' ),
    9696                'type' => Controls_Manager::TEXT,
    97                 'default' => __( 'Latest News', ELEMENTORNEWTICKER_DOMAIN),
    98                 'placeholder' => __( 'Latest News', ELEMENTORNEWTICKER_DOMAIN ),
     97                'default' => __( 'Latest News', 'elementor-news-ticker'),
     98                'placeholder' => __( 'Latest News', 'elementor-news-ticker' ),
    9999                'condition' => [
    100100                    'label' => 'yes',
     
    105105            'label_icon',
    106106            [
    107                 'label' => __('Icon', ELEMENTORNEWTICKER_DOMAIN),
     107                'label' => __('Icon', 'elementor-news-ticker'),
    108108                'type' => Controls_Manager::ICONS,
    109109                'fa4compatibility' => 'icon',
     
    118118            'sep_content',
    119119            [
    120                 'label' => __( 'Separator', ELEMENTORNEWTICKER_DOMAIN ),
     120                'label' => __( 'Separator', 'elementor-news-ticker' ),
    121121            ]
    122122        );
     
    124124            'sep_type',
    125125            [
    126                 'label' => __( 'Separator Type', ELEMENTORNEWTICKER_DOMAIN ),
     126                'label' => __( 'Separator Type', 'elementor-news-ticker' ),
    127127                'type' => Controls_Manager::SELECT,
    128128                'options' => [
    129                     'icon' => __( 'Icon', ELEMENTORNEWTICKER_DOMAIN ),
    130                     'text' => __( 'Text', ELEMENTORNEWTICKER_DOMAIN ),
    131                     'fimage' => __( 'Feature Image', ELEMENTORNEWTICKER_DOMAIN ),
    132                     'pdate' => __( 'Date', ELEMENTORNEWTICKER_DOMAIN ),
     129                    'icon' => __( 'Icon', 'elementor-news-ticker' ),
     130                    'text' => __( 'Text', 'elementor-news-ticker' ),
     131                    'fimage' => __( 'Feature Image', 'elementor-news-ticker' ),
     132                    'pdate' => __( 'Date', 'elementor-news-ticker' ),
    133133                   
    134134                ],
     
    139139            'sep_icon',
    140140            [
    141                 'label' => __('Icon', ELEMENTORNEWTICKER_DOMAIN),
     141                'label' => __('Icon', 'elementor-news-ticker'),
    142142                'type' => Controls_Manager::ICONS,
    143143                'fa4compatibility' => 'icon',
     
    151151            'sep_text',
    152152            [
    153                 'label' => __( 'Text', ELEMENTORNEWTICKER_DOMAIN ),
     153                'label' => __( 'Text', 'elementor-news-ticker' ),
    154154                'type' => Controls_Manager::TEXT,
    155                 'default' => __( '|', ELEMENTORNEWTICKER_DOMAIN),
    156                 'placeholder' => __( 'Text', ELEMENTORNEWTICKER_DOMAIN ),
     155                'default' => __( '|', 'elementor-news-ticker'),
     156                'placeholder' => __( 'Text', 'elementor-news-ticker' ),
    157157                'condition' => [
    158158                    'sep_type' => 'text',
     
    164164            'animation_style',
    165165            [
    166                 'label' => __('Animation', ELEMENTORNEWTICKER_DOMAIN ),
     166                'label' => __('Animation', 'elementor-news-ticker' ),
    167167                'tab' => Controls_Manager::TAB_STYLE,
    168168            ]
     
    171171            'animation_speed',
    172172            [
    173                 'label' => __( 'Animation Speed', ELEMENTORNEWTICKER_DOMAIN ),
     173                'label' => __( 'Animation Speed', 'elementor-news-ticker' ),
    174174                'type' => Controls_Manager::NUMBER,
    175175                'dynamic' => [
    176176                    'active' => true,
    177177                ],
    178                 'default' => __( '50', ELEMENTORNEWTICKER_DOMAIN), 
     178                'default' => __( '50', 'elementor-news-ticker'),   
    179179            ]
    180180        );
     
    182182            'nt_background_color',
    183183            [
    184                 'label' => __( 'Background Color', ELEMENTORNEWTICKER_DOMAIN ),
     184                'label' => __( 'Background Color', 'elementor-news-ticker' ),
    185185                'type' => Controls_Manager::COLOR,
    186186                'global' => [
     
    197197            'label_style',
    198198            [
    199                 'label' => __( 'Label', ELEMENTORNEWTICKER_DOMAIN ),
     199                'label' => __( 'Label', 'elementor-news-ticker' ),
    200200                'tab' => Controls_Manager::TAB_STYLE,
    201201                'condition' => [
     
    207207            'label_icon_indent',
    208208            [
    209                 'label' => __( 'Icon Spacing', ELEMENTORNEWTICKER_DOMAIN ),
     209                'label' => __( 'Icon Spacing', 'elementor-news-ticker' ),
    210210                'type' => Controls_Manager::SLIDER,
    211211                'range' => [
     
    222222            'label_color',
    223223            [
    224                 'label' => __( 'Label Color', ELEMENTORNEWTICKER_DOMAIN ),
     224                'label' => __( 'Label Color', 'elementor-news-ticker' ),
    225225                'type' => Controls_Manager::COLOR,
    226226                'global' => [
     
    236236            'label_background_color',
    237237            [
    238                 'label' => __( 'Background Color', ELEMENTORNEWTICKER_DOMAIN ),
     238                'label' => __( 'Background Color', 'elementor-news-ticker' ),
    239239                'type' => Controls_Manager::COLOR,
    240240                'global' => [
     
    261261            'title_style',
    262262            [
    263                 'label' => __( 'Title', ELEMENTORNEWTICKER_DOMAIN ),
     263                'label' => __( 'Title', 'elementor-news-ticker' ),
    264264                'tab' => Controls_Manager::TAB_STYLE,
    265265            ]
     
    267267        $this->add_responsive_control('title_padding',
    268268                [
    269                     'label'         => esc_html__('Padding', ELEMENTORNEWTICKER_DOMAIN),
     269                    'label'         => esc_html__('Padding', 'elementor-news-ticker'),
    270270                    'type'          => Controls_Manager::DIMENSIONS,
    271271                    'size_units'    => [ 'px', 'em', '%' ],
     
    286286            'title_color',
    287287            [
    288                 'label' => __( 'Title Color', ELEMENTORNEWTICKER_DOMAIN ),
     288                'label' => __( 'Title Color', 'elementor-news-ticker' ),
    289289                'type' => Controls_Manager::COLOR,
    290290                'global' => [
     
    312312            'icon_style',
    313313            [
    314                 'label' => __( 'Icon Separator', ELEMENTORNEWTICKER_DOMAIN ),
     314                'label' => __( 'Icon Separator', 'elementor-news-ticker' ),
    315315                'tab' => Controls_Manager::TAB_STYLE,
    316316                'condition' => [
     
    322322            'icon_color',
    323323            [
    324                 'label' => __( 'Icon Color', ELEMENTORNEWTICKER_DOMAIN ),
     324                'label' => __( 'Icon Color', 'elementor-news-ticker' ),
    325325                'type' => Controls_Manager::COLOR,
    326326                'global' => [
     
    336336            'icon_size',
    337337            [
    338                 'label' => __( 'Icon Size', ELEMENTORNEWTICKER_DOMAIN ),
     338                'label' => __( 'Icon Size', 'elementor-news-ticker' ),
    339339                'type' => Controls_Manager::SLIDER,
    340340                'range' => [
     
    352352            'sep_text_style',
    353353            [
    354                 'label' => __( 'Text Separator', ELEMENTORNEWTICKER_DOMAIN ),
     354                'label' => __( 'Text Separator', 'elementor-news-ticker' ),
    355355                'tab' => Controls_Manager::TAB_STYLE,
    356356                'condition' => [
     
    362362            'sep_text_color',
    363363            [
    364                 'label' => __( 'Text Color', ELEMENTORNEWTICKER_DOMAIN ),
     364                'label' => __( 'Text Color', 'elementor-news-ticker' ),
    365365                'type' => Controls_Manager::COLOR,
    366366                'global' => [
     
    376376            'sep_text_bg_color',
    377377            [
    378                 'label' => __( 'Background Color', ELEMENTORNEWTICKER_DOMAIN ),
     378                'label' => __( 'Background Color', 'elementor-news-ticker' ),
    379379                'type' => Controls_Manager::COLOR,
    380380                'global' => [
     
    402402            'sep_date_style',
    403403            [
    404                 'label' => __( 'Date Separator', ELEMENTORNEWTICKER_DOMAIN ),
     404                'label' => __( 'Date Separator', 'elementor-news-ticker' ),
    405405                'tab' => Controls_Manager::TAB_STYLE,
    406406                'condition' => [
     
    412412            'sep_date_color',
    413413            [
    414                 'label' => __( 'Color', ELEMENTORNEWTICKER_DOMAIN ),
     414                'label' => __( 'Color', 'elementor-news-ticker' ),
    415415                'type' => Controls_Manager::COLOR,
    416416                'global' => [
     
    426426            'sep_date_bg_color',
    427427            [
    428                 'label' => __( 'Background Color', ELEMENTORNEWTICKER_DOMAIN ),
     428                'label' => __( 'Background Color', 'elementor-news-ticker' ),
    429429                'type' => Controls_Manager::COLOR,
    430430                'global' => [
     
    517517                        <?php endif; ?>
    518518                    </span>
    519                    <?php echo $settings['label_heading'] ?>
     519                   <?php echo esc_html($settings['label_heading']); ?>
    520520                </div>
    521521            <?php } ?>
    522             <div class="fd-elementor-news-ticker" id="fd-ticker-<?php echo $this->get_id(); ?>" data-speed="<?php echo $settings['animation_speed'];?>">
     522            <div class="fd-elementor-news-ticker" id="fd-ticker-<?php echo esc_attr($this->get_id()); ?>" data-speed="<?php echo esc_attr($settings['animation_speed']); ?>">
    523523            <?php
    524524                foreach( $myposts as $post ) :
    525525                //setup_postdata($post); 
    526526                   if($settings['sep_type']=='fimage') { ?>
    527                         <span class="news-item-<?php echo $this->get_id();?> feature-image"> <?php echo the_post_thumbnail( array( 35,35 ) ); ?></span>
     527                        <span class="news-item-<?php echo esc_attr($this->get_id()); ?> feature-image"> <?php if (has_post_thumbnail()) {
     528                                echo get_the_post_thumbnail($post->ID, [35, 35]);
     529                                } ?></span>
    528530                   <?php } ?>
    529                     <a  class="top-heading news-item-<?php echo $this->get_id(); ?>" href="<?php echo get_permalink(); ?>"> <?php echo get_the_title(); ?></a>
     531                    <a  class="top-heading news-item-<?php echo esc_attr($this->get_id()); ?>" href="<?php echo esc_url(get_permalink()); ?>"> <?php echo esc_html(get_the_title()); ?></a>
    530532                    <?php if (!empty ( $settings['sep_icon'] ) && $settings['sep_type']=='icon') {  ?>
    531                         <span class="news-item-<?php echo $this->get_id(); ?> sep_icon">
     533                        <span class="news-item-<?php echo esc_attr($this->get_id()); ?> sep_icon">
    532534                         <?php Icons_Manager::render_icon( $settings['sep_icon'], [ 'aria-hidden' => 'true' ]);   ?>   
    533535                        </span>                         
    534536                    <?php } if(!empty ( $settings['sep_text'] ) && $settings['sep_type']=='text'){ ?>
    535                         <span class="news-item-<?php echo $this->get_id(); ?> sep_text"><?php echo $settings['sep_text'] ; ?></span>
     537                        <span class="news-item-<?php echo esc_attr($this->get_id()); ?> sep_text"><?php echo esc_html($settings['sep_text']) ; ?></span>
    536538                    <?php
    537539                    }  if ($settings['sep_type']=='pdate') { ?>
    538                     <span class="news-item-<?php echo $this->get_id(); ?> sep_date"><?php echo get_the_date(); ?></span>
     540                    <span class="news-item-<?php echo esc_attr($this->get_id()); ?> sep_date"><?php echo esc_html(get_the_date()); ?></span>
    539541                    <?php   
    540542                    }
     
    545547        <script>
    546548            jQuery(document).ready(function($) {
    547                 jQuery("#fd-ticker-<?php echo $this->get_id(); ?>").ticker({
    548                     speed:<?php echo $settings['animation_speed'];?>,
     549                jQuery("#fd-ticker-<?php echo esc_attr($this->get_id()); ?>").ticker({
     550                    speed:<?php echo esc_attr($settings['animation_speed']);?>,
    549551                    pauseOnHover:!0,
    550                     item:".news-item-<?php echo $this->get_id(); ?>"
     552                    item:".news-item-<?php echo esc_attr($this->get_id()); ?>"
    551553                }).data("ticker");
    552554            });
  • news-ticker-widget-for-elementor/trunk/readme.txt

    r3030068 r3217400  
    33Tags: marquee, News Headlines, news ticker, elementor news ticker, post rotator, post ticker, blog ticker, elementor addon widget
    44Requires at least: 5.9
    5 Tested up to: 6.4.2
     5Tested up to: 6.7.1
    66Requires PHP: 7.0
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5858== Changelog ==
    5959
     60= 1.3.3 =
     61* Compatibility with latest Elementor plugin and Fixed fatal error
     62* Compatibility with latest WordPress
     63* Minor fixes
     64
    6065= 1.3.2 =
    6166* Minor fixes
Note: See TracChangeset for help on using the changeset viewer.