Changeset 2952379
- Timestamp:
- 08/11/2023 05:13:09 PM (12 months ago)
- Location:
- arvancloud-object-storage
- Files:
-
- 16 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
arvancloud-object-storage/tags/1.2.3/README.txt
r2939988 r2952379 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.1 7 Stable tag: 1.2. 27 Stable tag: 1.2. 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Changelog == 50 51 52 53 50 54 = 1.2.2 - 2023-07-18 = 51 55 * Some minor improvement on S3, integrations and scheduler -
arvancloud-object-storage/tags/1.2.3/assets/js/admin.js
r2871671 r2952379 12 12 location.reload(); 13 13 }); 14 15 if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') { 16 // Local reference to the WordPress media namespace. 17 var media = wp.media; 18 // Local instance of the Attachment Details TwoColumn used in the edit attachment modal view 19 var wpAttachmentDetailsTwoColumn = media.view.Attachment.Details.TwoColumn; 20 if ( wpAttachmentDetailsTwoColumn !== undefined ) { 21 media.view.Attachment.Details.TwoColumn = wpAttachmentDetailsTwoColumn.extend( { 22 render: function() { 23 // Retrieve the S3 details for the attachment 24 // before we render the view 25 this.fetchS3Details( this.model.get( 'id' ) ); 26 }, 27 28 fetchS3Details: function( id ) { 29 wp.ajax.send( 'acs_get_attachment_provider_details', { 30 data: { 31 _nonce: acs_media.nonces.get_attachment_provider_details, 32 id: id 33 } 34 } ).done( _.bind( this.renderView, this ) ); 35 }, 36 37 renderView: function( response ) { 38 // Render parent media.view.Attachment.Details 39 wpAttachmentDetailsTwoColumn.prototype.render.apply( this ); 40 41 this.renderActionLinks( response ); 42 }, 43 renderActionLinks: function( response ) { 44 var links = ( response && response.links ) || []; 45 var $actionsHtml = this.$el.find( '.actions' ); 46 var $s3Actions = $( '<div />', { 47 'class': 'acs-actions' 48 } ); 49 50 var s3Links = []; 51 _( links ).each( function( link ) { 52 s3Links.push( link ); 53 } ); 54 55 $s3Actions.append( s3Links.join( ' | ' ) ); 56 $actionsHtml.append( $s3Actions ); 57 }, 58 59 } ); 14 if(typeof AR_VOD === 'undefined') { 15 if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') { 16 // Local reference to the WordPress media namespace. 17 18 var media = wp.media; 19 20 // Local instance of the Attachment Details TwoColumn used in the edit attachment modal view 21 var wpAttachmentDetailsTwoColumn = media.view.Attachment.Details.TwoColumn; 22 if (wpAttachmentDetailsTwoColumn !== undefined) { 23 24 media.view.Attachment.Details.TwoColumn = wpAttachmentDetailsTwoColumn.extend({ 25 render: function () { 26 // Retrieve the S3 details for the attachment 27 // before we render the view 28 this.fetchS3Details(this.model.get('id')); 29 }, 30 31 fetchS3Details: function (id) { 32 33 wp.ajax.send('acs_get_attachment_provider_details', { 34 data: { 35 _nonce: acs_media.nonces.get_attachment_provider_details, 36 id: id 37 } 38 }).done(_.bind(this.renderView, this)); 39 40 }, 41 42 renderView: function (response) { 43 console.log(response); 44 // Render parent media.view.Attachment.Details 45 wpAttachmentDetailsTwoColumn.prototype.render.apply( this ); 46 47 this.renderActionLinks(response); 48 }, 49 renderActionLinks: function (response) { 50 var links = (response && response.links) || []; 51 var $actionsHtml = this.$el.find('.actions'); 52 var $s3Actions = $('<div />', { 53 'class': 'acs-actions' 54 }); 55 56 var s3Links = []; 57 _(links).each(function (link) { 58 s3Links.push(link); 59 }); 60 61 $s3Actions.append(s3Links.join(' | ')); 62 $actionsHtml.append($s3Actions); 63 }, 64 65 }); 66 } 60 67 } 61 68 } 62 63 69 64 70 $(".toggle-password").click(function() { -
arvancloud-object-storage/tags/1.2.3/inc/Admin/Admin.php
r2939988 r2952379 552 552 $url = $upload_dir['baseurl'] . '/' . $args['file']; 553 553 $post_id = attachment_url_to_postid($url); 554 554 if(!file_exists($upload_dir['basedir'] . '/' . $args['file'])) 555 return; 555 556 $this->upload_media_to_storage( $upload_dir['basedir'] . '/' . $args['file'], true ); 556 557 (S3Singletone::get_instance())->get_s3client()->putObjectTagging([ … … 573 574 if ( $sub_size['file'] != "" ) { 574 575 $file = $upload_dir['basedir'] . '/' . $path . $sub_size['file']; 575 576 if(!file_exists($file)) 577 return; 576 578 $this->upload_media_to_storage( $file, true ); 577 579 -
arvancloud-object-storage/tags/1.2.3/vendor/autoload.php
r2939988 r2952379 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
arvancloud-object-storage/tags/1.2.3/vendor/composer/autoload_real.php
r2939988 r2952379 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba025 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
arvancloud-object-storage/tags/1.2.3/vendor/composer/autoload_static.php
r2939988 r2952379 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba027 class ComposerStaticInit 8 8 { 9 9 public static $files = array ( … … 1161 1161 { 1162 1162 return \Closure::bind(function () use ($loader) { 1163 $loader->prefixLengthsPsr4 = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$prefixLengthsPsr4;1164 $loader->prefixDirsPsr4 = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$prefixDirsPsr4;1165 $loader->classMap = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$classMap;1163 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 1164 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 1165 $loader->classMap = ComposerStaticInit::$classMap; 1166 1166 1167 1167 }, null, ClassLoader::class); -
arvancloud-object-storage/tags/1.2.3/vendor/composer/installed.php
r2939988 r2952379 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' e0ef31f435aa7c28b5838ac896cc849790d4a525',6 'reference' => '', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-master', 60 60 'version' => 'dev-master', 61 'reference' => ' e0ef31f435aa7c28b5838ac896cc849790d4a525',61 'reference' => '', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../../', -
arvancloud-object-storage/tags/1.2.3/wp-arvancloud-storage.php
r2939988 r2952379 10 10 * Plugin URI: https://www.arvancloud.com/fa/products/cloud-storage 11 11 * Description: Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore. 12 * Version: 1.2. 212 * Version: 1.2. 13 13 * Author: Khorshid, ArvanCloud 14 14 * Author URI: https://www.arvancloud.com/en/products/cloud-storage … … 28 28 } 29 29 30 define( 'ACS_VERSION', '1.2. 2' );30 define( 'ACS_VERSION', '1.2.' ); 31 31 define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) ); 32 32 define( 'ACS_SLUG', 'wp-arvancloud-storage'); -
arvancloud-object-storage/trunk/README.txt
r2939988 r2952379 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.1 7 Stable tag: 1.2. 27 Stable tag: 1.2. 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Changelog == 50 51 52 53 50 54 = 1.2.2 - 2023-07-18 = 51 55 * Some minor improvement on S3, integrations and scheduler -
arvancloud-object-storage/trunk/assets/js/admin.js
r2871671 r2952379 12 12 location.reload(); 13 13 }); 14 15 if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') { 16 // Local reference to the WordPress media namespace. 17 var media = wp.media; 18 // Local instance of the Attachment Details TwoColumn used in the edit attachment modal view 19 var wpAttachmentDetailsTwoColumn = media.view.Attachment.Details.TwoColumn; 20 if ( wpAttachmentDetailsTwoColumn !== undefined ) { 21 media.view.Attachment.Details.TwoColumn = wpAttachmentDetailsTwoColumn.extend( { 22 render: function() { 23 // Retrieve the S3 details for the attachment 24 // before we render the view 25 this.fetchS3Details( this.model.get( 'id' ) ); 26 }, 27 28 fetchS3Details: function( id ) { 29 wp.ajax.send( 'acs_get_attachment_provider_details', { 30 data: { 31 _nonce: acs_media.nonces.get_attachment_provider_details, 32 id: id 33 } 34 } ).done( _.bind( this.renderView, this ) ); 35 }, 36 37 renderView: function( response ) { 38 // Render parent media.view.Attachment.Details 39 wpAttachmentDetailsTwoColumn.prototype.render.apply( this ); 40 41 this.renderActionLinks( response ); 42 }, 43 renderActionLinks: function( response ) { 44 var links = ( response && response.links ) || []; 45 var $actionsHtml = this.$el.find( '.actions' ); 46 var $s3Actions = $( '<div />', { 47 'class': 'acs-actions' 48 } ); 49 50 var s3Links = []; 51 _( links ).each( function( link ) { 52 s3Links.push( link ); 53 } ); 54 55 $s3Actions.append( s3Links.join( ' | ' ) ); 56 $actionsHtml.append( $s3Actions ); 57 }, 58 59 } ); 14 if(typeof AR_VOD === 'undefined') { 15 if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') { 16 // Local reference to the WordPress media namespace. 17 18 var media = wp.media; 19 20 // Local instance of the Attachment Details TwoColumn used in the edit attachment modal view 21 var wpAttachmentDetailsTwoColumn = media.view.Attachment.Details.TwoColumn; 22 if (wpAttachmentDetailsTwoColumn !== undefined) { 23 24 media.view.Attachment.Details.TwoColumn = wpAttachmentDetailsTwoColumn.extend({ 25 render: function () { 26 // Retrieve the S3 details for the attachment 27 // before we render the view 28 this.fetchS3Details(this.model.get('id')); 29 }, 30 31 fetchS3Details: function (id) { 32 33 wp.ajax.send('acs_get_attachment_provider_details', { 34 data: { 35 _nonce: acs_media.nonces.get_attachment_provider_details, 36 id: id 37 } 38 }).done(_.bind(this.renderView, this)); 39 40 }, 41 42 renderView: function (response) { 43 console.log(response); 44 // Render parent media.view.Attachment.Details 45 wpAttachmentDetailsTwoColumn.prototype.render.apply( this ); 46 47 this.renderActionLinks(response); 48 }, 49 renderActionLinks: function (response) { 50 var links = (response && response.links) || []; 51 var $actionsHtml = this.$el.find('.actions'); 52 var $s3Actions = $('<div />', { 53 'class': 'acs-actions' 54 }); 55 56 var s3Links = []; 57 _(links).each(function (link) { 58 s3Links.push(link); 59 }); 60 61 $s3Actions.append(s3Links.join(' | ')); 62 $actionsHtml.append($s3Actions); 63 }, 64 65 }); 66 } 60 67 } 61 68 } 62 63 69 64 70 $(".toggle-password").click(function() { -
arvancloud-object-storage/trunk/inc/Admin/Admin.php
r2939988 r2952379 552 552 $url = $upload_dir['baseurl'] . '/' . $args['file']; 553 553 $post_id = attachment_url_to_postid($url); 554 554 if(!file_exists($upload_dir['basedir'] . '/' . $args['file'])) 555 return; 555 556 $this->upload_media_to_storage( $upload_dir['basedir'] . '/' . $args['file'], true ); 556 557 (S3Singletone::get_instance())->get_s3client()->putObjectTagging([ … … 573 574 if ( $sub_size['file'] != "" ) { 574 575 $file = $upload_dir['basedir'] . '/' . $path . $sub_size['file']; 575 576 if(!file_exists($file)) 577 return; 576 578 $this->upload_media_to_storage( $file, true ); 577 579 -
arvancloud-object-storage/trunk/vendor/autoload.php
r2939988 r2952379 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
arvancloud-object-storage/trunk/vendor/composer/autoload_real.php
r2939988 r2952379 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba025 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
arvancloud-object-storage/trunk/vendor/composer/autoload_static.php
r2939988 r2952379 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba027 class ComposerStaticInit 8 8 { 9 9 public static $files = array ( … … 1161 1161 { 1162 1162 return \Closure::bind(function () use ($loader) { 1163 $loader->prefixLengthsPsr4 = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$prefixLengthsPsr4;1164 $loader->prefixDirsPsr4 = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$prefixDirsPsr4;1165 $loader->classMap = ComposerStaticInit 8bc6ca30c6a4d93409482fc82d66ba02::$classMap;1163 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 1164 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 1165 $loader->classMap = ComposerStaticInit::$classMap; 1166 1166 1167 1167 }, null, ClassLoader::class); -
arvancloud-object-storage/trunk/vendor/composer/installed.php
r2939988 r2952379 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' e0ef31f435aa7c28b5838ac896cc849790d4a525',6 'reference' => '', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-master', 60 60 'version' => 'dev-master', 61 'reference' => ' e0ef31f435aa7c28b5838ac896cc849790d4a525',61 'reference' => '', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../../', -
arvancloud-object-storage/trunk/wp-arvancloud-storage.php
r2939988 r2952379 10 10 * Plugin URI: https://www.arvancloud.com/fa/products/cloud-storage 11 11 * Description: Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore. 12 * Version: 1.2. 212 * Version: 1.2. 13 13 * Author: Khorshid, ArvanCloud 14 14 * Author URI: https://www.arvancloud.com/en/products/cloud-storage … … 28 28 } 29 29 30 define( 'ACS_VERSION', '1.2. 2' );30 define( 'ACS_VERSION', '1.2.' ); 31 31 define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) ); 32 32 define( 'ACS_SLUG', 'wp-arvancloud-storage');
Note: See TracChangeset
for help on using the changeset viewer.