- Timestamp:
- 04/23/2024 11:24:42 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
premium-addons-for-elementor/trunk/widgets/premium-post-ticker.php
r3055384 r3075668 29 29 use PremiumAddons\Includes\Premium_Template_Tags as Posts_Helper; 30 30 31 // PremiumAddonsPro Classes 31 // PremiumAddonsPro Classes. 32 32 use PremiumAddonsPro\Includes\Pa_Post_Ticker_Helper as API_Handler; 33 33 … … 3459 3459 $show_price = 'yes' === $settings['show_price']; 3460 3460 3461 // $show_symbol = $is_stock_element || 'yes' === $settings['show_symbol'];3462 3461 $show_change = 'yes' === $settings['show_change']; 3463 3462 $show_change_per = 'yes' === $settings['show_change_per']; … … 3573 3572 3574 3573 <?php if ( false !== $name ) : ?> 3575 <span class='premium-post-ticker__symbol-name' title='Name' aria-label='<?php echo esc_attr __( $name, 'premium-addons-for-elementor'); ?>'><?php echo esc_html( $name ); ?></span>3574 <span class='premium-post-ticker__symbol-name' title='Name' aria-label='<?php echo esc_attr( $name ); ?>'><?php echo esc_html( $name ); ?></span> 3576 3575 <?php endif; ?> 3577 3576 … … 3588 3587 echo 'Per Ounce'; } 3589 3588 ?> 3590 " aria-label="<?php echo esc_attr __( $price, 'premium-addons-for-elementor' ); ?>"><?php echo $price; ?></span>3589 " aria-label="<?php echo esc_attr( $price ); ?>"><?php echo esc_html( $price ); ?></span> 3591 3590 <?php endif; ?> 3592 3591 3593 3592 <?php if ( $show_change ) : ?> 3594 <span class="premium-post-ticker__change <?php echo esc_attr( $dir_cls ); ?>" title="Change" aria-label="<?php echo esc_attr __( $data['change'], 'premium-addons-for-elementor'); ?>"><?php echo esc_html( $change ); ?></span>3593 <span class="premium-post-ticker__change <?php echo esc_attr( $dir_cls ); ?>" title="Change" aria-label="<?php echo esc_attr( $data['change'] ); ?>"><?php echo esc_html( $change ); ?></span> 3595 3594 <?php endif; ?> 3596 3595 3597 3596 <?php if ( $show_change_per ) : ?> 3598 <span class="premium-post-ticker__change-percent <?php echo esc_attr( $dir_cls ); ?>" title="Change Percent" aria-label="<?php echo esc_attr __( $data['percent_change'], 'premium-addons-for-elementor'); ?>">3597 <span class="premium-post-ticker__change-percent <?php echo esc_attr( $dir_cls ); ?>" title="Change Percent" aria-label="<?php echo esc_attr( $data['percent_change'] ); ?>"> 3599 3598 <?php 3600 3599 echo esc_html( $change_percent . '%' ); … … 3603 3602 if ( 0 < $data['change'] ) { 3604 3603 ?> 3605 <i class="<?php echo $settings['arrow_style']; ?>-up" aria-hidden="true"></i>3604 <i class="<?php echo esc_attr( $settings['arrow_style'] ); ?>-up" aria-hidden="true"></i> 3606 3605 <?php 3607 3606 } elseif ( 0 > $data['change'] ) { 3608 3607 ?> 3609 <i class="<?php echo $settings['arrow_style']; ?>-down" aria-hidden="true"></i>3608 <i class="<?php echo esc_attr( $settings['arrow_style'] ); ?>-down" aria-hidden="true"></i> 3610 3609 <?php 3611 3610 } … … 3706 3705 * @since 2.8.22 3707 3706 * 3708 * @param array $settings widget settings. 3707 * @param array $settings widget settings. 3708 * @param boolean $is_repeater_item is repeater item. 3709 3709 */ 3710 3710 private function render_ticker_icon( $settings, $is_repeater_item = false ) { … … 3872 3872 <div <?php echo wp_kses_post( $this->get_render_attribute_string( 'post-title' . $txt_id ) ); ?>> 3873 3873 <a <?php echo wp_kses_post( $this->get_render_attribute_string( 'post-link' . $txt_id ) ); ?>> 3874 <?php echo $item['text']; ?>3874 <?php echo esc_html( $item['text'] ); ?> 3875 3875 </a> 3876 3876 </div> … … 3978 3978 <div <?php echo wp_kses_post( $this->get_render_attribute_string( 'thumbnail' . $post_id ) ); ?>> 3979 3979 <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $link_target ); ?>"> 3980 <?php echo $thumbnail_html; ?>3980 <?php echo wp_kses_post( $thumbnail_html ); ?> 3981 3981 </a> 3982 3982 </div> … … 3995 3995 <<?php echo wp_kses_post( $title_tag . ' ' . $this->get_render_attribute_string( 'post-title' . $post_id ) ); ?>> 3996 3996 <a <?php echo wp_kses_post( $this->get_render_attribute_string( 'post-link' . $post_id ) ); ?>> 3997 <?php echo $title; ?>3997 <?php echo esc_html( $title ); ?> 3998 3998 </a> 3999 3999 </<?php echo wp_kses_post( $title_tag ); ?>>
Note: See TracChangeset
for help on using the changeset viewer.