Make WordPress Themes

Changeset 286813


Ignore:
Timestamp:
09/03/2025 03:15:25 AM (3 months ago)
Author:
themedropbox
Message:

New version of Beshop Plus - 1.0.9

Location:
beshop-plus/1.0.9
Files:
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • beshop-plus/1.0.9/archive.php

    r148948 r286813  
    1313$beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container');
    1414$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);
    1516
    1617if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) {
     
    4445
    4546                    if( $beshop_plus_blog_style == 'style4' ):
     47                        $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : '';
    4648                        ?>
    4749                        <div class="bplus-gridh">
    48                         <div class="row bplus-grid">
     50                        <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>">
    4951                    <?php
    5052                    endif;
  • beshop-plus/1.0.9/assets/css/plus-style.css

    r273125 r286813  
    195195
    196196footer.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  
    44    //document ready function
    55    jQuery(document).ready(function($){
    6         $('.bplus-grid').masonry({
    7             // options...
     6        // Initialize masonry layout
     7        var $grid = $('.bplus-grid').masonry({
    88            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        });
    1016       
    1117    }); // end document ready
     
    1319
    1420
    15 }(jQuery)); 
     21}(jQuery));
  • beshop-plus/1.0.9/front-page.php

    r233883 r286813  
    2020$beshop_plus_blog_container = get_theme_mod('beshop_blog_container', 'container');
    2121$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);
    2223
    2324if (is_active_sidebar('sidebar-1') && $beshop_plus_blog_layout != 'fullwidth') {
     
    7071
    7172                    if ($beshop_plus_blog_style == 'style4' && (!is_single())) :
    72                     ?>
     73                        $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : '';
     74                        ?>
    7375                        <div class="bplus-gridh">
    74                             <div class="row bplus-grid">
     76                            <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>">
    7577                            <?php
    7678                        endif;
  • beshop-plus/1.0.9/functions.php

    r148948 r286813  
    8383    }
    8484endif;
     85
     86// Add customizer sanitization functions
     87function beshop_sanitize_checkbox($checked) {
     88    return ((isset($checked) && true == $checked) ? true : false);
     89}
  • beshop-plus/1.0.9/inc/customizer.php

    r155887 r286813  
    7474    ));
    7575   
     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    ));
    7695   
    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    ));
    78110
    79111}
    80112add_action( 'customize_register', 'beshop_pluscustomize_register',99 );
    81 
  • beshop-plus/1.0.9/index.php

    r148948 r286813  
    1818$beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container');
    1919$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);
    2021
    2122if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) {
     
    4950
    5051                    if( $beshop_plus_blog_style == 'style4' && ( ! is_single() ) ):
     52                        $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : '';
    5153                        ?>
    5254                        <div class="bplus-gridh">
    53                         <div class="row bplus-grid">
     55                        <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>">
    5456                    <?php
    5557                    endif;
  • beshop-plus/1.0.9/readme.txt

    r273125 r286813  
    55Tested up to: 6.8
    66Tags: 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.8
     7Stable tag: 1.0.9
    88Requires PHP: 5.6
    99License: GNU General Public License v2 or later
     
    8989== Changelog ==
    9090
     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
    9196= 1.0.4 ==
    9297* New Style Added in the blog meta
     
    99104= 1.0.0 ==
    100105* Released
    101 
    102 
    103  
    104    
  • beshop-plus/1.0.9/search.php

    r148948 r286813  
    1313$beshop_plus_blog_container = get_theme_mod( 'beshop_blog_container', 'container');
    1414$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);
    1516
    1617if ( is_active_sidebar( 'sidebar-1' ) && $beshop_plus_blog_layout != 'fullwidth' ) {
     
    4647
    4748                    if( $beshop_plus_blog_style == 'style4' ):
     49                        $masonry_class = $beshop_plus_blog_masonry ? ' bplus-masonry-grid' : '';
    4850                        ?>
    4951                        <div class="bplus-gridh">
    50                         <div class="row bplus-grid">
     52                        <div class="row bplus-grid<?php echo esc_attr($masonry_class); ?>">
    5153                    <?php
    5254                    endif;
  • beshop-plus/1.0.9/style.css

    r273125 r286813  
    66Theme URI:    https://wpthemespace.com/product/beshop-plus/
    77Template:     beshop
    8 Version:      1.0.8
     8Version:      1.0.9
    99Tested up to: 6.8
    1010Requires PHP: 5.6
  • beshop-plus/1.0.9/template-parts/content-img.php

    r148948 r286813  
    1010$beshop_plus_blogauthor = get_theme_mod( 'beshop_blogauthor', 1);
    1111$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);
    1214
     15// Determine column class based on settings
    1316if ( 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    }
    1744}
    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); ?>">
    2050    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2151
Note: See TracChangeset for help on using the changeset viewer.