Plugin Directory

Changeset 2952379

Timestamp:
08/11/2023 05:13:09 PM (12 months ago)
Author:
khorshidlab
Message:

Plugin Version 1.2.3

Location:
arvancloud-object-storage
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • arvancloud-object-storage/tags/1.2.3/README.txt

    r2939988 r2952379  
    55Tested up to: 6.2
    66Requires PHP: 7.1
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Changelog ==
     50
     51
     52
     53
    5054= 1.2.2 - 2023-07-18 =
    5155* Some minor improvement on S3, integrations and scheduler
  • arvancloud-object-storage/tags/1.2.3/assets/js/admin.js

    r2871671 r2952379  
    1212            location.reload();
    1313        });
    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                }
    6067            }
    6168        }
    62 
    6369
    6470        $(".toggle-password").click(function() {
  • arvancloud-object-storage/tags/1.2.3/inc/Admin/Admin.php

    r2939988 r2952379  
    552552        $url        = $upload_dir['baseurl'] . '/' . $args['file'];
    553553        $post_id    = attachment_url_to_postid($url);
    554 
     554        if(!file_exists($upload_dir['basedir'] . '/' . $args['file']))
     555            return;
    555556        $this->upload_media_to_storage( $upload_dir['basedir'] . '/' . $args['file'], true );
    556557        (S3Singletone::get_instance())->get_s3client()->putObjectTagging([
     
    573574                if ( $sub_size['file'] != "" ) {
    574575                    $file = $upload_dir['basedir'] . '/' . $path . $sub_size['file'];
    575 
     576                    if(!file_exists($file))
     577                        return;
    576578                    $this->upload_media_to_storage( $file, true );
    577579
  • arvancloud-object-storage/tags/1.2.3/vendor/autoload.php

    r2939988 r2952379  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • arvancloud-object-storage/tags/1.2.3/vendor/composer/autoload_real.php

    r2939988 r2952379  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • arvancloud-object-storage/tags/1.2.3/vendor/composer/autoload_static.php

    r2939988 r2952379  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    11611161    {
    11621162        return \Closure::bind(function () use ($loader) {
    1163             $loader->prefixLengthsPsr4 = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$prefixLengthsPsr4;
    1164             $loader->prefixDirsPsr4 = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$prefixDirsPsr4;
    1165             $loader->classMap = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$classMap;
     1163            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     1164            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     1165            $loader->classMap = ComposerStaticInit::$classMap;
    11661166
    11671167        }, null, ClassLoader::class);
  • arvancloud-object-storage/tags/1.2.3/vendor/composer/installed.php

    r2939988 r2952379  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e0ef31f435aa7c28b5838ac896cc849790d4a525',
     6        'reference' => '',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    5959            'pretty_version' => 'dev-master',
    6060            'version' => 'dev-master',
    61             'reference' => 'e0ef31f435aa7c28b5838ac896cc849790d4a525',
     61            'reference' => '',
    6262            'type' => 'library',
    6363            'install_path' => __DIR__ . '/../../',
  • arvancloud-object-storage/tags/1.2.3/wp-arvancloud-storage.php

    r2939988 r2952379  
    1010 * Plugin URI:        https://www.arvancloud.com/fa/products/cloud-storage
    1111 * 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.2
     12 * Version:           1.2.
    1313 * Author:            Khorshid, ArvanCloud
    1414 * Author URI:        https://www.arvancloud.com/en/products/cloud-storage
     
    2828}
    2929
    30 define( 'ACS_VERSION', '1.2.2' );
     30define( 'ACS_VERSION', '1.2.' );
    3131define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) );
    3232define( 'ACS_SLUG', 'wp-arvancloud-storage');
  • arvancloud-object-storage/trunk/README.txt

    r2939988 r2952379  
    55Tested up to: 6.2
    66Requires PHP: 7.1
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Changelog ==
     50
     51
     52
     53
    5054= 1.2.2 - 2023-07-18 =
    5155* Some minor improvement on S3, integrations and scheduler
  • arvancloud-object-storage/trunk/assets/js/admin.js

    r2871671 r2952379  
    1212            location.reload();
    1313        });
    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                }
    6067            }
    6168        }
    62 
    6369
    6470        $(".toggle-password").click(function() {
  • arvancloud-object-storage/trunk/inc/Admin/Admin.php

    r2939988 r2952379  
    552552        $url        = $upload_dir['baseurl'] . '/' . $args['file'];
    553553        $post_id    = attachment_url_to_postid($url);
    554 
     554        if(!file_exists($upload_dir['basedir'] . '/' . $args['file']))
     555            return;
    555556        $this->upload_media_to_storage( $upload_dir['basedir'] . '/' . $args['file'], true );
    556557        (S3Singletone::get_instance())->get_s3client()->putObjectTagging([
     
    573574                if ( $sub_size['file'] != "" ) {
    574575                    $file = $upload_dir['basedir'] . '/' . $path . $sub_size['file'];
    575 
     576                    if(!file_exists($file))
     577                        return;
    576578                    $this->upload_media_to_storage( $file, true );
    577579
  • arvancloud-object-storage/trunk/vendor/autoload.php

    r2939988 r2952379  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • arvancloud-object-storage/trunk/vendor/composer/autoload_real.php

    r2939988 r2952379  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit8bc6ca30c6a4d93409482fc82d66ba02', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • arvancloud-object-storage/trunk/vendor/composer/autoload_static.php

    r2939988 r2952379  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    11611161    {
    11621162        return \Closure::bind(function () use ($loader) {
    1163             $loader->prefixLengthsPsr4 = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$prefixLengthsPsr4;
    1164             $loader->prefixDirsPsr4 = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$prefixDirsPsr4;
    1165             $loader->classMap = ComposerStaticInit8bc6ca30c6a4d93409482fc82d66ba02::$classMap;
     1163            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     1164            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     1165            $loader->classMap = ComposerStaticInit::$classMap;
    11661166
    11671167        }, null, ClassLoader::class);
  • arvancloud-object-storage/trunk/vendor/composer/installed.php

    r2939988 r2952379  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e0ef31f435aa7c28b5838ac896cc849790d4a525',
     6        'reference' => '',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    5959            'pretty_version' => 'dev-master',
    6060            'version' => 'dev-master',
    61             'reference' => 'e0ef31f435aa7c28b5838ac896cc849790d4a525',
     61            'reference' => '',
    6262            'type' => 'library',
    6363            'install_path' => __DIR__ . '/../../',
  • arvancloud-object-storage/trunk/wp-arvancloud-storage.php

    r2939988 r2952379  
    1010 * Plugin URI:        https://www.arvancloud.com/fa/products/cloud-storage
    1111 * 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.2
     12 * Version:           1.2.
    1313 * Author:            Khorshid, ArvanCloud
    1414 * Author URI:        https://www.arvancloud.com/en/products/cloud-storage
     
    2828}
    2929
    30 define( 'ACS_VERSION', '1.2.2' );
     30define( 'ACS_VERSION', '1.2.' );
    3131define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) );
    3232define( 'ACS_SLUG', 'wp-arvancloud-storage');
Note: See TracChangeset for help on using the changeset viewer.