Plugin Directory

Changeset 2699613


Ignore:
Timestamp:
03/25/2022 02:07:02 PM (4 years ago)
Author:
themeux
Message:

New Custom post type filterable gallery added

Location:
pixi-image-gallery/trunk
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • pixi-image-gallery/trunk/includes/assets/css/common.css

    r2697482 r2699613  
    105105  transition: all .4s ease 0s;
    106106}
     107.pixi-inner-item .inner-content{
     108  padding-top: 20px;
     109}
     110.pixi-inner-item .inner-content h3{
     111  font-size: 22px;
     112  margin-bottom: 10px;
     113  color: #000;
     114  text-transform: capitalize;
     115}
     116
     117.pixi-inner-item .inner-content p{
     118  font-size: 16px;
     119  color: #666;
     120  text-transform: capitalize;
     121}
  • pixi-image-gallery/trunk/includes/assets/js/pixi-filter-gallery.js

    r2697459 r2699613  
    44        console.log( $scope );
    55
    6         //filter js
    76        var pixifilter = $('.pixi-grid');
    87        if(pixifilter.length){
     
    109                $('.pixi-filter').on('click', 'button', function() {
    1110                    var filterValue = $(this).attr('data-filter');
     11                    var $grid = $(this).closest('.pixi-portfolio').find('.pixi-grid');
    1212                    $grid.isotope({
    13                         filter: filterValue
     13                        filter: filterValue,
     14                        itemSelector: '.grid-item',
     15                        percentPosition: true,
     16                        masonry: {
     17                            columnWidth: '.grid-item',
     18                        }
    1419                    });
    1520                });
    16                 var $grid = $('.pixi-grid').isotope({
    17                     itemSelector: '.grid-item',
    18                     percentPosition: true,
    19                     masonry: {
    20                         columnWidth: '.grid-item',
    21                     }
    22                 });
    2321            });
    24         }   
    25            
    26         // Isotop Filter
    27         if ($('.pixi-filter button').length) {
    28             var projectfiler = $('.pixi-filter button');
    29                 if(projectfiler.length){
    30                 $('.pixi-filter button').on('click', function(event) {
    31                     $(this).siblings('.active').removeClass('active');
    32                     $(this).addClass('active');
    33                     event.preventDefault();
    34                 });
    35             }
    3622        }
    3723
  • pixi-image-gallery/trunk/includes/plugin.php

    r2697482 r2699613  
    226226        require_once( __DIR__ . '/widgets/pixi-gallery.php' );
    227227        require_once( __DIR__ . '/widgets/pixi-gallery-filter.php' );
     228        require_once( __DIR__ . '/widgets/pixi-gallery-custom-filter.php' );
    228229
    229230        $widgets_manager->register( new \Pixi_Image_Gallery\pixi_image_gallery_lite() );
    230231        $widgets_manager->register( new \Pixi_Image_Gallery\pixi_image_gallery_filter() );
     232        $widgets_manager->register( new \Pixi_Image_Gallery\pixi_image_gallery_custom_filter() );
    231233
    232234    }
     
    255257        wp_enqueue_script( 'image-loaded', plugins_url( 'assets/js/imagesloaded.pkgd.min.js', __FILE__ ), [ 'isotope','jquery' ] );
    256258        wp_enqueue_script( 'pixi-filter', plugins_url( 'assets/js/pixi-filter-gallery.js', __FILE__ ) );
     259        wp_enqueue_script( 'pixi-custom-post-filter', plugins_url( 'assets/js/pixi-custom-filter-gallery.js', __FILE__ ) );
    257260        wp_enqueue_script( 'main-scripts', plugins_url( 'assets/js/main.js', __FILE__ ) );
     261        wp_enqueue_script( 'popup-script', plugins_url( 'assets/js/popup-script.js', __FILE__ ) );
    258262    }
    259263
  • pixi-image-gallery/trunk/includes/widgets/pixi-gallery-filter.php

    r2697482 r2699613  
    688688        }
    689689
     690        $dynamic_id = rand(2345,565079);
    690691        ?>
    691692
    692693        <!-- Start Portfolio here -->
    693         <div class="pixi-portfolio">
     694        <div class="pixi-portfolio" id="pixi-<?php echo esc_attr($dynamic_id);?>">
    694695                <div class="pixi-filter">
    695696                    <?php
  • pixi-image-gallery/trunk/pixi-image-gallery-lite.php

    r2697459 r2699613  
    44 * Description: Creative Elementor Image Gallery, Filterable Gallery,Creative layout
    55 * Plugin URI:  #
    6  * Version:     1.0.0
     6 * Version:     1.0.1
    77 * Author:      Esrat Sultana
    88 * Author URI:  https://esrat.net/
     
    7575
    7676/**
     77 * The core plugin Helper Class
     78 * admin-specific hooks, and public-facing site hooks.
     79 */
     80require plugin_dir_path( __FILE__ ) . 'includes/admin/class-pixi-helper.php';
     81
     82
     83/**
    7784 * Begins execution of the plugin.
    7885 *
     
    9097}
    9198run_pixi_image_gallery();
     99
     100
     101
  • pixi-image-gallery/trunk/readme.txt

    r2697473 r2699613  
    55Requires at least: 4.7
    66Tested up to: 5.9.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    1313== Description ==
    1414
    15 Enhance your Elementor page building experience with Filterable Gallery and Standard Image Gallery layout. Add powers to your page builder
    16 using our easy-to-use elements those were designed to make your next WordPress page design easier and
     15Enhance your Elementor page building experience with Filterable Gallery and Standard Image Gallery layout. Add powers to your page builder using our easy-to-use elements those were designed to make your next WordPress page design easier and
    1716prettier than ever before.
    1817
     
    6665== Changelog ==
    6766
     67= 1.0.1 =
     68* Added Custom Post Type Filterable Gallery Items
     69* Added Conent Support
     70* Fixed filtering issue
     71
    6872= 1.0 =
    6973* A change since the previous version.
Note: See TracChangeset for help on using the changeset viewer.