Make WordPress Themes

Changeset 299349


Ignore:
Timestamp:
11/20/2025 08:46:44 AM (12 months ago)
Author:
themedropbox
Message:

New version of Kindergarten Elementor - 0.1.7

Location:
kindergarten-elementor/0.1.7
Files:
1 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kindergarten-elementor/0.1.7/archive.php

    r294973 r299349  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134135            <?php
    135136              dynamic_sidebar('sidebar-2');
    … …  
    166167        </div>
    167168        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169171            <?php
    170172              dynamic_sidebar('sidebar-2');
    … …  
    173175        </div>
    174176        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • kindergarten-elementor/0.1.7/assets/js/script.js

    r294973 r299349  
    268268  }
    269269});
     270
     271/* ===============================================
     272   sticky sidebar
     273============================================= */
     274
     275window.addEventListener('scroll', function () {
     276  var kindergarten_elementor_sidebar = document.querySelector('.sidebar-sticky');
     277  if (!kindergarten_elementor_sidebar) return;
     278
     279  var kindergarten_elementor_scrollTop = window.scrollY || document.documentElement.scrollTop;
     280  var kindergarten_elementor_windowHeight = window.innerHeight;
     281  var kindergarten_elementor_documentHeight = document.documentElement.scrollHeight;
     282
     283  var kindergarten_elementor_isBottom = kindergarten_elementor_scrollTop + kindergarten_elementor_windowHeight >= kindergarten_elementor_documentHeight - 100;
     284
     285  if (kindergarten_elementor_scrollTop >= 100 && !kindergarten_elementor_isBottom) {
     286    kindergarten_elementor_sidebar.classList.add('sidebar-fixed');
     287  } else {
     288    kindergarten_elementor_sidebar.classList.remove('sidebar-fixed');
     289  }
     290});
  • kindergarten-elementor/0.1.7/functions.php

    r288453 r299349  
    426426define('KINDERGARTEN_ELEMENTOR_LIVE_DEMO',__('https://preview.wpelemento.com/kindergarten-elementor/','kindergarten-elementor'));
    427427define('KINDERGARTEN_ELEMENTOR_THEME_BUNDLE',__('https://www.wpelemento.com/products/wordpress-theme-bundle','kindergarten-elementor'));
     428
     429require get_template_directory() . '/includes/product-create.php';
     430
     431if( class_exists( 'Whizzie' ) ) {
     432        $Whizzie = new Whizzie();
     433}
    428434}
    429435add_action('after_setup_theme', 'kindergarten_elementor_enqueue_setting');
  • kindergarten-elementor/0.1.7/includes/customizer.php

    r294973 r299349  
    736736        ] );
    737737
     738        Kirki::add_field( 'theme_config_id', [
     739                'type'        => 'custom',
     740                'tab'      => 'general',
     741                'settings'    => 'kindergarten_elementor_enable_sidebar_sticky_heading',
     742                'section'     => 'kindergarten_elementor_additional_setting',
     743                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Sticky Sidebar', 'kindergarten-elementor' ) . '</h3>',
     744                'priority'    => 10,
     745        ] );
     746
     747        Kirki::add_field( 'theme_config_id', [
     748                'type'        => 'toggle',
     749                'tab'      => 'general',
     750                'settings'    => 'kindergarten_elementor_enable_sticky_sidebar',
     751                'label'       => esc_html__( 'Enable or Disable Sticky Sidebar', 'kindergarten-elementor' ),
     752                'section'     => 'kindergarten_elementor_additional_setting',
     753                'default'     => false,
     754                'priority'    => 10,
     755        ] );
     756
    738757
    739758        Kirki::add_field( 'theme_config_id', [
  • kindergarten-elementor/0.1.7/index.php

    r294973 r299349  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134135            <?php
    135136              dynamic_sidebar('sidebar-2');
    … …  
    166167        </div>
    167168        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169171            <?php
    170172              dynamic_sidebar('sidebar-2');
    … …  
    173175        </div>
    174176        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • kindergarten-elementor/0.1.7/page.php

    r294973 r299349  
    5151        <div class="row">
    5252          <div class="col-lg-4 col-md-4">
    53             <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     53            <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     54             <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    5455              <?php
    5556                dynamic_sidebar('sidebar-2');
    … …  
    9798          </div>
    9899          <div class="col-lg-4 col-md-4">
    99             <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     100            <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     101              <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    100102              <?php
    101103                dynamic_sidebar('sidebar-2');
  • kindergarten-elementor/0.1.7/readme.txt

    r297114 r299349  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.1.6
     4Stable tag: 0.1.7
    55Requires PHP: 5.6
    66Tested up to: 6.8
    … …  
    7575
    7676== Changelog ==
     77
     78= November-18-2025 :: 0.1.7
     79
     80* Added sticky sidebar.
     81* Remove unwanted css.
    7782
    7883= October-31-2025 :: 0.1.6
  • kindergarten-elementor/0.1.7/search.php

    r294973 r299349  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134135            <?php
    135136              dynamic_sidebar('sidebar-2');
    … …  
    166167        </div>
    167168        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169171            <?php
    170172              dynamic_sidebar('sidebar-2');
    … …  
    173175        </div>
    174176        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • kindergarten-elementor/0.1.7/sidebar.php

    r294973 r299349  
    99?>
    1010
    11 <div class="sidebar-area <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     11<div class="sidebar-area <?php if( get_theme_mod('kindergarten_elementor_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     12  <?php echo esc_attr( get_theme_mod('kindergarten_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    1213  <?php if ( ! dynamic_sidebar( 'kindergarten-elementor-sidebar' ) ) : ?>
    1314    <div role="complementary" aria-label="<?php echo esc_attr__( 'sidebar1', 'kindergarten-elementor' ); ?>" id="Search" class="sidebar-widget">
  • kindergarten-elementor/0.1.7/style.css

    r297114 r299349  
    55Theme URI: https://www.wpelemento.com/products/free-kindergarten-school-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.1.6
     7Version: 0.1.7
    88Requires PHP: 5.6
    99Tested up to: 6.8
    … …  
    16601660}
    16611661
    1662  /* Wide Block  */
     1662 /* ===============================================
     1663    Wide Block
     1664============================================= */
    16631665 
    16641666 .alignwide {
    … …  
    16721674}
    16731675
    1674 /* Sticky Copyright */
     1676/* ===============================================
     1677   Sticky Copyright
     1678============================================= */
    16751679
    16761680.sticky-copyright.footer-copyright{
    … …  
    16861690  position: static;
    16871691}
     1692
     1693/* ===============================================
     1694   Sticky Sidebar
     1695============================================= */
     1696
     1697.sidebar-sticky {
     1698  position: sticky;
     1699  top: 100px;
     1700  z-index: 999;
     1701}
Note: See TracChangeset for help on using the changeset viewer.