PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.0
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.0
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / widgets / video / parts / video-button.php
elementskit-lite / widgets / video / parts Last commit date
video-button.php 3 weeks ago
video-button.php
82 lines
1 <?php
2 // Base button class if style is icon
3 if ( $ekit_video_popup_button_style === 'icon' ) {
4 $this->add_render_attribute( 'button', 'class', 'ekit_icon_button' );
5 }
6
7 // Glow animation handling
8 if ( $ekit_video_popup_video_glow === 'yes' ) {
9 $glow_type = ! empty( $ekit_video_popup_glow_animation_type )
10 ? $ekit_video_popup_glow_animation_type
11 : $ekit_video_inline_glow_animation_type;
12
13 if ( ! empty( $glow_type ) ) {
14 $this->add_render_attribute( 'button', 'class', 'glow-' . esc_attr( $glow_type ) );
15 }
16 }
17
18 // Radio wave scaling (popup first, fallback to inline)
19 $radio_wave_size = $ekit_video_popup_radio_wave_scale['size']
20 ?? $ekit_video_inline_radio_wave_scale['size']
21 ?? null;
22
23 if ( $radio_wave_size ) {
24 $this->add_render_attribute(
25 'button',
26 'glow-radio_wave',
27 '--ekit-radio-wave-scale: ' . $radio_wave_size . ';'
28 );
29 }
30
31 // Video type + style handling
32 if ( $ekit_video_style === 'popup' ) {
33 $href = ( $ekit_video_popup_video_type === 'self' )
34 ? '#' . $generate_id
35 : $ekit_video_popup_url;
36
37 $this->add_render_attribute( 'button', [
38 'class' => [ 'ekit-video-popup', 'ekit-video-popup-btn' ],
39 'href' => $href,
40 ] );
41 }
42
43 if ( $ekit_video_style === 'inline' && !empty($ekit_video_inline_overlay_image['url'])) {
44 $this->add_render_attribute( 'button', [
45 'class' => [ 'ekit-video-inline-btn' ],
46 'href' => $ekit_video_popup_url,
47 ] );
48 }
49
50 // Icon-only button has no visible text, so give it an accessible name.
51 // (When a title is shown, the visible text is the accessible name and must
52 // not be overridden by an aria-label — WCAG 2.5.3 Label in Name.)
53 if ( $ekit_video_popup_button_style === 'icon' ) {
54 $this->add_render_attribute( 'button', 'aria-label', esc_attr__( 'Play video', 'elementskit-lite' ) );
55 }
56 ?>
57
58 <a <?php $this->print_render_attribute_string( 'button' ); ?>>
59 <?php
60 $show_text = in_array( $ekit_video_popup_button_style, [ 'text', 'both' ], true );
61 $show_icon = in_array( $ekit_video_popup_button_style, [ 'icon', 'both' ], true ) && ! empty( $ekit_video_popup_button_icons );
62
63 // Icon before text
64 if ( $show_icon && $ekit_video_popup_button_style === 'both' && $ekit_video_popup_icon_align === 'before' ) {
65 $this->video_icon();
66 }
67
68 // Text
69 if ( $show_text ) {
70 echo '<span class="ekit-video-popup-title">' . esc_html( $ekit_video_popup_button_title ) . '</span>';
71 }
72
73 // Icon after text or icon-only
74 if ( $show_icon && (
75 ( $ekit_video_popup_button_style === 'both' && $ekit_video_popup_icon_align === 'after' ) ||
76 $ekit_video_popup_button_style === 'icon'
77 ) ) {
78 $this->video_icon();
79 }
80 ?>
81 </a>
82