Plugin Directory

Changeset 2920070


Ignore:
Timestamp:
06/01/2023 10:44:30 AM (3 years ago)
Author:
dreamfox
Message:

Version 3.2.6

Location:
woocommerce-product-payments
Files:
305 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-product-payments/trunk/freemius/includes/class-freemius.php

    r2881368 r2920070  
    1029910299            return $this->apply_filters(
    1030010300                'usage_tracking_terms_url',
    10301                 "https://freemius.com/wordpress/usage-tracking/{$this->_plugin->id}/{$this->_slug}/"
     10301                "https://freemius.com/product/opt-in/{$this->_plugin->id}/{$this->_slug}/"
     10302            );
     10303        }
     10304
     10305        /**
     10306         * @todo (For LiteSDK) We can refactor this and other related functions giving links to several landing pages on freemius.com to come from a separate class like `FS_Terms_Pages`. This would get a `FS_WP_Hook` (hypothetical) instance as a dependency and use it to hook into the `license_activation_terms_url` or related filters. The entry level instance from `ms_fs()` would hold a public read-only variable `my_fs()->terms_pages` which would be an instance of `FS_Terms_Pages` and would hold all the links to the terms pages.
     10307         * @since 2.5.8
     10308         *
     10309         * @return string
     10310         */
     10311        function get_license_activation_terms_url() {
     10312            return $this->apply_filters(
     10313                'license_activation_terms_url',
     10314                "https://freemius.com/product/license-activation/{$this->_plugin->id}/{$this->_slug}/"
    1030210315            );
    1030310316        }
  • woocommerce-product-payments/trunk/freemius/start.php

    r2906131 r2920070  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.5.7';
     18    $this_sdk_version = '2.5.8';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • woocommerce-product-payments/trunk/freemius/templates/connect.php

    r2881368 r2920070  
    4848    }
    4949
    50     $freemius_site_www = 'https://freemius.com';
    51 
    5250    $freemius_usage_tracking_url = $fs->get_usage_tracking_terms_url();
    5351    $freemius_plugin_terms_url   = $fs->get_eula_url();
    54 
    55     $freemius_site_url = $fs->is_premium() ?
    56         $freemius_site_www :
    57         $freemius_usage_tracking_url;
    58 
    59     if ( $fs->is_premium() ) {
    60         $freemius_site_url .= '?' . http_build_query( array(
    61                 'id'   => $fs->get_id(),
    62                 'slug' => $slug,
    63             ) );
    64     }
    65 
    66     $freemius_link = '<a href="' . $freemius_site_url . '" target="_blank" rel="noopener" tabindex="1">freemius.com</a>';
    6752
    6853    $error = fs_request_get( 'error' );
     
    7661                               fs_request_get_bool( 'require_license', ( $is_premium_code || $has_release_on_freemius ) )
    7762                           );
     63
     64    $freemius_activation_terms_url = ($fs->is_premium() && $require_license_key) ?
     65        $fs->get_license_activation_terms_url() :
     66        $freemius_usage_tracking_url;
     67
     68    $freemius_activation_terms_html = '<a href="' . esc_url( $freemius_activation_terms_url ) . '" target="_blank" rel="noopener" tabindex="1">freemius.com</a>';
    7869
    7970    if ( $is_pending_activation ) {
     
    266257                                '<b>' . $current_user->user_login . '</b>',
    267258                                '<a href="' . $site_url . '" target="_blank" rel="noopener noreferrer">' . $site_url . '</a>',
    268                                 $freemius_link
     259                                $freemius_activation_terms_html
    269260                            ),
    270261                            $first_name,
     
    272263                            $current_user->user_login,
    273264                            '<a href="' . $site_url . '" target="_blank" rel="noopener noreferrer">' . $site_url . '</a>',
    274                             $freemius_link,
     265                            $freemius_activation_terms_html,
    275266                            true
    276267                        );
     
    452443        </div>
    453444        <div class="fs-terms">
    454             <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo $freemius_site_url ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc' ) ?></span><?php endif ?></a>
     445            <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo esc_url( $freemius_activation_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc' ) ?></span><?php endif ?></a>
    455446            &nbsp;&nbsp;-&nbsp;&nbsp;
    456447            <a href="https://freemius.com/privacy/" target="_blank" rel="noopener"
    457448               tabindex="1"><?php fs_esc_html_echo_inline( 'Privacy Policy', 'privacy-policy', $slug ) ?></a>
    458449            &nbsp;&nbsp;-&nbsp;&nbsp;
    459             <a href="<?php echo $require_license_key ? $freemius_plugin_terms_url : $freemius_usage_tracking_url ?>" target="_blank" rel="noopener" tabindex="1"><?php $require_license_key ? fs_echo_inline( 'License Agreement', 'license-agreement', $slug ) : fs_echo_inline( 'Terms of Service', 'tos', $slug ) ?></a>
     450            <?php if ($require_license_key) : ?>
     451                <a href="<?php echo esc_url( $freemius_plugin_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1"><?php fs_echo_inline( 'License Agreement', 'license-agreement', $slug ) ?></a>
     452            <?php else : ?>
     453                <a href="<?php echo esc_url( $freemius_usage_tracking_url ) ?>" target="_blank" rel="noopener" tabindex="1"><?php fs_echo_inline( 'Terms of Service', 'tos', $slug ) ?></a>
     454            <?php endif; ?>
    460455        </div>
    461456    </div>
  • woocommerce-product-payments/trunk/readme.txt

    r2906131 r2920070  
    33Donate link: http://www.dreamfoxmedia.com
    44Tags: woocommerce, custom payment, payment gateway, woocommerce payment, other payment, woocommerce custom payment gateway, other payment gateway, other gateway, accept payments, payments, payment, gateway, gateways, custom, custom payment gateways
    5 Tested up to: 6.2
     5Tested up to: 6.2.2
    66Requires at least: 5.0
    7 Stable tag: 3.2.5
     7Stable tag: 3.2.6
    88WC requires at least: 6.2
    9 WC tested up to: 7.6.1
     9WC tested up to: 7.7.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676== Changelog ==
    7777
     78= 3.2.6 =
     79* Updated freemius SDK to 2.5.8
     80* check with latest woocommerce and wordpress
     81
    7882= 3.2.5 =
    7983* Updated freemius SDK to 2.5.7
  • woocommerce-product-payments/trunk/woocommerce-product-payments.php

    r2906131 r2920070  
    44* Plugin Name: Dreamfox Media Payment gateway per Product for Woocommerce Premium
    55* Plugin URI: https://www.dreamfoxmedia.com/project/woocommerce-payment-gateway-per-product-premium/
    6 * Version: 3.2.5
     6* Version: 3.2.6
     7* Update URI: https://api.freemius.com
    78* Author: Dreamfox
    89* Author URI: www.dreamfoxmedia.com
    910* Description: Extend Woocommerce plugin to add payments methods to a product
    1011* Requires at least: 5.0
    11 * Tested up to: 6.2
     12* Tested up to: 6.2.2
    1213* WC requires at least: 5.0.0
    13 * WC tested up to: 7.6.1
     14* WC tested up to: 7.7.1
    1415* Text Domain: dreamfoxmedia
    1516* Domain Path: /languages
     
    2223
    2324if ( function_exists( 'dfm_pgppfw_fs' ) ) {
    24     dfm_pgppfw_fs()->set_basename( false, __FILE__ );
     25    dfm_pgppfw_fs()->set_basename( true, __FILE__ );
    2526} else {
    2627    // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK.
     
    4445                    'type'            => 'plugin',
    4546                    'public_key'      => 'pk_5a51c11bf6bf5275ffda4baf7fbaa',
    46                     'is_premium'      => false,
     47                    'is_premium'      => true,
    4748                    'premium_suffix'  => 'Premium',
    4849                    'has_addons'      => false,
     
    7374}
    7475
     76if ( dfm_pgppfw_fs()->is__premium_only( 'premium' ) ) {
     77    require_once dirname( __FILE__ ) . '/inc/quick_bulk_edit_patch__premium_only.php';
     78}
    7579/**
    7680* For multi Network
     
    104108    // Submenu on woocommerce section
    105109    add_action( 'admin_menu', 'softsdev_product_payments_submenu_page' );
     110   
     111    if ( dfm_pgppfw_fs()->is__premium_only( 'premium' ) ) {
     112        remove_action( 'admin_menu', 'softsdev_product_payments_submenu_page' );
     113        add_action( 'admin_menu', 'softsdev_product_payments_submenu_page__premium_only' );
     114    }
     115   
    106116    /* ----------------------------------------------------- */
    107117    add_action( 'admin_enqueue_scripts', 'softsdev_product_payments_enqueue' );
     
    116126            'dfm-pgppfw',
    117127            'softsdev_product_payments_settings'
     128        );
     129    }
     130   
     131    function softsdev_product_payments_submenu_page__premium_only()
     132    {
     133        add_submenu_page(
     134            'woocommerce',
     135            __( 'Product Payment', 'softsdev' ),
     136            __( 'Product Payment', 'softsdev' ),
     137            'manage_options',
     138            'dfm-pgppfw',
     139            'softsdev_product_payments_settings__premium_only'
    118140        );
    119141    }
     
    449471    }
    450472   
     473    function softsdev_product_payments_settings__premium_only()
     474    {
     475        softsdev_product_payments_settings_part();
     476    }
     477   
    451478    add_action( 'init', 'softsdev_product_payments_save_settings' );
    452479    function softsdev_product_payments_save_settings()
     
    623650  </div>
    624651<?php
     652       
     653        if ( dfm_pgppfw_fs()->is__premium_only() ) {
     654            ?> 
     655  <div id="tab_payment_per_categories" class="postbox <?php
     656            echo  ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_per_categories' ? 'active' : '' ) ;
     657            ?>" style="padding: 10px; margin: 10px 0px;">
     658        <div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>
     659        <h2 class="title"><?php
     660            echo  __( 'Woocommerce Product Payments - Per Categories', 'softsdev' ) ;
     661            ?></h2>
     662
     663        <?php
     664            include dirname( __FILE__ ) . '/inc/per_categories.php';
     665            ?>
     666  </div>
     667
     668  <div id="tab_payment_per_tags" class="postbox <?php
     669            echo  ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_per_tags' ? 'active' : '' ) ;
     670            ?>" style="padding: 10px; margin: 10px 0px;">
     671        <div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>
     672        <h2 class="title"><?php
     673            echo  __( 'Woocommerce Product Payments - Per Tags', 'softsdev' ) ;
     674            ?></h2>
     675
     676        <?php
     677            include dirname( __FILE__ ) . '/inc/per_tags.php';
     678            ?>
     679  </div>
     680<?php
     681        }
     682       
    625683        ?> 
    626684  <div id="tab_payment_newsletter" class="postbox" style="padding: 10px; margin: 10px 0px;">
     
    10011059    function is_product_eligible( $product_id )
    10021060    {
     1061        if ( dfm_pgppfw_fs()->is__premium_only( 'premium' ) ) {
     1062            return true;
     1063        }
    10031064        // Product object
    10041065        $product_object = wc_get_product( $product_id );
Note: See TracChangeset for help on using the changeset viewer.