Changeset 298088
- Timestamp:
- 11/13/2025 09:11:12 AM (12 months ago)
- Location:
- hairstylist-salon/0.3.8
- Files:
-
- 9 edited
- 1 copied
-
. (copied) (copied from hairstylist-salon/0.3.7 )
-
archive.php (modified) (3 diffs)
-
assets/js/script.js (modified) (1 diff)
-
includes/customizer.php (modified) (1 diff)
-
index.php (modified) (3 diffs)
-
page.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
search.php (modified) (3 diffs)
-
sidebar.php (modified) (1 diff)
-
style.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hairstylist-salon/0.3.8/archive.php
r295173 r298088 131 131 </div> 132 132 <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' : '' ); ?>"> 134 135 <?php 135 136 dynamic_sidebar('sidebar-2'); … … 166 167 </div> 167 168 <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' : '' ); ?>"> 169 171 <?php 170 172 dynamic_sidebar('sidebar-2'); … … 173 175 </div> 174 176 <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' : '' ); ?>"> 176 179 <?php 177 180 dynamic_sidebar('sidebar-3'); -
hairstylist-salon/0.3.8/assets/js/script.js
r295173 r298088 262 262 } 263 263 }); 264 265 /* =============================================== 266 sticky sidebar 267 ============================================= */ 268 269 window.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 770 770 ] ); 771 771 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 772 791 773 792 Kirki::add_field( 'theme_config_id', [ -
hairstylist-salon/0.3.8/index.php
r295173 r298088 131 131 </div> 132 132 <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' : '' ); ?>"> 134 135 <?php 135 136 dynamic_sidebar('sidebar-2'); … … 166 167 </div> 167 168 <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' : '' ); ?>"> 169 171 <?php 170 172 dynamic_sidebar('sidebar-2'); … … 173 175 </div> 174 176 <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' : '' ); ?>"> 176 179 <?php 177 180 dynamic_sidebar('sidebar-3'); -
hairstylist-salon/0.3.8/page.php
r295173 r298088 51 51 <div class="row"> 52 52 <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' : '' ); ?>"> 54 55 <?php 55 56 dynamic_sidebar('sidebar-2'); … … 97 98 </div> 98 99 <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' : '' ); ?>"> 100 102 <?php 101 103 dynamic_sidebar('sidebar-2'); -
hairstylist-salon/0.3.8/readme.txt
r296468 r298088 2 2 Contributors: wpelemento 3 3 Requires at least: 5.0 4 Stable tag: 0.3. 74 Stable tag: 0.3.8 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.8 … … 85 85 86 86 == Changelog == 87 88 = November-6-2025 :: 0.3.8 89 90 * Added sticky sidebar. 91 * Remove unwanted css. 87 92 88 93 = October-31-2025 :: 0.3.7 -
hairstylist-salon/0.3.8/search.php
r295173 r298088 131 131 </div> 132 132 <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' : '' ); ?>"> 134 135 <?php 135 136 dynamic_sidebar('sidebar-2'); … … 166 167 </div> 167 168 <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' : '' ); ?>"> 169 171 <?php 170 172 dynamic_sidebar('sidebar-2'); … … 173 175 </div> 174 176 <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' : '' ); ?>"> 176 179 <?php 177 180 dynamic_sidebar('sidebar-3'); -
hairstylist-salon/0.3.8/sidebar.php
r295173 r298088 9 9 ?> 10 10 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' : '' ); ?>"> 12 13 <?php if ( ! dynamic_sidebar( 'hairstylist-salon-sidebar' ) ) : ?> 13 14 <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 5 5 Theme URI: https://www.wpelemento.com/products/free-hairs-salon-wordpress-theme 6 6 Author URI: https://www.wpelemento.com/ 7 Version: 0.3. 77 Version: 0.3.8 8 8 Requires PHP: 5.6 9 9 Tested up to: 6.8 … … 1494 1494 bottom: 0; 1495 1495 } 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 1496 1522 /* =============================================== 1497 1523 HOME PAGE CSS … … 1561 1587 margin-right: 5px; 1562 1588 } 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)