Changeset 3422966
- Timestamp:
- 12/18/2025 02:06:13 PM (3 months ago)
- Location:
- integrate-dropbox
- Files:
-
- 2 edited
-
tags/1.2.21/integrate-dropbox.php (modified) (4 diffs)
-
trunk/integrate-dropbox.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
integrate-dropbox/tags/1.2.21/integrate-dropbox.php
r3422964 r3422966 3 3 namespace CodeConfig\IntegrateDropbox; 4 4 5 defined( 'ABSPATH' ) or exit( 'Hey, what are you doing here? You silly human!');5 defined('ABSPATH') or exit('Hey, what are you doing here? You silly human!'); 6 6 /* 7 * Plugin Name: File Manager for Dropbox PRO7 * Plugin Name: File Manager for Dropbox 8 8 * Plugin URI: https://codeconfig.dev/integrate-dropbox/ 9 9 * Description: Integrate Dropbox: user-friendly WordPress plugin beautifully displays Dropbox files on posts, pages, & products. … … 18 18 * Domain Path: /languages 19 19 */ 20 if ( function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' )) {21 indbox_fs()->set_basename( false, __FILE__);20 if (function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) { 21 indbox_fs()->set_basename(false, __FILE__); 22 22 } 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 { 25 26 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'; 29 30 } 30 $indbox_fs = fs_dynamic_init( [31 $indbox_fs = fs_dynamic_init([ 31 32 'id' => '15531', 32 33 'slug' => 'integrate-dropbox', … … 47 48 ], 48 49 'is_live' => true, 49 ] );50 ]); 50 51 } 51 52 return $indbox_fs; … … 55 56 indbox_fs(); 56 57 // Signal that SDK was initiated. 57 do_action( 'indbox_fs_loaded');58 do_action('indbox_fs_loaded'); 58 59 } 59 60 // 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'); 74 75 require_once INDBOX_PATH . '/vendors/autoload.php'; 75 if ( !class_exists( 'CodeConfig\\IntegrateDropbox\\Base' )) {76 if (!class_exists('CodeConfig\\IntegrateDropbox\\Base')) { 76 77 require_once INDBOX_INC . '/Base.php'; 77 78 } -
integrate-dropbox/trunk/integrate-dropbox.php
r3422964 r3422966 3 3 namespace CodeConfig\IntegrateDropbox; 4 4 5 defined( 'ABSPATH' ) or exit( 'Hey, what are you doing here? You silly human!');5 defined('ABSPATH') or exit('Hey, what are you doing here? You silly human!'); 6 6 /* 7 * Plugin Name: File Manager for Dropbox PRO7 * Plugin Name: File Manager for Dropbox 8 8 * Plugin URI: https://codeconfig.dev/integrate-dropbox/ 9 9 * Description: Integrate Dropbox: user-friendly WordPress plugin beautifully displays Dropbox files on posts, pages, & products. … … 18 18 * Domain Path: /languages 19 19 */ 20 if ( function_exists( '\\CodeConfig\\IntegrateDropbox\\indbox_fs' )) {21 indbox_fs()->set_basename( false, __FILE__);20 if (function_exists('\\CodeConfig\\IntegrateDropbox\\indbox_fs')) { 21 indbox_fs()->set_basename(false, __FILE__); 22 22 } 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 { 25 26 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'; 29 30 } 30 $indbox_fs = fs_dynamic_init( [31 $indbox_fs = fs_dynamic_init([ 31 32 'id' => '15531', 32 33 'slug' => 'integrate-dropbox', … … 47 48 ], 48 49 'is_live' => true, 49 ] );50 ]); 50 51 } 51 52 return $indbox_fs; … … 55 56 indbox_fs(); 56 57 // Signal that SDK was initiated. 57 do_action( 'indbox_fs_loaded');58 do_action('indbox_fs_loaded'); 58 59 } 59 60 // 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'); 74 75 require_once INDBOX_PATH . '/vendors/autoload.php'; 75 if ( !class_exists( 'CodeConfig\\IntegrateDropbox\\Base' )) {76 if (!class_exists('CodeConfig\\IntegrateDropbox\\Base')) { 76 77 require_once INDBOX_INC . '/Base.php'; 77 78 }
Note: See TracChangeset
for help on using the changeset viewer.