Plugin Directory

Changeset 3422966


Ignore:
Timestamp:
12/18/2025 02:06:13 PM (3 months ago)
Author:
codeconfig
Message:

Update header name

Location:
integrate-dropbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • integrate-dropbox/tags/1.2.21/integrate-dropbox.php

    r3422964 r3422966  
    33namespace CodeConfig\IntegrateDropbox;
    44
    5 defined( 'ABSPATH' ) or exit( 'Hey, what are you doing here? You silly human!' );
     5defined('ABSPATH') or exit('Hey, what are you doing here? You silly human!');
    66/*
    7  * Plugin Name: File Manager for Dropbox PRO
     7 * Plugin Name: File Manager for Dropbox
    88 * Plugin URI:        https://codeconfig.dev/integrate-dropbox/
    99 * Description:       Integrate Dropbox: user-friendly WordPress plugin beautifully displays Dropbox files on posts, pages, & products.
     
    1818 * Domain Path:       /languages
    1919 */
    20 if ( function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' ) ) {
    21     indbox_fs()->set_basename( false, __FILE__ );
     20if (function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) {
     21    indbox_fs()->set_basename(false, __FILE__);
    2222} else {
    23     if ( !function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' ) ) {
    24         function indbox_fs() {
     23    if (!function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) {
     24        function indbox_fs()
     25        {
    2526            global $indbox_fs;
    26             if ( !isset( $indbox_fs ) ) {
    27                 if ( !class_exists( 'Freemius' ) ) {
    28                     require_once dirname( __FILE__ ) . '/freemius/start.php';
     27            if (!isset($indbox_fs)) {
     28                if (!class_exists('Freemius')) {
     29                    require_once dirname(__FILE__) . '/freemius/start.php';
    2930                }
    30                 $indbox_fs = fs_dynamic_init( [
     31                $indbox_fs = fs_dynamic_init([
    3132                    'id'               => '15531',
    3233                    'slug'             => 'integrate-dropbox',
     
    4748                    ],
    4849                    'is_live'          => true,
    49                 ] );
     50                ]);
    5051            }
    5152            return $indbox_fs;
     
    5556        indbox_fs();
    5657        // Signal that SDK was initiated.
    57         do_action( 'indbox_fs_loaded' );
     58        do_action('indbox_fs_loaded');
    5859    }
    5960    //  Define constant
    60     define( 'INDBOX_FILE', __FILE__ );
    61     define( 'INDBOX_VERSION', '1.2.21' );
    62     define( 'INDBOX_PATH', dirname( __FILE__ ) );
    63     define( 'INDBOX_APP', INDBOX_PATH . '/app' );
    64     define( 'INDBOX_URL', plugins_url( '/', __FILE__ ) );
    65     define( 'INDBOX_SLUG', plugin_basename( __FILE__ ) );
    66     define( 'INDBOX_ASSETS', INDBOX_URL . 'assets' );
    67     define( 'INDBOX_INC', INDBOX_PATH . '/includes' );
    68     define( 'INDBOX_VENDOR', INDBOX_PATH . '/vendors' );
    69     define( 'INDBOX_CACHE_DIR', WP_CONTENT_DIR . '/integrate-dropbox-cache/' );
    70     define( 'INDBOX_CACHE_URL', content_url() . '/integrate-dropbox-cache/' );
    71     define( 'INDBOX_ICON_SET', INDBOX_ASSETS . '/admin/icons/' );
    72     define( 'INDBOX_ADMIN_URL', admin_url( 'admin-ajax.php' ) );
    73     define( 'INDBOX_INTEGRATIONS', INDBOX_INC . '/Integrations' );
     61    define('INDBOX_FILE', __FILE__);
     62    define('INDBOX_VERSION', '1.2.21');
     63    define('INDBOX_PATH', dirname(__FILE__));
     64    define('INDBOX_APP', INDBOX_PATH . '/app');
     65    define('INDBOX_URL', plugins_url('/', __FILE__));
     66    define('INDBOX_SLUG', plugin_basename(__FILE__));
     67    define('INDBOX_ASSETS', INDBOX_URL . 'assets');
     68    define('INDBOX_INC', INDBOX_PATH . '/includes');
     69    define('INDBOX_VENDOR', INDBOX_PATH . '/vendors');
     70    define('INDBOX_CACHE_DIR', WP_CONTENT_DIR . '/integrate-dropbox-cache/');
     71    define('INDBOX_CACHE_URL', content_url() . '/integrate-dropbox-cache/');
     72    define('INDBOX_ICON_SET', INDBOX_ASSETS . '/admin/icons/');
     73    define('INDBOX_ADMIN_URL', admin_url('admin-ajax.php'));
     74    define('INDBOX_INTEGRATIONS', INDBOX_INC . '/Integrations');
    7475    require_once INDBOX_PATH . '/vendors/autoload.php';
    75     if ( !class_exists( 'CodeConfig\\IntegrateDropbox\\Base' ) ) {
     76    if (!class_exists('CodeConfig\\IntegrateDropbox\\Base')) {
    7677        require_once INDBOX_INC . '/Base.php';
    7778    }
  • integrate-dropbox/trunk/integrate-dropbox.php

    r3422964 r3422966  
    33namespace CodeConfig\IntegrateDropbox;
    44
    5 defined( 'ABSPATH' ) or exit( 'Hey, what are you doing here? You silly human!' );
     5defined('ABSPATH') or exit('Hey, what are you doing here? You silly human!');
    66/*
    7  * Plugin Name: File Manager for Dropbox PRO
     7 * Plugin Name: File Manager for Dropbox
    88 * Plugin URI:        https://codeconfig.dev/integrate-dropbox/
    99 * Description:       Integrate Dropbox: user-friendly WordPress plugin beautifully displays Dropbox files on posts, pages, & products.
     
    1818 * Domain Path:       /languages
    1919 */
    20 if ( function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' ) ) {
    21     indbox_fs()->set_basename( false, __FILE__ );
     20if (function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) {
     21    indbox_fs()->set_basename(false, __FILE__);
    2222} else {
    23     if ( !function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' ) ) {
    24         function indbox_fs() {
     23    if (!function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) {
     24        function indbox_fs()
     25        {
    2526            global $indbox_fs;
    26             if ( !isset( $indbox_fs ) ) {
    27                 if ( !class_exists( 'Freemius' ) ) {
    28                     require_once dirname( __FILE__ ) . '/freemius/start.php';
     27            if (!isset($indbox_fs)) {
     28                if (!class_exists('Freemius')) {
     29                    require_once dirname(__FILE__) . '/freemius/start.php';
    2930                }
    30                 $indbox_fs = fs_dynamic_init( [
     31                $indbox_fs = fs_dynamic_init([
    3132                    'id'               => '15531',
    3233                    'slug'             => 'integrate-dropbox',
     
    4748                    ],
    4849                    'is_live'          => true,
    49                 ] );
     50                ]);
    5051            }
    5152            return $indbox_fs;
     
    5556        indbox_fs();
    5657        // Signal that SDK was initiated.
    57         do_action( 'indbox_fs_loaded' );
     58        do_action('indbox_fs_loaded');
    5859    }
    5960    //  Define constant
    60     define( 'INDBOX_FILE', __FILE__ );
    61     define( 'INDBOX_VERSION', '1.2.21' );
    62     define( 'INDBOX_PATH', dirname( __FILE__ ) );
    63     define( 'INDBOX_APP', INDBOX_PATH . '/app' );
    64     define( 'INDBOX_URL', plugins_url( '/', __FILE__ ) );
    65     define( 'INDBOX_SLUG', plugin_basename( __FILE__ ) );
    66     define( 'INDBOX_ASSETS', INDBOX_URL . 'assets' );
    67     define( 'INDBOX_INC', INDBOX_PATH . '/includes' );
    68     define( 'INDBOX_VENDOR', INDBOX_PATH . '/vendors' );
    69     define( 'INDBOX_CACHE_DIR', WP_CONTENT_DIR . '/integrate-dropbox-cache/' );
    70     define( 'INDBOX_CACHE_URL', content_url() . '/integrate-dropbox-cache/' );
    71     define( 'INDBOX_ICON_SET', INDBOX_ASSETS . '/admin/icons/' );
    72     define( 'INDBOX_ADMIN_URL', admin_url( 'admin-ajax.php' ) );
    73     define( 'INDBOX_INTEGRATIONS', INDBOX_INC . '/Integrations' );
     61    define('INDBOX_FILE', __FILE__);
     62    define('INDBOX_VERSION', '1.2.21');
     63    define('INDBOX_PATH', dirname(__FILE__));
     64    define('INDBOX_APP', INDBOX_PATH . '/app');
     65    define('INDBOX_URL', plugins_url('/', __FILE__));
     66    define('INDBOX_SLUG', plugin_basename(__FILE__));
     67    define('INDBOX_ASSETS', INDBOX_URL . 'assets');
     68    define('INDBOX_INC', INDBOX_PATH . '/includes');
     69    define('INDBOX_VENDOR', INDBOX_PATH . '/vendors');
     70    define('INDBOX_CACHE_DIR', WP_CONTENT_DIR . '/integrate-dropbox-cache/');
     71    define('INDBOX_CACHE_URL', content_url() . '/integrate-dropbox-cache/');
     72    define('INDBOX_ICON_SET', INDBOX_ASSETS . '/admin/icons/');
     73    define('INDBOX_ADMIN_URL', admin_url('admin-ajax.php'));
     74    define('INDBOX_INTEGRATIONS', INDBOX_INC . '/Integrations');
    7475    require_once INDBOX_PATH . '/vendors/autoload.php';
    75     if ( !class_exists( 'CodeConfig\\IntegrateDropbox\\Base' ) ) {
     76    if (!class_exists('CodeConfig\\IntegrateDropbox\\Base')) {
    7677        require_once INDBOX_INC . '/Base.php';
    7778    }
Note: See TracChangeset for help on using the changeset viewer.