Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: Reading Progress Bar #896

Draft
wants to merge 13 commits into
base: release-candidate
Choose a base branch
from
Prev Previous commit
Next Next commit
updated code changes option in controllers
vijetaR committed Oct 8, 2024
commit cf1cfb27d3e01875df443e8dc783134b50456452
31 changes: 1 addition & 30 deletions inc/widgets-manager/extensions/class-progress-bar.php
Original file line number Diff line number Diff line change
@@ -132,8 +132,6 @@ public function register_extension_controls( $element, $section_id, $args ) {
'options' => [
'top' => __( 'Top', 'header-footer-elementor' ),
'bottom' => __( 'Bottom', 'header-footer-elementor' ),
'right' => __( 'Right', 'header-footer-elementor' ),
'left' => __( 'Left', 'header-footer-elementor' ),
],
'separator' => 'before',
'condition' => [
@@ -151,7 +149,7 @@ public function register_extension_controls( $element, $section_id, $args ) {
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'max' => 50,
'step' => 1,
],
],
@@ -202,33 +200,6 @@ public function register_extension_controls( $element, $section_id, $args ) {
]
);

$element->add_control(
'hfe_reading_progress_bar_animation_speed',
[
'label' => __( 'Animation Speed', 'header-footer-elementor' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 1000,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 50,
],
'selectors' => [
'{{WRAPPER}} .hfe-reading-progress-wrap .hfe-reading-progress .hfe-reading-progress-fill' => 'transition: width {{SIZE}}ms ease;',
],
'separator' => 'before',
'condition' => [
'enable_reading_progress_bar' => 'yes',
],
]
);

$element->add_control(
'hfe_reading_progress_bar_disable_on',
[