Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/thim-elementor-kit/build/frontend.asset.php
+++ b/thim-elementor-kit/build/frontend.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'be597ba9b842b74d32df');
+<?php return array('dependencies' => array(), 'version' => 'f4c13b04dd84f0d57d2f');
--- a/thim-elementor-kit/build/widgets.asset.php
+++ b/thim-elementor-kit/build/widgets.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-url'), 'version' => 'a9e4ce97ba16f00eb3bb');
+<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-url'), 'version' => '55dade7dff5808880ba5');
--- a/thim-elementor-kit/inc/class-functions.php
+++ b/thim-elementor-kit/inc/class-functions.php
@@ -60,11 +60,18 @@
public function get_pages_loop_item( $post_type = '' ) {
// Check not call on REST API
- $request_uri = $_SERVER['REQUEST_URI'];
- if ( false !== strpos( $request_uri, '/wp-json/' ) ) {
+ if ( isset( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], '/wp-json/' ) ) {
return [];
}
+ // Runtime in-memory cache partitioned strictly by post_type
+ static $cache = array();
+ $cache_key = ! empty( $post_type ) ? (string) $post_type : '__all__';
+
+ if ( isset( $cache[ $cache_key ] ) ) {
+ return $cache[ $cache_key ];
+ }
+
// Get all page with post type thim_elementor_kit and type loop_item and post type is $post_type
$args = array(
'post_type' => 'thim_elementor_kit',
@@ -97,6 +104,8 @@
}
}
+ $cache[ $cache_key ] = $output;
+
return $output;
}
}
--- a/thim-elementor-kit/inc/elementor/widgets/global/contact-form-7.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/contact-form-7.php
@@ -70,15 +70,65 @@
);
$this->end_controls_section();
+ $this->_register_setting_label_style();
$this->_register_setting_input_style();
+ $this->_register_setting_textarea_style();
$this->_register_setting_button_style();
}
+ protected function _register_setting_label_style() {
+ $this->start_controls_section(
+ 'cf7_style_label_section',
+ array(
+ 'label' => esc_html__( 'Label', 'thim-elementor-kit' ),
+ 'tab' => Controls_Manager::TAB_STYLE,
+ )
+ );
+
+ $this->add_group_control(
+ Group_Control_Typography::get_type(),
+ array(
+ 'name' => 'label_typography',
+ 'label' => esc_html__( 'Typography', 'thim-elementor-kit' ),
+ 'selector' => '{{WRAPPER}} .thim-ekit-wpcf7 label',
+ )
+ );
+
+ $this->add_control(
+ 'label_color',
+ array(
+ 'label' => esc_html__( 'Text Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 label' => 'color: {{VALUE}};',
+ ),
+ )
+ );
+
+ $this->add_responsive_control(
+ 'label_spacing',
+ array(
+ 'label' => esc_html__( 'Spacing', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::SLIDER,
+ 'range' => array(
+ 'px' => array(
+ 'max' => 60,
+ ),
+ ),
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 label' => 'margin-bottom: {{SIZE}}{{UNIT}}; display: inline-block;',
+ ),
+ )
+ );
+
+ $this->end_controls_section();
+ }
+
protected function _register_setting_input_style() {
$this->start_controls_section(
'cf7_style_input_section',
array(
- 'label' => esc_html__( 'Input Style', 'thim-elementor-kit' ),
+ 'label' => esc_html__( 'Form Input', 'thim-elementor-kit' ),
'tab' => Controls_Manager::TAB_STYLE,
)
);
@@ -89,7 +139,7 @@
'type' => Controls_Manager::DIMENSIONS,
'size_units' => array( 'px', 'em', '%' ),
'selectors' => array(
- '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input,{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap select' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
)
@@ -180,7 +230,7 @@
'isLinked' => true,
),
'selectors' => array(
- '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input,{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap select' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
)
);
@@ -221,7 +271,7 @@
'label' => esc_html__( 'Background', 'thim-elementor-kit' ),
'type' => Controls_Manager::COLOR,
'selectors' => array(
- '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input,{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea' => 'background: {{VALUE}};',
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap input, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap select' => 'background: {{VALUE}};',
),
)
);
@@ -284,11 +334,98 @@
$this->end_controls_section();
}
+ protected function _register_setting_textarea_style() {
+ $this->start_controls_section(
+ 'cf7_style_textarea_section',
+ array(
+ 'label' => esc_html__( 'Textarea', 'thim-elementor-kit' ),
+ 'tab' => Controls_Manager::TAB_STYLE,
+ )
+ );
+
+ $this->add_responsive_control(
+ 'textarea_padding',
+ array(
+ 'label' => esc_html__( 'Padding', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::DIMENSIONS,
+ 'size_units' => array( 'px', 'em', '%' ),
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ ),
+ )
+ );
+
+ $this->add_responsive_control(
+ 'textarea_border_radius',
+ array(
+ 'label' => esc_html__( 'Border Radius', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::DIMENSIONS,
+ 'size_units' => array( 'px', 'em', '%' ),
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ ),
+ )
+ );
+
+ $this->add_responsive_control(
+ 'textarea_height',
+ array(
+ 'label' => esc_html__( 'Height', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::SLIDER,
+ 'size_units' => array( 'px', 'em', 'vh' ),
+ 'range' => array(
+ 'px' => array(
+ 'min' => 50,
+ 'max' => 500,
+ ),
+ ),
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 textarea' => 'height: {{SIZE}}{{UNIT}};',
+ ),
+ )
+ );
+
+ $this->add_control(
+ 'textarea_color',
+ array(
+ 'label' => esc_html__( 'Text Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 textarea' => 'color: {{VALUE}};',
+ ),
+ )
+ );
+
+ $this->add_control(
+ 'textarea_placeholder_color',
+ array(
+ 'label' => esc_html__( 'Placeholder Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea::placeholder, {{WRAPPER}} .thim-ekit-wpcf7 textarea::placeholder' => 'color: {{VALUE}};',
+ ),
+ )
+ );
+
+ $this->add_control(
+ 'textarea_bg_color',
+ array(
+ 'label' => esc_html__( 'Background Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .thim-ekit-wpcf7 .wpcf7-form-control-wrap textarea, {{WRAPPER}} .thim-ekit-wpcf7 textarea' => 'background-color: {{VALUE}};',
+ ),
+ )
+ );
+
+ $this->end_controls_section();
+ }
+
protected function _register_setting_button_style() {
$this->start_controls_section(
'cf7_style_button_section',
array(
- 'label' => esc_html__( 'Button Style', 'thim-elementor-kit' ),
+ 'label' => esc_html__( 'Submit Button', 'thim-elementor-kit' ),
'tab' => Controls_Manager::TAB_STYLE,
)
);
@@ -333,7 +470,7 @@
array(
'label' => esc_html__( 'Width', 'thim-elementor-kit' ),
'type' => Controls_Manager::SLIDER,
- 'size_units' => array( 'px', '%' ),
+ 'size_units' => array( 'px', '%', 'custom' ),
'range' => array(
'px' => array(
'max' => 500,
--- a/thim-elementor-kit/inc/elementor/widgets/global/header-info.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/header-info.php
@@ -172,7 +172,7 @@
'type' => Controls_Manager::DIMENSIONS,
'size_units' => array( 'px', '%', 'em' ),
'selectors' => array(
- '{{WRAPPER}} .thim-header-info > li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}} .thim-header-info > li, .thim-ekits-menu__nav .thim-ekits-menu__content {{WRAPPER}} .thim-header-info > li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
)
);
@@ -184,7 +184,7 @@
'type' => Controls_Manager::DIMENSIONS,
'size_units' => array( 'px', '%', 'em' ),
'selectors' => array(
- '{{WRAPPER}} .thim-header-info > li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}} .thim-header-info > li, .thim-ekits-menu__nav .thim-ekits-menu__content {{WRAPPER}} .thim-header-info > li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
)
);
@@ -228,7 +228,7 @@
array(
'name' => 'content_typography',
'label' => esc_html__( 'Typography', 'thim-elementor-kit' ),
- 'selector' => '{{WRAPPER}} .thim-header-info > li > a,{{WRAPPER}} .thim-header-info > li',
+ 'selector' => '{{WRAPPER}} .thim-header-info > li > a,{{WRAPPER}} .thim-header-info > li, .thim-ekits-menu__nav .thim-ekits-menu__content {{WRAPPER}} .thim-header-info > li a',
)
);
--- a/thim-elementor-kit/inc/elementor/widgets/global/heading.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/heading.php
@@ -408,6 +408,17 @@
],
]
);
+ $this->add_control(
+ 'textcolor_hover',
+ [
+ 'label' => esc_html__( 'Text Color Hover', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'default' => '',
+ 'selectors' => [
+ '{{WRAPPER}} .thim-ekits-heading .title:hover, {{WRAPPER}} .thim-ekits-heading .title:hover a' => 'color: {{VALUE}};'
+ ],
+ ]
+ );
$this->add_control(
'title_border_heading', [
--- a/thim-elementor-kit/inc/elementor/widgets/global/icon-box.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/icon-box.php
@@ -51,8 +51,8 @@
$this->start_controls_section(
'ekit_heading_section_general',
array(
- 'label' => esc_html__( 'Content Alignment', 'thim-elementor-kit' ),
- // 'tab' => ElementorControls_Manager::TAB_STYLE,
+ 'label' => esc_html__( 'General', 'thim-elementor-kit' ),
+ 'tab' => ElementorControls_Manager::TAB_STYLE,
)
);
@@ -138,6 +138,51 @@
)
);
+ $this->add_responsive_control(
+ 'width_content_inner',
+ [
+ 'label' => esc_html__( 'Width', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::SLIDER,
+ 'size_units' => [ 'px', '%' ],
+ 'range' => [
+ 'px' => [
+ 'min' => 0,
+ 'max' => 1000,
+ 'step' => 1,
+ ]
+ ],
+ 'default' => [
+ 'unit' => '%',
+ ],
+ 'selectors' => [
+ '{{WRAPPER}} .content-inner' => 'width: {{SIZE}}{{UNIT}};'
+ ],
+ ]
+ );
+
+ $this->add_responsive_control(
+ 'content_inner_padding',
+ array(
+ 'label' => esc_html__( 'Padding', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::DIMENSIONS,
+ 'size_units' => array( 'px', '%' ),
+ 'selectors' => array(
+ '{{WRAPPER}} .content-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ ),
+ )
+ );
+
+ $this->add_control(
+ 'content_inner_bgcolor',
+ array(
+ 'label' => esc_html__( 'Background Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .content-inner' => 'background-color: {{VALUE}};',
+ ),
+ )
+ );
+
$this->end_controls_section();
}
@@ -584,6 +629,18 @@
'selector' => '{{WRAPPER}} .iconbox-read a',
)
);
+
+ $this->add_responsive_control(
+ 'read_more_margin',
+ array(
+ 'label' => esc_html__( 'Margin', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::DIMENSIONS,
+ 'size_units' => array( 'px', '%', 'em', 'rem', 'vw', 'custom' ),
+ 'selectors' => array(
+ '{{WRAPPER}} .iconbox-read' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ ),
+ )
+ );
$this->add_responsive_control(
'read_more_padding',
array(
@@ -596,16 +653,17 @@
)
);
$this->add_responsive_control(
- 'read_more_margin',
+ 'read_more_border_radius',
array(
- 'label' => esc_html__( 'Margin', 'thim-elementor-kit' ),
+ 'label' => esc_html__( 'Border Radius', 'thim-elementor-kit' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => array( 'px', '%' ),
'selectors' => array(
- '{{WRAPPER}} .iconbox-read' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}} .iconbox-read a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
)
);
+
$this->add_group_control(
Group_Control_Border::get_type(),
array(
@@ -634,6 +692,16 @@
),
)
);
+ $this->add_control(
+ 'read_more_bgcolor',
+ array(
+ 'label' => esc_html__( 'Background Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .iconbox-read a' => 'background-color: {{VALUE}};',
+ ),
+ )
+ );
$this->add_control(
'read_more_border_color',
@@ -666,6 +734,16 @@
),
)
);
+ $this->add_control(
+ 'read_more_bgcolor_hover',
+ array(
+ 'label' => esc_html__( 'Background Color', 'thim-elementor-kit' ),
+ 'type' => Controls_Manager::COLOR,
+ 'selectors' => array(
+ '{{WRAPPER}} .iconbox-read a:hover' => 'background-color: {{VALUE}};',
+ ),
+ )
+ );
$this->add_control(
'read_more_border_color_hover',
array(
--- a/thim-elementor-kit/inc/elementor/widgets/global/instagram.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/instagram.php
@@ -617,18 +617,25 @@
if ( $cached_data === false ) {
$request_args = array(
- 'timeout' => 60,
+ 'timeout' => 10,
);
- $instagram_data = wp_remote_retrieve_body(
- wp_remote_get(
- 'https://graph.instagram.com/me/media/?fields=username,id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,like_count,comments_count&limit=' . $settings['show_number_item'] . '&access_token=' . $settings['accesstoken'],
- $request_args
- )
+ $response = wp_remote_get(
+ 'https://graph.instagram.com/me/media/?fields=username,id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,like_count,comments_count&limit=' . $settings['show_number_item'] . '&access_token=' . $settings['accesstoken'],
+ $request_args
);
- $data_check = json_decode( $instagram_data, true );
-
- if ( ! empty( $data_check['data'] ) ) {
- set_transient( $key, $instagram_data, ( $cache_time * MINUTE_IN_SECONDS ) );
+
+ if ( ! is_wp_error( $response ) ) {
+ $instagram_data = wp_remote_retrieve_body( $response );
+ $data_check = json_decode( $instagram_data, true );
+
+ if ( ! empty( $data_check['data'] ) ) {
+ set_transient( $key, $instagram_data, ( $cache_time * MINUTE_IN_SECONDS ) );
+ } else {
+ set_transient( $key, wp_json_encode( array( 'data' => array() ) ), 5 * MINUTE_IN_SECONDS );
+ }
+ } else {
+ $instagram_data = '';
+ set_transient( $key, wp_json_encode( array( 'data' => array() ) ), 5 * MINUTE_IN_SECONDS );
}
} else {
$instagram_data = $cached_data;
--- a/thim-elementor-kit/inc/elementor/widgets/global/login-form.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/login-form.php
@@ -936,10 +936,12 @@
method="post" novalidate>
<p class="login-username">
<input type="text" name="log" placeholder="<?php echo esc_attr( $user_label ); ?>"
+ aria-label="<?php echo esc_attr( $user_label ); ?>"
class="input required" size="20"/>
</p>
<p class="login-password">
<input type="password" name="pwd" placeholder="<?php echo esc_attr( $pass_label ); ?>"
+ aria-label="<?php echo esc_attr( $pass_label ); ?>"
class="input required" value="" size="20"/>
</p>
<?php
--- a/thim-elementor-kit/inc/elementor/widgets/global/login-popup.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/login-popup.php
@@ -474,13 +474,15 @@
// Login popup link output
if ( is_user_logged_in() ) {
if ( ( isset( $settings['text_profile'] ) && $settings['text_profile'] ) || ( ! empty( $settings['profile_icons']['library'] ) ) ) {
- echo '<a class="profile" href="' . esc_url( $settings['profile_url'] ) . '">';
+ $profile_label = ! empty( $settings['text_profile'] ) ? $settings['text_profile'] : esc_html__( 'Profile', 'thim-elementor-kit' );
+ echo '<a class="profile" href="' . esc_url( $settings['profile_url'] ) . '" aria-label="' . esc_attr( $profile_label ) . '">';
Icons_Manager::render_icon( $settings['profile_icons'], [ 'aria-hidden' => 'true' ] );
echo esc_html( $settings['text_profile'] );
echo '</a>';
}
if ( ( isset( $settings['text_logout'] ) && $settings['text_logout'] ) || ( ! empty( $settings['logout_icons']['library'] ) ) ) {
- echo '<a class="logout" href="' . esc_url( wp_logout_url( home_url() ) ) . '">';
+ $logout_label = ! empty( $settings['text_logout'] ) ? $settings['text_logout'] : esc_html__( 'Logout', 'thim-elementor-kit' );
+ echo '<a class="logout" href="' . esc_url( wp_logout_url( home_url() ) ) . '" aria-label="' . esc_attr( $logout_label ) . '">';
Icons_Manager::render_icon( $settings['logout_icons'], [ 'aria-hidden' => 'true' ] );
echo esc_html( $settings['text_logout'] );
echo '</a>';
@@ -488,13 +490,15 @@
} else {
if ( $registration_enabled && ( isset( $settings['text_register'] ) && $settings['text_register'] )
|| ( ! empty( $settings['register_icons']['library'] ) ) ) {
- echo '<a class="register" href="' . esc_url( $settings['url_register'] ) . '">';
+ $register_label = ! empty( $settings['text_register'] ) ? $settings['text_register'] : esc_html__( 'Register', 'thim-elementor-kit' );
+ echo '<a class="register" href="' . esc_url( $settings['url_register'] ) . '" aria-label="' . esc_attr( $register_label ) . '">';
Icons_Manager::render_icon( $settings['register_icons'], [ 'aria-hidden' => 'true' ] );
echo esc_html( $settings['text_register'] );
echo '</a>';
}
if ( ( isset( $settings['text_login'] ) && $settings['text_login'] ) || ( ! empty( $settings['login_icons']['library'] ) ) ) {
- echo '<a class="login" href="' . esc_url( $settings['login_url'] ) . '">';
+ $login_label = ! empty( $settings['text_login'] ) ? $settings['text_login'] : esc_html__( 'Login', 'thim-elementor-kit' );
+ echo '<a class="login" href="' . esc_url( $settings['login_url'] ) . '" aria-label="' . esc_attr( $login_label ) . '">';
Icons_Manager::render_icon( $settings['login_icons'], [ 'aria-hidden' => 'true' ] );
echo esc_html( $settings['text_login'] );
echo '</a>';
--- a/thim-elementor-kit/inc/elementor/widgets/global/search-form.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/search-form.php
@@ -805,9 +805,9 @@
$class_layout = $settings['skin'] == 'popup' ? 'ekits-modal' : 'skin-toggle';
echo '<div class="thim-ekits-search-form__' . esc_attr( $settings['skin'] ) . '">';
if ( $settings['skin'] == 'toggle' ) {
- echo '<a class="search-form-hoverbutton" href="javascript:;">';
+ echo '<a class="search-form-hoverbutton" href="javascript:;" aria-label="' . esc_attr__( 'Open search form', 'thim-elementor-kit' ) . '">';
} else {
- echo '<a class="modalbutton" href="#ekits-search-' . esc_attr( $this->get_id() ) . '">';
+ echo '<a class="modalbutton" href="#ekits-search-' . esc_attr( $this->get_id() ) . '" aria-label="' . esc_attr__( 'Open search form', 'thim-elementor-kit' ) . '">';
}
Icons_Manager::render_icon( $settings['modal_icon'], array( 'aria-hidden' => 'true' ) );
echo '</a>';
@@ -818,7 +818,7 @@
<?php if ( $settings['layout'] == 'modal' ){ ?>
<div class="ekits-modal__overlay ModalOverlay"></div>
<div class="ekits-modal__container">
- <button class="ekits-modal__close ModalClose">✕</button>
+ <button type="button" class="ekits-modal__close ModalClose" aria-label="<?php esc_attr_e( 'Close search form', 'thim-elementor-kit' ); ?>">✕</button>
<?php } ?>
<form action="<?php
@@ -827,18 +827,20 @@
<div class="input-group">
<?php if ( $settings['search_type'] == 'lp_course' ) : ?>
<input type="text" name="c_search" placeholder="<?php echo esc_attr( $settings['placeholder_text'] ); ?>"
+ aria-label="<?php echo esc_attr( ! empty( $settings['placeholder_text'] ) ? $settings['placeholder_text'] : esc_html__( 'Search courses', 'thim-elementor-kit' ) ); ?>"
class="thim-ekits-search" autocomplete="off"/>
<input type="hidden" value="course" name="ref"/>
<input type="hidden" name="post_type" value="lp_course">
<?php else : ?>
<input type="text" placeholder="<?php echo esc_attr( $settings['placeholder_text'] ); ?>" name="s"
+ aria-label="<?php echo esc_attr( ! empty( $settings['placeholder_text'] ) ? $settings['placeholder_text'] : esc_html__( 'Search', 'thim-elementor-kit' ) ); ?>"
class="thim-ekits-search"/>
<?php if ( $settings['search_type'] != 'all' ) : ?>
<input type="hidden" name="post_type" value="<?php echo esc_attr( $settings['search_type'] ); ?>"/>
<?php endif; ?>
<?php endif; ?>
- <button type="submit" class="button-search">
+ <button type="submit" class="button-search" aria-label="<?php echo esc_attr( ! empty( $settings['text_button_search'] ) ? $settings['text_button_search'] : esc_html__( 'Search', 'thim-elementor-kit' ) ); ?>">
<?php Icons_Manager::render_icon( $settings['icon_button_search'], array( 'aria-hidden' => 'true' ) ); ?>
<?php
--- a/thim-elementor-kit/inc/elementor/widgets/global/video.php
+++ b/thim-elementor-kit/inc/elementor/widgets/global/video.php
@@ -359,7 +359,8 @@
<div class="video-info">
<?php
if ( ( isset( $settings['text_video'] ) && $settings['text_video'] ) || ( ! empty( $settings['video_icons']['library'] ) ) ) {
- echo '<a class="modalbutton" href="#' . esc_attr( $popup_id ) . '">';
+ $video_aria_label = ! empty( $settings['text_video'] ) ? $settings['text_video'] : esc_html__( 'Play video', 'thim-elementor-kit' );
+ echo '<a class="modalbutton" href="#' . esc_attr( $popup_id ) . '" aria-label="' . esc_attr( $video_aria_label ) . '">';
echo esc_html( $settings['text_video'] );
Icons_Manager::render_icon( $settings['video_icons'], [ 'aria-hidden' => 'true' ] );
echo '</a>';
@@ -370,17 +371,18 @@
echo esc_attr( $popup_id ); ?>">
<div class="ekits-modal__overlay ModalOverlay"></div>
<div class="ekits-modal__container">
- <button class="ekits-modal__close ModalClose">✕</button>
+ <button type="button" class="ekits-modal__close ModalClose" aria-label="<?php esc_attr_e( 'Close video modal', 'thim-elementor-kit' ); ?>">✕</button>
<?php
+ $iframe_title = ! empty( $settings['text_video'] ) ? $settings['text_video'] : esc_html__( 'Video player', 'thim-elementor-kit' );
if ( isset( $settings['video_type'] ) && $settings['video_type'] == 'youtube' ) {
$youtube_id = isset( $settings['youtube_id'] ) ? esc_attr( $settings['youtube_id'] ) : '';
if ( ! empty( $youtube_id ) ) {
- echo '<div class="video"><iframe id="thim-video" width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '" src="https://www.youtube.com/embed/' . $youtube_id . '" allowfullscreen style="border: 0;"></iframe></div>';
+ echo '<div class="video"><iframe id="thim-video" title="' . esc_attr( $iframe_title ) . '" width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '" src="https://www.youtube.com/embed/' . $youtube_id . '" allowfullscreen style="border: 0;"></iframe></div>';
}
} else {
$external_video = isset( $settings['external_video'] ) ? esc_attr( $settings['external_video'] ) : '';
if ( ! empty( $external_video ) ) {
- echo '<div class="video"><iframe id="thim-video" width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '" src="https://player.vimeo.com/video/' . $external_video . '?portrait=0&title=0&byline=0&badge=0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="border: 0px;"></iframe></div>';
+ echo '<div class="video"><iframe id="thim-video" title="' . esc_attr( $iframe_title ) . '" width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '" src="https://player.vimeo.com/video/' . $external_video . '?portrait=0&title=0&byline=0&badge=0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="border: 0px;"></iframe></div>';
}
}
--- a/thim-elementor-kit/inc/modules/loop-item/class-init.php
+++ b/thim-elementor-kit/inc/modules/loop-item/class-init.php
@@ -96,7 +96,11 @@
);
}
- $localize['loop_item']['post_type'] = $post_type;
+ if ( ! empty( $localize['loop_item']['post_type'] ) && is_array( $localize['loop_item']['post_type'] ) ) {
+ $localize['loop_item']['post_type'] = array_merge( $post_type, $localize['loop_item']['post_type'] );
+ } else {
+ $localize['loop_item']['post_type'] = $post_type;
+ }
return $localize;
}
--- a/thim-elementor-kit/thim-elementor-kit.php
+++ b/thim-elementor-kit/thim-elementor-kit.php
@@ -4,13 +4,13 @@
* Plugin URI: https://thimpress.com/
* Description: It is page builder for the Elementor page builder.
* Author: ThimPress
- * Version: 1.4.8
+ * Version: 1.4.9
* Author URI: https://thimpress.com
* Requires at least: 6.x
* Requires PHP: 7.4
* Text Domain: thim-elementor-kit
* Domain Path: /languages/
- * Elementor tested up to: 4.2.3
+ * Elementor tested up to: 4.3.6
*/
use ElementorCoreFilesManager as Files_Manager;