Plugin Directory

Changeset 3254480


Ignore:
Timestamp:
03/12/2025 06:36:38 AM (13 months ago)
Author:
pluginscafe
Message:

add freemius

Location:
range-slider-addon-for-gravity-forms
Files:
548 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • range-slider-addon-for-gravity-forms/trunk/gf-range-slider.php

    r3198744 r3254480  
    11<?php
    22/*
    3 Plugin Name: Range Slider Addon For Gravity Forms
     3Plugin Name: Range Slider Addon for Gravity Forms
    44Plugin Url: https://pluginscafe.com/plugin/range-slider-for-gravity-forms-pro/
    5 Version: 1.1.3
    6 Description: A simple and nice plugin to add range slider to pick data easily in gravity forms.
    7 Author: Pluginscafe
     5Version: 1.1.4
     6Description: A sleek, lightweight, and customizable range slider designed for selecting numbers or data within Gravity Forms.
     7Author: PluginsCafe
    88Author URI: https://pluginscafe.com
    99License: GPLv2 or later
    10 Text Domain: gravityforms
     10Text Domain: range-slider-addon-for-gravity-forms
    1111*/
    1212if (!defined('ABSPATH')) {
     
    1414}
    1515
    16 define('GF_NU_RANGE_SLIDER_ADDON_VERSION', '1.1.3');
     16if (function_exists('rsfgf_fs')) {
     17    rsfgf_fs()->set_basename(false, __FILE__);
     18} else {
    1719
    18 add_action('gform_loaded', array('GF_NU_Range_Slider_AddOn_Bootstrap', 'load'), 5);
     20    if (! function_exists('rsfgf_fs')) {
     21        // Create a helper function for easy SDK access.
     22        function rsfgf_fs() {
     23            global $rsfgf_fs;
    1924
    20 class GF_NU_Range_Slider_AddOn_Bootstrap {
     25            if (! isset($rsfgf_fs)) {
     26                // Include Freemius SDK.
     27                require_once dirname(__FILE__) . '/vendor/freemius/start.php';
     28                $rsfgf_fs = fs_dynamic_init(array(
     29                    'id'                  => '15078',
     30                    'slug'                => 'range-slider-for-gravity-forms',
     31                    'type'                => 'plugin',
     32                    'public_key'          => 'pk_a6b08be24cb45ef6ac1489c6734c0',
     33                    'is_premium'          => false,
     34                    'premium_suffix'      => 'Pro',
     35                    // If your plugin is a serviceware, set this option to false.
     36                    'has_premium_version' => true,
     37                    'has_addons'          => false,
     38                    'has_paid_plans'      => true,
     39                    'menu'                => array(
     40                        'slug'           => 'range-slider-for-gravity-forms',
     41                        'first-path'     => 'options-general.php?page=range-slider-for-gravity-forms',
     42                        'contact'        => false,
     43                        'support'        => false,
     44                        'parent'         => array(
     45                            'slug' => 'options-general.php',
     46                        ),
     47                        'is_live'        => true,
     48                    ),
     49                ));
     50            }
    2151
    22     public static function load() {
     52            return $rsfgf_fs;
     53        }
    2354
    24         if (! method_exists('GFForms', 'include_addon_framework')) {
    25             return;
     55        // Init Freemius.
     56        rsfgf_fs();
     57        // Signal that SDK was initiated.
     58        do_action('rsfgf_fs_loaded');
     59    }
     60
     61    define('GF_NU_RANGE_SLIDER_ADDON_VERSION', '1.1.3');
     62    define('GF_NU_RANGE_SLIDER_URL', plugin_dir_url(__FILE__));
     63    add_action('gform_loaded', array('GF_NU_Range_Slider_AddOn_Bootstrap', 'load'), 5);
     64
     65    class GF_NU_Range_Slider_AddOn_Bootstrap {
     66
     67        public static function load() {
     68
     69            if (! method_exists('GFForms', 'include_addon_framework')) {
     70                return;
     71            }
     72            // are we on GF 2.5+
     73            define('GFRS_GF_MIN_2_5', version_compare(GFCommon::$version, '2.5-dev-1', '>='));
     74
     75            require_once('includes/fields/class-nu-range-slider.php');
     76            require_once('includes/fields/class-nu-range-slider-field.php');
     77
     78            require_once('includes/admin/class-menu.php');
     79
     80            GFAddOn::register('GFRangeSliderAddOn');
    2681        }
    27         // are we on GF 2.5+
    28         define('GFRS_GF_MIN_2_5', version_compare(GFCommon::$version, '2.5-dev-1', '>='));
     82    }
    2983
    30         require_once('class-nu-range-slider.php');
    31         require_once('class-nu-range-slider-field.php');
    32 
    33         GFAddOn::register('GFRangeSliderAddOn');
     84    function gf_nu_range_slider() {
     85        return GFRangeSliderAddOn::get_instance();
    3486    }
    3587}
    36 
    37 function gf_nu_range_slider() {
    38     return GFRangeSliderAddOn::get_instance();
    39 }
  • range-slider-addon-for-gravity-forms/trunk/readme.txt

    r3198744 r3254480  
    1 === Range Slider AddOn for Gravity Forms ===
     1=== Range Slider Addon for Gravity Forms ===
    22Author: Pluginscafe
    33Contributors: pluginscafe, kaisarahmmed
     
    55Requires at least: 5.0
    66Requires PHP: 5.6
    7 Tested up to: 6.7.1
    8 Stable tag: 1.1.3
     7Tested up to: 6.7
     8Stable tag: 1.1.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
    1111
    1212
    13 A simple and nice plugin to add range slider to pick number or customize data easily.
     13Integrate your gravity forms with a smooth, lightweight, customizable range slider and unrivaled performance on both mobile and desktop.
    1414
    1515== Description ==
    16 A simple and nice plugin to add range slider to pick number or customize data easily. This plugin adds a responsive range slider field with smooth animation. The field comes with a lot of options that's controllable from the Gravity Forms UI.
     16A sleek, lightweight, and customizable range slider designed for selecting numbers or data within Gravity Forms.. This plugin adds a responsive range slider field with smooth animation. The field comes with a lot of options that's controllable from the Gravity Forms UI.
    1717
    1818== Features ==
     
    3434
    3535== Change log ==
     36= 1.1.4 =
     37* Introduce Pro Version
     38* Added Freemius SDK
     39* Added Dashboard
     40* Bug Fixs
     41
    3642= 1.1.3 =
    3743* Compatibility with Gravity Forms 2.9
Note: See TracChangeset for help on using the changeset viewer.