Changeset 2315282
- Timestamp:
- 05/31/2020 10:33:37 AM (6 years ago)
- Location:
- image4io
- Files:
-
- 9 edited
- 33 copied
-
tags/0.3.3 (copied) (copied from image4io/trunk)
-
tags/0.3.3/assets (copied) (copied from image4io/trunk/assets)
-
tags/0.3.3/assets/img/ajax-loader.gif (copied) (copied from image4io/trunk/assets/img/ajax-loader.gif)
-
tags/0.3.3/assets/img/edit-button.png (copied) (copied from image4io/trunk/assets/img/edit-button.png)
-
tags/0.3.3/assets/js/image4io-mce-button.js (copied) (copied from image4io/trunk/assets/js/image4io-mce-button.js)
-
tags/0.3.3/build (copied) (copied from image4io/trunk/build)
-
tags/0.3.3/composer.json (copied) (copied from image4io/trunk/composer.json)
-
tags/0.3.3/image4io.php (copied) (copied from image4io/trunk/image4io.php) (1 diff)
-
tags/0.3.3/inc (copied) (copied from image4io/trunk/inc)
-
tags/0.3.3/inc/Api/Callbacks/AdminCallbacks.php (copied) (copied from image4io/trunk/inc/Api/Callbacks/AdminCallbacks.php) (1 diff)
-
tags/0.3.3/inc/Api/Image4IOApi.php (copied) (copied from image4io/trunk/inc/Api/Image4IOApi.php) (1 diff)
-
tags/0.3.3/inc/Api/Image4IOManager.php (copied) (copied from image4io/trunk/inc/Api/Image4IOManager.php) (1 diff)
-
tags/0.3.3/inc/Base/BaseController.php (copied) (copied from image4io/trunk/inc/Base/BaseController.php)
-
tags/0.3.3/inc/Base/Enqueue.php (copied) (copied from image4io/trunk/inc/Base/Enqueue.php)
-
tags/0.3.3/inc/Manager/MediaManager.php (copied) (copied from image4io/trunk/inc/Manager/MediaManager.php) (2 diffs)
-
tags/0.3.3/inc/Pages/Admin.php (copied) (copied from image4io/trunk/inc/Pages/Admin.php) (1 diff)
-
tags/0.3.3/index.php (copied) (copied from image4io/trunk/index.php)
-
tags/0.3.3/npm-debug.log (copied) (copied from image4io/trunk/npm-debug.log)
-
tags/0.3.3/package-lock.json (copied) (copied from image4io/trunk/package-lock.json) (1 diff)
-
tags/0.3.3/package.json (copied) (copied from image4io/trunk/package.json) (1 diff)
-
tags/0.3.3/readme.txt (copied) (copied from image4io/trunk/readme.txt) (1 diff)
-
tags/0.3.3/screenshot-1.png (copied) (copied from image4io/trunk/screenshot-1.png)
-
tags/0.3.3/screenshot-2.png (copied) (copied from image4io/trunk/screenshot-2.png)
-
tags/0.3.3/screenshot-3.png (copied) (copied from image4io/trunk/screenshot-3.png)
-
tags/0.3.3/screenshot-4.png (copied) (copied from image4io/trunk/screenshot-4.png)
-
tags/0.3.3/screenshot-5.png (copied) (copied from image4io/trunk/screenshot-5.png)
-
tags/0.3.3/screenshot-6.png (copied) (copied from image4io/trunk/screenshot-6.png)
-
tags/0.3.3/src (copied) (copied from image4io/trunk/src)
-
tags/0.3.3/templates (copied) (copied from image4io/trunk/templates)
-
tags/0.3.3/templates/admin.php (copied) (copied from image4io/trunk/templates/admin.php)
-
tags/0.3.3/templates/loading.php (copied) (copied from image4io/trunk/templates/loading.php)
-
tags/0.3.3/templates/media.php (copied) (copied from image4io/trunk/templates/media.php)
-
tags/0.3.3/vendor (copied) (copied from image4io/trunk/vendor)
-
trunk/image4io.php (modified) (1 diff)
-
trunk/inc/Api/Callbacks/AdminCallbacks.php (modified) (1 diff)
-
trunk/inc/Api/Image4IOApi.php (modified) (1 diff)
-
trunk/inc/Api/Image4IOManager.php (modified) (1 diff)
-
trunk/inc/Manager/MediaManager.php (modified) (2 diffs)
-
trunk/inc/Pages/Admin.php (modified) (1 diff)
-
trunk/package-lock.json (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
image4io/tags/0.3.3/image4io.php
r2315019 r2315282 8 8 Description: Speeds up the images' load time: image optimization, image CDN and image storage, all-in-one platform. To get started: activate the image4io plugin and then go to your Image4io Settings page to set up your credentials. 9 9 Author: image4io 10 Version: 0.3. 210 Version: 0.3.3 11 11 Author URI: https://image4.io 12 12 */ -
image4io/tags/0.3.3/inc/Api/Callbacks/AdminCallbacks.php
r2292451 r2315282 50 50 } 51 51 52 public function image4ioTargetFolder($args){ 53 $name=$args['label_for']; 54 $optionName=$args['option_name']; 55 $options=get_option($optionName); 56 $value=isset($options[$name])?$options[$name]:""; 57 58 echo "<input type='text' id='$name' class='regular-text' name='" . $optionName . "[" . $name . "]' value='$value' placeholder='/'>"; 59 } 52 60 53 61 public function image4ioAutoUpload($args){ -
image4io/tags/0.3.3/inc/Api/Image4IOApi.php
r2292451 r2315282 80 80 } 81 81 82 public function delete File($name){82 public function deleteImage($name){ 83 83 $args= array( 84 84 'headers'=>$this->getHeaders(), 85 'method'=>'DELETE' 85 'method'=>'DELETE', 86 'body'=>json_encode(array( 87 'name'=>$name, 88 )) 86 89 ); 87 $response=wp_remote_request( $this->urlWithVersion . 'delete file?name=' . urlencode($name), $args );90 $response=wp_remote_request( $this->urlWithVersion . 'deleteImage', $args ); 88 91 return $response['body']; 89 92 } -
image4io/tags/0.3.3/inc/Api/Image4IOManager.php
r2261008 r2315282 73 73 return json_decode($result); 74 74 } 75 76 public function deleteImage($name){ 77 if(!$this->isValidOptions()){ 78 return; //redirect to options page? 79 } 80 $result=$this->apiClient->deleteImage($name); 81 return json_decode( $result ); 82 } 75 83 } -
image4io/tags/0.3.3/inc/Manager/MediaManager.php
r2315242 r2315282 354 354 } 355 355 356 $name=$md['image4io_name']; 357 $manager = new Image4IOManager; 358 $manager->setup(); 359 $result = $manager->deleteImage($name); 360 356 361 $this->update_image_src_all($attachment_id, $old_url, $md['original_url']); 357 362 } … … 384 389 $full_path = $this->update_urls_for_ssl($full_path); 385 390 391 $target_path = "/"; 392 $values=get_option( "image4io_settings" ); 393 if(isset($values["target_folder"])){ 394 $target_path=$values["target_folder"]; 395 } 396 386 397 $manager = new Image4IOManager; 387 398 $manager->setup(); 388 $result = $manager->uploadToImage4ioFromUrl($full_path, "/");399 $result = $manager->uploadToImage4ioFromUrl($full_path,$target_path); 389 400 390 401 if(!isset($result->fetchedImage)){ -
image4io/tags/0.3.3/inc/Pages/Admin.php
r2292451 r2315282 108 108 ), 109 109 array( 110 'id' => 'target_folder', 111 'title' => '<div data-tooltip-location="right" data-tooltip="Images will be uploaded to a target folder path e.g. /myWebsite ">Target Folder<span class="dashicons dashicons-info"></span></div>', 112 'callback' => array( $this->callbacks, 'image4ioTargetFolder' ), 113 'page' => 'image4io_plugin', 114 'section' => 'image4io_admin_dashboard_index', 115 'args' => array( 116 'option_name'=>'image4io_settings', 117 'label_for' => 'target_folder' 118 ) 119 ), 120 array( 110 121 'id' => 'auto_upload', 111 122 'title' => '<div data-tooltip-location="right" data-tooltip="If checked, all new images uploaded to the Media Library will be uploaded to image4io Storage">Auto Upload to Image4io<span class="dashicons dashicons-info"></span></div>', -
image4io/tags/0.3.3/package-lock.json
r2315019 r2315282 1 1 { 2 2 "name": "image4io", 3 "version": "0.3. 2",3 "version": "0.3.3", 4 4 "lockfileVersion": 1, 5 5 "requires": true, -
image4io/tags/0.3.3/package.json
r2315019 r2315282 1 1 { 2 2 "name": "image4io", 3 "version": "0.3. 2",3 "version": "0.3.3", 4 4 "description": "image4io Wordpress Plugin. Speeds up the images' load time: image optimization, image CDN and image storage, all-in-one platform.", 5 5 "main": "index.js", -
image4io/tags/0.3.3/readme.txt
r2315019 r2315282 124 124 * Fixed a bug when uploading images to image4io servers. 125 125 126 = 0.3.3 = 127 * Fixed a bug when uploading images to image4io servers. 128 * Added an option of "Target Folder". It will configure your target folder of the image4io Storage. 129 126 130 == UPGRADE NOTICE == 127 131 -
image4io/trunk/image4io.php
r2315019 r2315282 8 8 Description: Speeds up the images' load time: image optimization, image CDN and image storage, all-in-one platform. To get started: activate the image4io plugin and then go to your Image4io Settings page to set up your credentials. 9 9 Author: image4io 10 Version: 0.3. 210 Version: 0.3.3 11 11 Author URI: https://image4.io 12 12 */ -
image4io/trunk/inc/Api/Callbacks/AdminCallbacks.php
r2292451 r2315282 50 50 } 51 51 52 public function image4ioTargetFolder($args){ 53 $name=$args['label_for']; 54 $optionName=$args['option_name']; 55 $options=get_option($optionName); 56 $value=isset($options[$name])?$options[$name]:""; 57 58 echo "<input type='text' id='$name' class='regular-text' name='" . $optionName . "[" . $name . "]' value='$value' placeholder='/'>"; 59 } 52 60 53 61 public function image4ioAutoUpload($args){ -
image4io/trunk/inc/Api/Image4IOApi.php
r2292451 r2315282 80 80 } 81 81 82 public function delete File($name){82 public function deleteImage($name){ 83 83 $args= array( 84 84 'headers'=>$this->getHeaders(), 85 'method'=>'DELETE' 85 'method'=>'DELETE', 86 'body'=>json_encode(array( 87 'name'=>$name, 88 )) 86 89 ); 87 $response=wp_remote_request( $this->urlWithVersion . 'delete file?name=' . urlencode($name), $args );90 $response=wp_remote_request( $this->urlWithVersion . 'deleteImage', $args ); 88 91 return $response['body']; 89 92 } -
image4io/trunk/inc/Api/Image4IOManager.php
r2261008 r2315282 73 73 return json_decode($result); 74 74 } 75 76 public function deleteImage($name){ 77 if(!$this->isValidOptions()){ 78 return; //redirect to options page? 79 } 80 $result=$this->apiClient->deleteImage($name); 81 return json_decode( $result ); 82 } 75 83 } -
image4io/trunk/inc/Manager/MediaManager.php
r2315242 r2315282 354 354 } 355 355 356 $name=$md['image4io_name']; 357 $manager = new Image4IOManager; 358 $manager->setup(); 359 $result = $manager->deleteImage($name); 360 356 361 $this->update_image_src_all($attachment_id, $old_url, $md['original_url']); 357 362 } … … 384 389 $full_path = $this->update_urls_for_ssl($full_path); 385 390 391 $target_path = "/"; 392 $values=get_option( "image4io_settings" ); 393 if(isset($values["target_folder"])){ 394 $target_path=$values["target_folder"]; 395 } 396 386 397 $manager = new Image4IOManager; 387 398 $manager->setup(); 388 $result = $manager->uploadToImage4ioFromUrl($full_path, "/");399 $result = $manager->uploadToImage4ioFromUrl($full_path,$target_path); 389 400 390 401 if(!isset($result->fetchedImage)){ -
image4io/trunk/inc/Pages/Admin.php
r2292451 r2315282 108 108 ), 109 109 array( 110 'id' => 'target_folder', 111 'title' => '<div data-tooltip-location="right" data-tooltip="Images will be uploaded to a target folder path e.g. /myWebsite ">Target Folder<span class="dashicons dashicons-info"></span></div>', 112 'callback' => array( $this->callbacks, 'image4ioTargetFolder' ), 113 'page' => 'image4io_plugin', 114 'section' => 'image4io_admin_dashboard_index', 115 'args' => array( 116 'option_name'=>'image4io_settings', 117 'label_for' => 'target_folder' 118 ) 119 ), 120 array( 110 121 'id' => 'auto_upload', 111 122 'title' => '<div data-tooltip-location="right" data-tooltip="If checked, all new images uploaded to the Media Library will be uploaded to image4io Storage">Auto Upload to Image4io<span class="dashicons dashicons-info"></span></div>', -
image4io/trunk/package-lock.json
r2315019 r2315282 1 1 { 2 2 "name": "image4io", 3 "version": "0.3. 2",3 "version": "0.3.3", 4 4 "lockfileVersion": 1, 5 5 "requires": true, -
image4io/trunk/package.json
r2315019 r2315282 1 1 { 2 2 "name": "image4io", 3 "version": "0.3. 2",3 "version": "0.3.3", 4 4 "description": "image4io Wordpress Plugin. Speeds up the images' load time: image optimization, image CDN and image storage, all-in-one platform.", 5 5 "main": "index.js", -
image4io/trunk/readme.txt
r2315019 r2315282 124 124 * Fixed a bug when uploading images to image4io servers. 125 125 126 = 0.3.3 = 127 * Fixed a bug when uploading images to image4io servers. 128 * Added an option of "Target Folder". It will configure your target folder of the image4io Storage. 129 126 130 == UPGRADE NOTICE == 127 131
Note: See TracChangeset
for help on using the changeset viewer.