Plugin Directory

Changeset 2889575


Ignore:
Timestamp:
03/29/2023 11:23:11 PM (3 years ago)
Author:
wpunicorn
Message:

Updated Compatible with WP 6.1
Fixed Language files

Location:
ultimate-infinite-scroll
Files:
613 added
5 edited

Legend:

Unmodified
Added
Removed
  • ultimate-infinite-scroll/trunk/admin/classes/admin-options.class.php

    r2471604 r2889575  
    2626     'framework_title'         => 'Ultimate Infinite Scroll for WooCommerce',
    2727      'framework_class'         => '',
    28      'version'                   => '1.0.1',
     28     'version'                   => '1.0.3',
    2929      // menu settings
    3030      'menu_title'              => '',
  • ultimate-infinite-scroll/trunk/admin/options/admin-options.php

    r2471604 r2889575  
    209209//
    210210CSF::createSection( $prefix, array(
    211   'title'  => 'Ajax Pagination Settings',
     211  'title'  => 'Ajax Pagination',
    212212  'icon'   => 'fas fa-spinner',
    213213  'fields' => array(
     
    217217  'type'    => 'notice',
    218218  'style'   => 'success',
    219   'content' => '<b>Ajax Pagination Settings</b>',
     219  'content' => '<b>Ajax Pagination</b>',
    220220 
    221221),
  • ultimate-infinite-scroll/trunk/includes/helpers.php

    r2471604 r2889575  
    4343        $this->url = WP_PLUGIN_URL . '/' . plugin_basename(dirname(__file__)) . '/';
    4444
    45         $this->number_of_products =   sanitize_text_field($this->options['number_of_products'])==""? "8" : $this->options['number_of_products'];
     45        //$this->number_of_products =   sanitize_text_field($this->options['number_of_products'])==""? "8" : $this->options['number_of_products'];
     46       
     47        if (isset($this->options['number_of_products'])) {
     48  $this->number_of_products = sanitize_text_field($this->options['number_of_products']) == "" ? "8" : $this->options['number_of_products'];
     49} else {
     50  $this->number_of_products = "8";
     51}
    4652        //echo $this->options['preloader_icon']['url'];
    4753        $preloader=  $this->options['preloader_icon']=="" ? $this->url."assets/icons/ajax-loader.gif":$this->options['preloader_icon'];
     
    6369        $this->pixels_from_top              = sanitize_text_field($this->options['pixels_from_top'])==""?"0":$this->options['pixels_from_top'];
    6470        $this->start_loading_x_from_end     = sanitize_text_field($this->options['start_loading_x_from_end'])==""?"0":$this->options['start_loading_x_from_end'];
    65         $this->masonry_bool                 = sanitize_text_field($this->options['masonry_bool']); 
    66         $this->masonry_item_selector        = sanitize_text_field($this->options['masonry_item_selector'])==""?"li.product":$this->options['masonry_item_selector'];
    67         $this->layout_mode                  = sanitize_text_field($this->options['layout_mode']);
    68         $this->enable_history               = sanitize_text_field($this->options['enable_history']);   
     71        $this->masonry_bool = sanitize_text_field($this->options['masonry_bool'] ?? '');
     72        $this->masonry_item_selector = sanitize_text_field($this->options['masonry_item_selector'] ?? 'li.product');
     73        $this->layout_mode = sanitize_text_field($this->options['layout_mode'] ?? '');
     74        $this->enable_history = sanitize_text_field($this->options['enable_history'] ?? '');   
    6975
    7076       
     
    123129            color: ". $this->options['button_color_hover'].";
    124130        }
    125          ". $this->options['css_code'];
     131         ". $css_code = isset($this->options['css_code']) ? $this->options['css_code'] : '';
     132echo $css_code;
     133
    126134     
    127135        wp_add_inline_style( 'ias-frontend-style', $inline_style );
     
    188196    //Number of posts/ WC Loop filter
    189197    public function set_number_of_product_items_per_page(){
    190         add_filter( 'loop_shop_per_page', create_function( '$cols', "return $this->number_of_products;" ), $this->number_of_products );
     198        $number_of_products = $this->number_of_products;
     199add_filter('loop_shop_per_page', function($cols) use ($number_of_products) {
     200    return $number_of_products;
     201});
     202
    191203    }
    192204   
  • ultimate-infinite-scroll/trunk/readme.txt

    r2674900 r2889575  
    11=== Ultimate Infinite Scroll Plugin ===
    22Contributors: wpunicorn
    3 Donate link: https://themebound.com/
     3Donate link: https://UltimateInfiniteScroll.com
    44Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
    5 Requires at least: 4.2
    6 Tested up to: 5.9
    7 Stable tag: 1.0.2
     5Requires at least: 5.2
     6Tested up to: 6.1
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171
    7272== Changelog ==
     73= 1.0.3 =
     74* Compatible with WP 6.1.1
     75
     76= 1.0.2 =
     77* Enhanced Scrolling animation settings
     78
     79= 1.0.1 =
     80* Fixed minor issues
    7381
    7482= 1.0.0 =
  • ultimate-infinite-scroll/trunk/ultimate-infinite-scroll.php

    r2674900 r2889575  
    22/**
    33* Plugin Name: Ultimate Infinite Scroll
    4 * Plugin URI: http://themebound.com/ultimate-infinite-scroll/
     4* Plugin URI: UltimateInfiniteScroll.com
    55* Description: Products Infinite Scroll Plugin for WooCommerce
    6 * Version: 1.0.2
    7 * Author: Themebound
    8 * Author URI: http://themebound.com
     6* Version: 1.0.3
     7* Author: Ultimate Infinite Scroll
     8* Author URI: UltimateInfiniteScroll.com
     9* Domain Path: /languages/
    910* Text Domain: wp_infinite_scroll_wc
    1011* License: GPLv2 or later
     
    2829//Include helpers file/Infinite scroll Class
    2930require_once (WP_INFINITE_SCROLL_WC_PATH .'includes/helpers.php' );
     31
     32
     33if ( ! function_exists( 'uis_fs' ) ) {
     34    // Create a helper function for easy SDK access.
     35    function uis_fs() {
     36        global $uis_fs;
     37
     38        if ( ! isset( $uis_fs ) ) {
     39            // Activate multisite network integration.
     40            if ( ! defined( 'WP_FS__PRODUCT_12356_MULTISITE' ) ) {
     41                define( 'WP_FS__PRODUCT_12356_MULTISITE', true );
     42            }
     43
     44            // Include Freemius SDK.
     45            require_once dirname(__FILE__) . '/freemius/start.php';
     46
     47            $uis_fs = fs_dynamic_init( array(
     48                'id'                  => '12356',
     49                'slug'                => 'ultimate-infinite-scroll',
     50                'type'                => 'plugin',
     51                'public_key'          => 'pk_bc0a630a8e62dc5dbb8761e303fb4',
     52                'is_premium'          => true,
     53                'premium_suffix'      => 'Premium',
     54                // If your plugin is a serviceware, set this option to false.
     55                'has_premium_version' => true,
     56                'has_addons'          => false,
     57                'has_paid_plans'      => true,
     58                'menu'                => array(
     59                    'slug'           => 'infinitescroll',
     60                    'support'        => false,
     61                ),
     62             
     63            ) );
     64        }
     65
     66        return $uis_fs;
     67    }
     68
     69    // Init Freemius.
     70    uis_fs();
     71    // Signal that SDK was initiated.
     72    do_action( 'uis_fs_loaded' );
     73}
Note: See TracChangeset for help on using the changeset viewer.