Changeset 286813
- Timestamp:
- 09/03/2025 03:15:25 AM (3 months ago)
- Location:
- beshop-plus/1.0.9
- Files:
-
- 11 edited
- 1 copied
-
. (copied) (copied from beshop-plus/1.0.8)
-
archive.php (modified) (2 diffs)
-
assets/css/plus-style.css (modified) (1 diff)
-
assets/js/main.js (modified) (2 diffs)
-
front-page.php (modified) (2 diffs)
-
functions.php (modified) (1 diff)
-
inc/customizer.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
search.php (modified) (2 diffs)
-
style.css (modified) (1 diff)
-
template-parts/content-img.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
beshop-plus/1.0.9/archive.php
r148948 r286813 13 13 $beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container'); 14 14 $beshop_plus_blog_layout = get_theme_mod( 'beshop_plus_blog_layout', 'fullwidth'); 15 $beshop_plus_blog_masonry = get_theme_mod( 'beshop_plus_blog_masonry', false); 15 16 16 17 if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) { … … 44 45 45 46 if( $beshop_plus_blog_style == 'style4' ): 47 $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : ''; 46 48 ?> 47 49 <div class="bplus-gridh"> 48 <div class="row bplus-grid ">50 <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>"> 49 51 <?php 50 52 endif; -
beshop-plus/1.0.9/assets/css/plus-style.css
r273125 r286813 195 195 196 196 footer.site-footer .site-info a {color: #fff;} 197 198 /* Masonry layout styles */ 199 .beshop-masonry-item { 200 margin-bottom: 30px; 201 } 202 203 .bplus-grid { 204 transition: height 0.3s ease-out; 205 } 206 207 /* Responsive adjustments for grid columns */ 208 @media (max-width: 991px) { 209 .bsgrid-item { 210 margin-bottom: 30px; 211 } 212 } 213 214 @media (max-width: 767px) { 215 .bsgrid-item { 216 margin-bottom: 20px; 217 } 218 } -
beshop-plus/1.0.9/assets/js/main.js
r148948 r286813 4 4 //document ready function 5 5 jQuery(document).ready(function($){ 6 $('.bplus-grid').masonry({7 // options...6 // Initialize masonry layout 7 var $grid = $('.bplus-grid').masonry({ 8 8 itemSelector: '.bsgrid-item', 9 }); 9 percentPosition: true 10 }); 11 12 // Layout Masonry after each image loads 13 $grid.imagesLoaded().progress(function() { 14 $grid.masonry('layout'); 15 }); 10 16 11 17 }); // end document ready … … 13 19 14 20 15 }(jQuery)); 21 }(jQuery)); -
beshop-plus/1.0.9/front-page.php
r233883 r286813 20 20 $beshop_plus_blog_container = get_theme_mod('beshop_blog_container', 'container'); 21 21 $beshop_plus_blog_layout = get_theme_mod('beshop_plus_blog_layout', 'fullwidth'); 22 $beshop_plus_blog_masonry = get_theme_mod( 'beshop_plus_blog_masonry', false); 22 23 23 24 if (is_active_sidebar('sidebar-1') && $beshop_plus_blog_layout != 'fullwidth') { … … 70 71 71 72 if ($beshop_plus_blog_style == 'style4' && (!is_single())) : 72 ?> 73 $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : ''; 74 ?> 73 75 <div class="bplus-gridh"> 74 <div class="row bplus-grid ">76 <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>"> 75 77 <?php 76 78 endif; -
beshop-plus/1.0.9/functions.php
r148948 r286813 83 83 } 84 84 endif; 85 86 // Add customizer sanitization functions 87 function beshop_sanitize_checkbox($checked) { 88 return ((isset($checked) && true == $checked) ? true : false); 89 } -
beshop-plus/1.0.9/inc/customizer.php
r155887 r286813 74 74 )); 75 75 76 // Add new blog grid column option 77 $wp_customize->add_setting('beshop_plus_blog_grid_columns', array( 78 'default' => '3', 79 'capability' => 'edit_theme_options', 80 'type' => 'theme_mod', 81 'sanitize_callback' => 'beshop_sanitize_select', 82 'transport' => 'refresh', 83 )); 84 $wp_customize->add_control('beshop_plus_blog_grid_columns', array( 85 'label' => __('Blog Grid Columns', 'beshop-plus'), 86 'section' => 'beshop_blog', 87 'settings' => 'beshop_plus_blog_grid_columns', 88 'type' => 'select', 89 'choices' => array( 90 '2' => __('2 Columns', 'beshop-plus'), 91 '3' => __('3 Columns', 'beshop-plus'), 92 '4' => __('4 Columns', 'beshop-plus'), 93 ), 94 )); 76 95 77 96 // Add masonry layout option 97 $wp_customize->add_setting('beshop_plus_blog_masonry', array( 98 'default' => false, 99 'capability' => 'edit_theme_options', 100 'type' => 'theme_mod', 101 'sanitize_callback' => 'beshop_sanitize_checkbox', 102 'transport' => 'refresh', 103 )); 104 $wp_customize->add_control('beshop_plus_blog_masonry', array( 105 'label' => __('Enable Masonry Layout', 'beshop-plus'), 106 'section' => 'beshop_blog', 107 'settings' => 'beshop_plus_blog_masonry', 108 'type' => 'checkbox', 109 )); 78 110 79 111 } 80 112 add_action( 'customize_register', 'beshop_pluscustomize_register',99 ); 81 -
beshop-plus/1.0.9/index.php
r148948 r286813 18 18 $beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container'); 19 19 $beshop_plus_blog_layout = get_theme_mod( 'beshop_plus_blog_layout', 'fullwidth'); 20 $beshop_plus_blog_masonry = get_theme_mod( 'beshop_plus_blog_masonry', false); 20 21 21 22 if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) { … … 49 50 50 51 if( $beshop_plus_blog_style == 'style4' && ( ! is_single() ) ): 52 $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : ''; 51 53 ?> 52 54 <div class="bplus-gridh"> 53 <div class="row bplus-grid ">55 <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>"> 54 56 <?php 55 57 endif; -
beshop-plus/1.0.9/readme.txt
r273125 r286813 5 5 Tested up to: 6.8 6 6 Tags: blog, e-commerce, news, custom-logo, one-column, two-columns, grid-layout, right-sidebar, custom-background, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, threaded-comments, translation-ready, block-styles 7 Stable tag: 1.0. 87 Stable tag: 1.0.9 8 8 Requires PHP: 5.6 9 9 License: GNU General Public License v2 or later … … 89 89 == Changelog == 90 90 91 = 1.0.9 == 92 * Added new blog layout options (2-column, 3-column, 4-column) 93 * Added masonry layout option for blog posts 94 * Enhanced grid system with responsive adjustments 95 * Improved masonry layout with better image loading handling 91 96 = 1.0.4 == 92 97 * New Style Added in the blog meta … … 99 104 = 1.0.0 == 100 105 * Released 101 102 103 104 -
beshop-plus/1.0.9/search.php
r148948 r286813 13 13 $beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container'); 14 14 $beshop_plus_blog_layout = get_theme_mod( 'beshop_plus_blog_layout', 'fullwidth'); 15 $beshop_plus_blog_masonry = get_theme_mod( 'beshop_plus_blog_masonry', false); 15 16 16 17 if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) { … … 46 47 47 48 if( $beshop_plus_blog_style == 'style4' ): 49 $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : ''; 48 50 ?> 49 51 <div class="bplus-gridh"> 50 <div class="row bplus-grid ">52 <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>"> 51 53 <?php 52 54 endif; -
beshop-plus/1.0.9/style.css
r273125 r286813 6 6 Theme URI: https://wpthemespace.com/product/beshop-plus/ 7 7 Template: beshop 8 Version: 1.0. 88 Version: 1.0.9 9 9 Tested up to: 6.8 10 10 Requires PHP: 5.6 -
beshop-plus/1.0.9/template-parts/content-img.php
r148948 r286813 10 10 $beshop_plus_blogauthor = get_theme_mod( 'beshop_blogauthor', 1); 11 11 $beshop_plus_blog_layout = get_theme_mod( 'beshop_plus_blog_layout', 'fullwidth'); 12 $beshop_plus_blog_grid_columns = get_theme_mod( 'beshop_plus_blog_grid_columns', '3'); 13 $beshop_plus_blog_masonry = get_theme_mod( 'beshop_plus_blog_masonry', false); 12 14 15 // Determine column class based on settings 13 16 if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) { 14 $beshop_plus_grid_column = '6'; 15 }else{ 16 $beshop_plus_grid_column = '4'; 17 // With sidebar 18 switch($beshop_plus_blog_grid_columns) { 19 case '2': 20 $beshop_plus_grid_column = '6'; 21 break; 22 case '3': 23 case '4': 24 default: 25 $beshop_plus_grid_column = '6'; // Limit to 2 columns with sidebar 26 break; 27 } 28 } else { 29 // Full width 30 switch($beshop_plus_blog_grid_columns) { 31 case '2': 32 $beshop_plus_grid_column = '6'; 33 break; 34 case '3': 35 $beshop_plus_grid_column = '4'; 36 break; 37 case '4': 38 $beshop_plus_grid_column = '3'; 39 break; 40 default: 41 $beshop_plus_grid_column = '4'; 42 break; 43 } 17 44 } 18 ?> 19 <div class="col-lg-<?php echo esc_attr($beshop_plus_grid_column); ?> bsgrid-item"> 45 46 // Add masonry class if enabled 47 $masonry_class = $beshop_plus_blog_masonry ? ' beshop-masonry-item' : ''; 48 ?> 49 <div class="col-lg-<?php echo esc_attr($beshop_plus_grid_column); ?> bsgrid-item<?php echo esc_attr($masonry_class); ?>"> 20 50 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 21 51
Note: See TracChangeset
for help on using the changeset viewer.