Plugin Directory

Changeset 2784489


Ignore:
Timestamp:
09/14/2022 09:17:27 AM (4 years ago)
Author:
a1office
Message:

REMOVE FREEMIUS

Location:
embed-docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • embed-docs/tags/2.0/file_uploader.php

    r2784387 r2784489  
    1818}
    1919
    20 if ( ! function_exists( 'ed_fs' ) ) {
    21     // Create a helper function for easy SDK access.
    22     function ed_fs() {
    23         global $ed_fs;
    2420
    25         if ( ! isset( $ed_fs ) ) {
    26             // Include Freemius SDK.
    27             require_once dirname(__FILE__) . '/freemius/start.php';
    28 
    29             $ed_fs = fs_dynamic_init( array(
    30                 'id'                  => '10963',
    31                 'slug'                => 'embed-docs',
    32                 'type'                => 'plugin',
    33                 'public_key'          => 'pk_91386343739dc7b0e242898e72bce',
    34                 'is_premium'          => false,
    35                 'has_addons'          => false,
    36                 'has_paid_plans'      => false,
    37                 'menu'                => array(
    38                 'slug'                => 'embed-docs',
    39                 'account'             => false,
    40                 'support'             => false,
    41                 ),
    42             ) );
    43         }
    44 
    45         return $ed_fs;
    46     }
    47 
    48     // Init Freemius.
    49     ed_fs();
    50     // Signal that SDK was initiated.
    51     do_action( 'ed_fs_loaded' );
    52 }
    53  
    5421
    5522function file_uploader_custom_block_script_register()
  • embed-docs/trunk/file_uploader.php

    r2784387 r2784489  
    1717    exit;
    1818}
    19 
    20 if ( ! function_exists( 'ed_fs' ) ) {
    21     // Create a helper function for easy SDK access.
    22     function ed_fs() {
    23         global $ed_fs;
    24 
    25         if ( ! isset( $ed_fs ) ) {
    26             // Include Freemius SDK.
    27             require_once dirname(__FILE__) . '/freemius/start.php';
    28 
    29             $ed_fs = fs_dynamic_init( array(
    30                 'id'                  => '10963',
    31                 'slug'                => 'embed-docs',
    32                 'type'                => 'plugin',
    33                 'public_key'          => 'pk_91386343739dc7b0e242898e72bce',
    34                 'is_premium'          => false,
    35                 'has_addons'          => false,
    36                 'has_paid_plans'      => false,
    37                 'menu'                => array(
    38                 'slug'                => 'embed-docs',
    39                 'account'             => false,
    40                 'support'             => false,
    41                 ),
    42             ) );
    43         }
    44 
    45         return $ed_fs;
    46     }
    47 
    48     // Init Freemius.
    49     ed_fs();
    50     // Signal that SDK was initiated.
    51     do_action( 'ed_fs_loaded' );
    52 }
    53  
    5419
    5520function file_uploader_custom_block_script_register()
Note: See TracChangeset for help on using the changeset viewer.