Make WordPress Themes

Changeset 298088


Ignore:
Timestamp:
11/13/2025 09:11:12 AM (12 months ago)
Author:
themedropbox
Message:

New version of Hairstylist Salon - 0.3.8

Location:
hairstylist-salon/0.3.8
Files:
9 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hairstylist-salon/0.3.8/archive.php

    r295173 r298088  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • hairstylist-salon/0.3.8/assets/js/script.js

    r295173 r298088  
    262262  }
    263263});
     264
     265/* ===============================================
     266   sticky sidebar
     267============================================= */
     268
     269window.addEventListener('scroll', function () {
     270  var hairstylist_salon_sidebar = document.querySelector('.sidebar-sticky');
     271  if (!hairstylist_salon_sidebar) return;
     272
     273  var hairstylist_salon_scrollTop = window.scrollY || document.documentElement.scrollTop;
     274  var hairstylist_salon_windowHeight = window.innerHeight;
     275  var hairstylist_salon_documentHeight = document.documentElement.scrollHeight;
     276
     277  var hairstylist_salon_isBottom = hairstylist_salon_scrollTop + hairstylist_salon_windowHeight >= hairstylist_salon_documentHeight - 100;
     278
     279  if (hairstylist_salon_scrollTop >= 100 && !hairstylist_salon_isBottom) {
     280    hairstylist_salon_sidebar.classList.add('sidebar-fixed');
     281  } else {
     282    hairstylist_salon_sidebar.classList.remove('sidebar-fixed');
     283  }
     284});
  • hairstylist-salon/0.3.8/includes/customizer.php

    r295173 r298088  
    770770        ] );
    771771
     772        Kirki::add_field( 'theme_config_id', [
     773                'type'        => 'custom',
     774                'tab'      => 'general',
     775                'settings'    => 'hairstylist_salon_enable_sidebar_sticky_heading',
     776                'section'     => 'hairstylist_salon_additional_setting',
     777                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Sticky Sidebar', 'hairstylist-salon' ) . '</h3>',
     778                'priority'    => 10,
     779        ] );
     780
     781        Kirki::add_field( 'theme_config_id', [
     782                'type'        => 'toggle',
     783                'tab'      => 'general',
     784                'settings'    => 'hairstylist_salon_enable_sticky_sidebar',
     785                'label'       => esc_html__( 'Enable or Disable Sticky Sidebar', 'hairstylist-salon' ),
     786                'section'     => 'hairstylist_salon_additional_setting',
     787                'default'     => false,
     788                'priority'    => 10,
     789        ] );
     790
    772791
    773792        Kirki::add_field( 'theme_config_id', [
  • hairstylist-salon/0.3.8/index.php

    r295173 r298088  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • hairstylist-salon/0.3.8/page.php

    r295173 r298088  
    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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     53            <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     54              <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     100            <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     101              <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    100102              <?php
    101103                dynamic_sidebar('sidebar-2');
  • hairstylist-salon/0.3.8/readme.txt

    r296468 r298088  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.3.7
     4Stable tag: 0.3.8
    55Requires PHP: 5.6
    66Tested up to: 6.8
    … …  
    8585
    8686== Changelog ==
     87
     88= November-6-2025 :: 0.3.8
     89
     90* Added sticky sidebar.
     91* Remove unwanted css.
    8792
    8893= October-31-2025 :: 0.3.7
  • hairstylist-salon/0.3.8/search.php

    r295173 r298088  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     133          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     134            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     169          <div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     170            <?php echo esc_attr( get_theme_mod('hairstylist_salon_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('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     177          <div class="sidebar-area sidebar-three <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     178            <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176179            <?php
    177180              dynamic_sidebar('sidebar-3');
  • hairstylist-salon/0.3.8/sidebar.php

    r295173 r298088  
    99?>
    1010
    11 <div class="sidebar-area <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
     11<div class="sidebar-area <?php if( get_theme_mod('hairstylist_salon_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?>
     12  <?php echo esc_attr( get_theme_mod('hairstylist_salon_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    1213  <?php if ( ! dynamic_sidebar( 'hairstylist-salon-sidebar' ) ) : ?>
    1314    <div role="complementary" aria-label="<?php echo esc_attr__( 'sidebar1', 'hairstylist-salon' ); ?>" id="Search" class="sidebar-widget">
  • hairstylist-salon/0.3.8/style.css

    r296468 r298088  
    55Theme URI: https://www.wpelemento.com/products/free-hairs-salon-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.3.7
     7Version: 0.3.8
    88Requires PHP: 5.6
    99Tested up to: 6.8
    … …  
    14941494  bottom: 0;
    14951495}
     1496
     1497 
     1498  /* ===============================================
     1499   Sticky Sidebar
     1500============================================= */
     1501
     1502.sidebar-sticky {
     1503  position: sticky;
     1504  top: 100px;
     1505  z-index: 999;
     1506}
     1507
     1508/* ===============================================
     1509   Sticky Copyright
     1510============================================= */
     1511
     1512.sticky-copyright.footer-copyright{
     1513  position: fixed;
     1514  bottom:0;
     1515  left:0;
     1516  width: 100%;
     1517  z-index: 999;
     1518  transition: bottom 0.4s;
     1519  box-shadow: 0px 0px 8px #000000;
     1520}
     1521
    14961522/* ===============================================
    14971523   HOME PAGE CSS
    … …  
    15611587  margin-right: 5px;
    15621588}
    1563 
    1564 /* Sticky Copyright */
    1565 
    1566 .sticky-copyright.footer-copyright{
    1567   position: fixed;
    1568   bottom:0;
    1569   left:0;
    1570   width: 100%;
    1571   z-index: 999;
    1572   transition: bottom 0.4s;
    1573   box-shadow: 0px 0px 8px #000000;
    1574 }
    1575 .close-sticky {
    1576   position: static;
    1577 }
Note: See TracChangeset for help on using the changeset viewer.