Version Description
- 2015-08-17 =
- New: Pro upgrade sidebar
- Bug fix: Create buckets in US standard region causing S3 URLs to 404 errors
Download this release
Release Info
Developer | bradt |
Plugin | WP Offload S3 Lite |
Version | 0.9.3 |
Comparing to | |
See all releases |
Code changes from version 0.9.2 to 0.9.3
- README.md +20 -13
- assets/css/styles.css +1 -1
- assets/sass/styles.scss +50 -16
- classes/amazon-s3-and-cloudfront.php +6 -3
- classes/wp-aws-compatibility-check.php +26 -0
- languages/amazon-s3-and-cloudfront-en.pot +57 -40
- languages/as3cf-pt-br.mo +0 -0
- readme.txt +20 -13
- view/sidebar.php +25 -14
- wordpress-s3.php +2 -2
README.md
CHANGED
@@ -2,33 +2,36 @@
|
|
2 |
**Contributors:** bradt
|
3 |
**Donate link:** https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5VPMGLLK94XJC
|
4 |
**Tags:** uploads, amazon, s3, mirror, admin, media, cdn, cloudfront
|
5 |
-
**Requires at least:** 3.
|
6 |
**Tested up to:** 4.3
|
7 |
-
**Stable tag:** 0.9.
|
8 |
**License:** GPLv3
|
9 |
|
10 |
Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
|
11 |
|
12 |
## Description ##
|
13 |
|
|
|
|
|
14 |
This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon Simple Storage Service](http://aws.amazon.com/s3/) (S3). It then automatically replaces the URL to each media file with their respective S3 URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/), the respective CloudFront URL. Image thumbnails are also copied to S3 and delivered through S3/CloudFront.
|
15 |
|
16 |
Uploading files *directly* to your S3 account is not currently supported by this plugin. They are uploaded to your server first, then copied to S3. There is an option to automatically remove the files from your server once they are copied to S3 however.
|
17 |
|
18 |
If you're adding this plugin to a site that's been around for a while, your existing media files will not be copied or served from S3. Only newly uploaded files will be copied and served from S3.
|
19 |
|
20 |
-
**
|
21 |
-
|
22 |
-
We’re working on a pro version that will include the following features:
|
23 |
|
24 |
-
*
|
25 |
-
*
|
26 |
-
*
|
27 |
-
*
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
*This plugin has been completely rewritten, but was originally a fork of
|
34 |
[Amazon S3 for WordPress with CloudFront](http://wordpress.org/extend/plugins/tantan-s3-cloudfront/)
|
@@ -63,10 +66,14 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
|
|
63 |
|
64 |
## Changelog ##
|
65 |
|
66 |
-
### 0.9.
|
|
|
|
|
|
|
|
|
67 |
* Bug fix: Accidentally released the sidebar for after we launch the pro version
|
68 |
|
69 |
-
### 0.9.1 - 2015-07-29
|
70 |
* Improvement: Access denied sample IAM policy replaced with link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
71 |
* Improvement: Access denied messages on bucket selection or bucket creation now link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
72 |
* Improvement: Object expires time can now be filtered using the `as3cf_object_meta` filter
|
2 |
**Contributors:** bradt
|
3 |
**Donate link:** https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5VPMGLLK94XJC
|
4 |
**Tags:** uploads, amazon, s3, mirror, admin, media, cdn, cloudfront
|
5 |
+
**Requires at least:** 3.7
|
6 |
**Tested up to:** 4.3
|
7 |
+
**Stable tag:** 0.9.3
|
8 |
**License:** GPLv3
|
9 |
|
10 |
Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
|
11 |
|
12 |
## Description ##
|
13 |
|
14 |
+
https://www.youtube.com/watch?v=_PVybEGaRXc
|
15 |
+
|
16 |
This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon Simple Storage Service](http://aws.amazon.com/s3/) (S3). It then automatically replaces the URL to each media file with their respective S3 URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/), the respective CloudFront URL. Image thumbnails are also copied to S3 and delivered through S3/CloudFront.
|
17 |
|
18 |
Uploading files *directly* to your S3 account is not currently supported by this plugin. They are uploaded to your server first, then copied to S3. There is an option to automatically remove the files from your server once they are copied to S3 however.
|
19 |
|
20 |
If you're adding this plugin to a site that's been around for a while, your existing media files will not be copied or served from S3. Only newly uploaded files will be copied and served from S3.
|
21 |
|
22 |
+
**PRO Upgrade with Email Support and More Features**
|
|
|
|
|
23 |
|
24 |
+
* Upload existing Media Library to S3
|
25 |
+
* Find & replace file URLs in content
|
26 |
+
* Control S3 files from the Media Library
|
27 |
+
* [Assets addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#assets-addon) - Serve your CSS & JS from S3/CloudFront
|
28 |
+
* [WooCommerce addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#woocommerce-addon)
|
29 |
+
* [Easy Digital Downloads addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#edd-addon)
|
30 |
+
* PriorityExpert™ email support
|
31 |
|
32 |
+
See the video below or [visit the web site](http://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin) to learn more about the pro version.
|
33 |
|
34 |
+
https://www.youtube.com/watch?v=55xNGnbJ_CY
|
35 |
|
36 |
*This plugin has been completely rewritten, but was originally a fork of
|
37 |
[Amazon S3 for WordPress with CloudFront](http://wordpress.org/extend/plugins/tantan-s3-cloudfront/)
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
+
### 0.9.3 - 2015-08-17 ###
|
70 |
+
* New: Pro upgrade sidebar
|
71 |
+
* Bug fix: Create buckets in US standard region causing S3 URLs to 404 errors
|
72 |
+
|
73 |
+
### 0.9.2 - 2015-07-29 ###
|
74 |
* Bug fix: Accidentally released the sidebar for after we launch the pro version
|
75 |
|
76 |
+
### 0.9.1 - 2015-07-29 ###
|
77 |
* Improvement: Access denied sample IAM policy replaced with link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
78 |
* Improvement: Access denied messages on bucket selection or bucket creation now link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
79 |
* Improvement: Object expires time can now be filtered using the `as3cf_object_meta` filter
|
assets/css/styles.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.aws-main.wrap>h2{float:left}.aws-main.wrap .as3cf-notice,.aws-main.wrap .as3cf-updated,.aws-main.wrap .as3cf-error{margin-bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.aws-main.wrap .as3cf-error.fatal{clear:both;float:left}.aws-main.wrap h2.nav-tab-wrapper{float:none;margin-bottom:0;width:650px;margin-top:10px;padding-left:5px;padding-right:0}.aws-main.wrap h2.nav-tab-wrapper a.nav-tab-active{color:#464646;cursor:default}.aws-main.wrap h2.nav-tab-wrapper a:focus{-webkit-box-shadow:none;box-shadow:none}.aws-main.wrap .error pre{background:#eaeaea;background:rgba(0,0,0,0.07);display:block;padding:10px 15px}.aws-main.wrap .error pre code{padding:0;background:none}.aws-main.wrap[data-tab="support"] .as3cf-notice,.aws-main.wrap[data-tab="support"] .error,.aws-main.wrap[data-tab="support"] .updated,.aws-main.wrap[data-tab="support"] .updated.show{display:none}.aws-main.wrap[data-tab="support"] .fatal .error,.aws-main.wrap[data-tab="support"] .as3cf-notice.important,.aws-main.wrap[data-tab="support"] .dbrains-api-down{display:block}.aws-main.wrap .as3cf-notice,.aws-main.wrap .error,.aws-main.wrap .updated{max-width:650px;margin-top:15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.aws-main.wrap .as3cf-updated{display:none}.aws-main.wrap .as3cf-updated.as3cf-notice,.aws-main.wrap .as3cf-updated.show{display:block}.as3cf-tab .as3cf-main-settings{display:none}.as3cf-tab .as3cf-bucket-container{display:block}.as3cf-tab.as3cf-has-bucket .as3cf-main-settings{display:block}.as3cf-tab.as3cf-has-bucket .as3cf-bucket-container{display:none}.as3cf-tab{display:none;position:relative;width:650px}.as3cf-tab .as3cf-main-settings p{font-size:13px}.as3cf-tab .as3cf-main-settings p a{color:#444}.as3cf-tab .object-prefix-desc em{white-space:nowrap}.as3cf-tab .as3cf-url-preview-wrap{background:#fff;text-align:center;padding:20px 0 0;max-width:650px;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.as3cf-tab .as3cf-url-preview-wrap .as3cf-url-preview{margin-top:10px;padding:0 20px 10px;overflow-x:scroll}.as3cf-tab .as3cf-url-preview-wrap span{color:#aaa;text-transform:uppercase;font-weight:bold}.as3cf-tab .as3cf-ssl p.info{margin-top:10px;padding:0}.as3cf-tab .as3cf-radio-group label{display:block;margin-bottom:10px}.as3cf-tab .as3cf-radio-group label.disabled,.as3cf-tab .as3cf-radio-group label.disabled p{color:#bbbbbb;cursor:default}.as3cf-tab .as3cf-radio-group p{padding-left:25px;color:#6b6b6b;margin:0;font-size:12px}.as3cf-tab .as3cf-radio-group p.as3cf-setting{margin-top:5px}.as3cf-tab .as3cf-switch{position:relative;display:inline-block;padding:2px;overflow:hidden;border-radius:2px;-webkit-border-radius:2px;background-color:#d4d3d3;cursor:pointer}.as3cf-tab .as3cf-switch.on{background-color:#ade7b5}.as3cf-tab .as3cf-switch span{visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:left;display:inline-block;height:100%;font-size:12px;line-height:20px;border-radius:2px;-webkit-border-radius:2px;font-weight:bold;padding:4px 8px;background:#fff;color:#8d8d8d;z-index:1}.as3cf-tab .as3cf-switch span.on{color:#82d78b}.as3cf-tab .as3cf-switch span.checked{visibility:visible}.as3cf-tab .as3cf-switch.disabled{cursor:default;background:#e6e6e6}.as3cf-tab .as3cf-switch.disabled span{background:#f1f1f1;color:#d6d6d6}.as3cf-tab .as3cf-switch input[type="checkbox"]{position:absolute !important;top:0;left:0;opacity:0;filter:alpha(opacity=0);z-index:-1}.as3cf-tab .as3cf-setting.hide{display:none}.as3cf-tab h3{font-weight:normal;text-transform:uppercase;margin:15px 0}.as3cf-tab .form-table{margin:0}.as3cf-tab .form-table tr.as3cf-border-bottom td{border-bottom:1px solid #ddd;padding:20px 0px}.as3cf-tab .form-table tr.as3cf-setting-title td{padding-bottom:0}.as3cf-tab .form-table tr.as3cf-setting-title:first-child td{padding-top:20px}.as3cf-tab .form-table tr td{padding:15px 0}.as3cf-tab .form-table tr td:first-child{vertical-align:top;min-width:120px}.as3cf-tab .form-table h3{padding:0;margin:0}.as3cf-tab .form-table h4{margin:0}.as3cf-tab .as3cf-active-bucket{font-weight:bold;margin-right:10px}.as3cf-tab .tooltip{position:relative;z-index:2;cursor:pointer}.as3cf-tab .tooltip:before,.as3cf-tab .tooltip:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}.as3cf-tab .tooltip:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-250px;padding:10px;width:500px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,0.9);color:#fff;content:attr(data-tooltip);text-align:center;font-size:14px;line-height:1.3}.as3cf-tab .tooltip:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,0.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.as3cf-tab .tooltip:hover:before,.as3cf-tab .tooltip:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}#tab-media{display:block}#tab-media .as3cf-main-settings{display:none}#tab-media .as3cf-bucket-container{display:block}#tab-media.as3cf-has-bucket .as3cf-main-settings{display:block}#tab-media.as3cf-has-bucket .as3cf-bucket-container{display:none}.as3cf-bucket-container h3{line-height:1.3;text-transform:none}.as3cf-bucket-container a:focus{-webkit-box-shadow:none;box-shadow:none;outline:none}.as3cf-bucket-container input[type=text]{box-sizing:border-box;width:100%}.as3cf-bucket-container select{box-sizing:border-box;width:50%}.as3cf-bucket-container .form-table td{padding:5px 0}.as3cf-bucket-container .form-table td:first-child{width:100px;line-height:30px;vertical-align:top}.as3cf-bucket-container .as3cf-invalid-bucket-name{font-size:12px;color:#a00}.as3cf-bucket-container .bucket-actions{margin:15px 0;border-top:1px solid #ccc;padding-top:15px;overflow:hidden}.as3cf-bucket-container .bucket-actions button,.as3cf-bucket-container .bucket-actions .right{float:right;margin-right:0}.as3cf-bucket-container .bucket-actions span{display:inline-block;margin-right:20px;line-height:28px}.as3cf-bucket-container .bucket-actions .bucket-action-cancel{color:#a00;text-decoration:none}.as3cf-bucket-container .bucket-actions .bucket-action-cancel:hover{color:red}.as3cf-bucket-container .as3cf-bucket-list{padding:15px;max-height:200px;overflow-x:hidden;overflow-y:auto;background-color:#fff;font-size:14px}.as3cf-bucket-container .as3cf-bucket-list li:last-of-type{margin-bottom:0}.as3cf-bucket-container .as3cf-bucket-list a{color:#444;text-decoration:none}.as3cf-bucket-container .as3cf-bucket-list a:hover{color:#0074A2}.as3cf-bucket-container .as3cf-bucket-list a.selected{font-weight:bold;color:#0074A2}.as3cf-bucket-container .as3cf-bucket-list a .dashicons{margin-right:5px}.as3cf-bucket-container .as3cf-bucket-select,.as3cf-bucket-container .as3cf-bucket-create{display:none}.as3cf-bucket-container .bucket-actions.select{display:none}.as3cf-tab{display:none}#tab-media{display:block}#tab-support{min-height:900px}#tab-support .as3cf-sidebar{top:11px}#tab-support .support-section{border-bottom:1px solid #ccc;padding-bottom:20px;margin-bottom:20px}#tab-support .debug textarea{width:100%;min-height:200px;font-family:Consolas, Monaco, monospace;margin-bottom:5px}.as3cf-sidebar{position:absolute;top:25px;left:670px;width:292px}.as3cf-sidebar .block{padding:20px;border:1px solid #ccc}.as3cf-sidebar .subscribe{border-top:none}.as3cf-sidebar .subscribe h2{padding:0;margin:0;margin-bottom:0.5em;color:#666;font-size:20px;line-height:1.2em;float:none}.as3cf-sidebar .subscribe h3{font-size:16px;margin:0}.as3cf-sidebar .subscribe p{margin:0}.as3cf-sidebar .subscribe .intro{margin-bottom:1em;line-height:1.4}.as3cf-sidebar .subscribe ul{margin-left:20px;list-style-type:disc}.as3cf-sidebar .subscribe li{line-height:1.4}.as3cf-sidebar .subscribe .links{margin-bottom:2em}.as3cf-sidebar .subscribe .links a{text-decoration:none}.as3cf-sidebar .subscribe .promise{color:#999;font-size:12px;line-height:1.4em}.as3cf-sidebar .subscribe .field{margin-bottom:0.5em}.as3cf-sidebar .subscribe .field p{margin-bottom:0.3em}.as3cf-sidebar .subscribe .field input[type=text],.as3cf-sidebar .subscribe .field input[type=email]{width:100%}.as3cf-sidebar .subscribe .field.submit-button{margin-bottom:1em}.as3cf-sidebar .credits{border-top:0}.as3cf-sidebar .credits h4{font-size:16px;margin-top:0;margin-bottom:10px}.as3cf-sidebar .credits ul{margin:0}.as3cf-sidebar .credits li{overflow:hidden}.as3cf-sidebar .credits li:last-child{margin-bottom:0}.as3cf-sidebar .credits img{float:left;margin-right:10px}.as3cf-sidebar .credits span{float:left;display:block;line-height:32px}.as3cf-sidebar .credits a{display:block;text-decoration:none;color:#444;font-size:16px;text-align:center}.as3cf-sidebar .credits a:hover{color:#888}@media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx){.as3cf-sidebar .as3cf-banner{background-image:url(../img/snail-banner@2x.jpg);background-size:292px 156px;width:292px;height:156px;display:block}.as3cf-sidebar .as3cf-banner img{display:none}}@media screen and (max-width: 1052px){.as3cf-sidebar{position:relative;top:auto;right:auto;margin-top:50px}}.as3cf-banner img{display:block}.aws-compatibility-notice.error{clear:both;margin:5px 20px 5px 0}.as3cf-bucket-error span.title{font-weight:bold}
|
1 |
+
.aws-main.wrap>h2{float:left}.aws-main.wrap .as3cf-notice,.aws-main.wrap .as3cf-updated,.aws-main.wrap .as3cf-error{margin-bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.aws-main.wrap .as3cf-error.fatal{clear:both;float:left}.aws-main.wrap h2.nav-tab-wrapper{float:none;margin-bottom:0;width:650px;margin-top:10px;padding-left:5px;padding-right:0}.aws-main.wrap h2.nav-tab-wrapper a.nav-tab-active{color:#464646;cursor:default}.aws-main.wrap h2.nav-tab-wrapper a:focus{-webkit-box-shadow:none;box-shadow:none}.aws-main.wrap .error pre{background:#eaeaea;background:rgba(0,0,0,0.07);display:block;padding:10px 15px}.aws-main.wrap .error pre code{padding:0;background:none}.aws-main.wrap[data-tab="support"] .as3cf-notice,.aws-main.wrap[data-tab="support"] .error,.aws-main.wrap[data-tab="support"] .updated,.aws-main.wrap[data-tab="support"] .updated.show{display:none}.aws-main.wrap[data-tab="support"] .fatal .error,.aws-main.wrap[data-tab="support"] .as3cf-notice.important,.aws-main.wrap[data-tab="support"] .dbrains-api-down{display:block}.aws-main.wrap .as3cf-notice,.aws-main.wrap .error,.aws-main.wrap .updated{max-width:650px;margin-top:15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.aws-main.wrap .as3cf-updated{display:none}.aws-main.wrap .as3cf-updated.as3cf-notice,.aws-main.wrap .as3cf-updated.show{display:block}.as3cf-tab .as3cf-main-settings{display:none}.as3cf-tab .as3cf-bucket-container{display:block}.as3cf-tab.as3cf-has-bucket .as3cf-main-settings{display:block}.as3cf-tab.as3cf-has-bucket .as3cf-bucket-container{display:none}.as3cf-tab{display:none;position:relative;width:650px}.as3cf-tab .as3cf-main-settings p{font-size:13px}.as3cf-tab .as3cf-main-settings p a{color:#444}.as3cf-tab .object-prefix-desc em{white-space:nowrap}.as3cf-tab .as3cf-url-preview-wrap{background:#fff;text-align:center;padding:20px 0 0;max-width:650px;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.as3cf-tab .as3cf-url-preview-wrap .as3cf-url-preview{margin-top:10px;padding:0 20px 10px;overflow-x:scroll}.as3cf-tab .as3cf-url-preview-wrap span{color:#aaa;text-transform:uppercase;font-weight:bold}.as3cf-tab .as3cf-ssl p.info{margin-top:10px;padding:0}.as3cf-tab .as3cf-radio-group label{display:block;margin-bottom:10px}.as3cf-tab .as3cf-radio-group label.disabled,.as3cf-tab .as3cf-radio-group label.disabled p{color:#bbbbbb;cursor:default}.as3cf-tab .as3cf-radio-group p{padding-left:25px;color:#6b6b6b;margin:0;font-size:12px}.as3cf-tab .as3cf-radio-group p.as3cf-setting{margin-top:5px}.as3cf-tab .as3cf-switch{position:relative;display:inline-block;padding:2px;overflow:hidden;border-radius:2px;-webkit-border-radius:2px;background-color:#d4d3d3;cursor:pointer}.as3cf-tab .as3cf-switch.on{background-color:#ade7b5}.as3cf-tab .as3cf-switch span{visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:left;display:inline-block;height:100%;font-size:12px;line-height:20px;border-radius:2px;-webkit-border-radius:2px;font-weight:bold;padding:4px 8px;background:#fff;color:#8d8d8d;z-index:1}.as3cf-tab .as3cf-switch span.on{color:#82d78b}.as3cf-tab .as3cf-switch span.checked{visibility:visible}.as3cf-tab .as3cf-switch.disabled{cursor:default;background:#e6e6e6}.as3cf-tab .as3cf-switch.disabled span{background:#f1f1f1;color:#d6d6d6}.as3cf-tab .as3cf-switch input[type="checkbox"]{position:absolute !important;top:0;left:0;opacity:0;filter:alpha(opacity=0);z-index:-1}.as3cf-tab .as3cf-setting.hide{display:none}.as3cf-tab h3{font-weight:normal;text-transform:uppercase;margin:15px 0}.as3cf-tab .form-table{margin:0}.as3cf-tab .form-table tr.as3cf-border-bottom td{border-bottom:1px solid #ddd;padding:20px 0px}.as3cf-tab .form-table tr.as3cf-setting-title td{padding-bottom:0}.as3cf-tab .form-table tr.as3cf-setting-title:first-child td{padding-top:20px}.as3cf-tab .form-table tr td{padding:15px 0}.as3cf-tab .form-table tr td:first-child{vertical-align:top;min-width:120px}.as3cf-tab .form-table h3{padding:0;margin:0}.as3cf-tab .form-table h4{margin:0}.as3cf-tab .as3cf-active-bucket{font-weight:bold;margin-right:10px}.as3cf-tab .tooltip{position:relative;z-index:2;cursor:pointer}.as3cf-tab .tooltip:before,.as3cf-tab .tooltip:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}.as3cf-tab .tooltip:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-250px;padding:10px;width:500px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,0.9);color:#fff;content:attr(data-tooltip);text-align:center;font-size:14px;line-height:1.3}.as3cf-tab .tooltip:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,0.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.as3cf-tab .tooltip:hover:before,.as3cf-tab .tooltip:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}#tab-media{display:block}#tab-media .as3cf-main-settings{display:none}#tab-media .as3cf-bucket-container{display:block}#tab-media.as3cf-has-bucket .as3cf-main-settings{display:block}#tab-media.as3cf-has-bucket .as3cf-bucket-container{display:none}.as3cf-bucket-container h3{line-height:1.3;text-transform:none}.as3cf-bucket-container a:focus{-webkit-box-shadow:none;box-shadow:none;outline:none}.as3cf-bucket-container input[type=text]{box-sizing:border-box;width:100%}.as3cf-bucket-container select{box-sizing:border-box;width:50%}.as3cf-bucket-container .form-table td{padding:5px 0}.as3cf-bucket-container .form-table td:first-child{width:100px;line-height:30px;vertical-align:top}.as3cf-bucket-container .as3cf-invalid-bucket-name{font-size:12px;color:#a00}.as3cf-bucket-container .bucket-actions{margin:15px 0;border-top:1px solid #ccc;padding-top:15px;overflow:hidden}.as3cf-bucket-container .bucket-actions button,.as3cf-bucket-container .bucket-actions .right{float:right;margin-right:0}.as3cf-bucket-container .bucket-actions span{display:inline-block;margin-right:20px;line-height:28px}.as3cf-bucket-container .bucket-actions .bucket-action-cancel{color:#a00;text-decoration:none}.as3cf-bucket-container .bucket-actions .bucket-action-cancel:hover{color:red}.as3cf-bucket-container .as3cf-bucket-list{padding:15px;max-height:200px;overflow-x:hidden;overflow-y:auto;background-color:#fff;font-size:14px}.as3cf-bucket-container .as3cf-bucket-list li:last-of-type{margin-bottom:0}.as3cf-bucket-container .as3cf-bucket-list a{color:#444;text-decoration:none}.as3cf-bucket-container .as3cf-bucket-list a:hover{color:#0074A2}.as3cf-bucket-container .as3cf-bucket-list a.selected{font-weight:bold;color:#0074A2}.as3cf-bucket-container .as3cf-bucket-list a .dashicons{margin-right:5px}.as3cf-bucket-container .as3cf-bucket-select,.as3cf-bucket-container .as3cf-bucket-create{display:none}.as3cf-bucket-container .bucket-actions.select{display:none}.as3cf-tab{display:none}#tab-media{display:block}#tab-support{min-height:900px}#tab-support .as3cf-sidebar{top:11px}#tab-support .support-section{border-bottom:1px solid #ccc;padding-bottom:20px;margin-bottom:20px}#tab-support .debug textarea{width:100%;min-height:200px;font-family:Consolas, Monaco, monospace;margin-bottom:5px}.as3cf-sidebar{position:absolute;top:25px;left:670px;width:292px}.as3cf-sidebar .block{padding:20px;border:1px solid #ccc}.as3cf-sidebar .subscribe{border-top:none}.as3cf-sidebar .subscribe h2{padding:0;margin:0;margin-bottom:0.5em;color:#666;font-size:20px;line-height:1.2em;float:none}.as3cf-sidebar .subscribe h3{font-size:16px;margin:0}.as3cf-sidebar .subscribe p{margin:0}.as3cf-sidebar .subscribe .intro{margin-bottom:1em;line-height:1.4}.as3cf-sidebar .subscribe li{line-height:1.4}.as3cf-sidebar .subscribe .links{margin-bottom:2em}.as3cf-sidebar .subscribe .links a{text-decoration:none}.as3cf-sidebar .subscribe .promise{color:#999;font-size:12px;line-height:1.4em}.as3cf-sidebar .subscribe .field{margin-bottom:0.5em}.as3cf-sidebar .subscribe .field p{margin-bottom:0.3em}.as3cf-sidebar .subscribe .field input[type=text],.as3cf-sidebar .subscribe .field input[type=email]{width:100%}.as3cf-sidebar .subscribe .field.submit-button{margin-bottom:1em}.as3cf-sidebar .credits{border-top:0}.as3cf-sidebar .credits h4{font-size:16px;margin-top:0;margin-bottom:10px}.as3cf-sidebar .credits ul{margin:0}.as3cf-sidebar .credits li{overflow:hidden}.as3cf-sidebar .credits li:last-child{margin-bottom:0}.as3cf-sidebar .credits img{float:left;margin-right:10px}.as3cf-sidebar .credits span{float:left;display:block;line-height:32px}.as3cf-sidebar .credits a{display:block;text-decoration:none;color:#444;font-size:16px;text-align:center}.as3cf-sidebar .credits a:hover{color:#888}@media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx){.as3cf-sidebar .as3cf-banner{background-image:url(../img/snail-banner@2x.jpg);background-size:292px 156px}}@media screen and (max-width: 1052px){.as3cf-sidebar{position:relative;top:auto;right:auto;margin-top:50px}}.as3cf-banner{margin-top:28px;width:292px;height:156px;display:block;background-image:url(../img/snail-banner.jpg);position:relative}.as3cf-banner h1{font-size:28px;color:#fff;font-weight:200;margin:0;position:absolute;bottom:25px;left:20px;text-decoration:none}.as3cf-upgrade-details{background-color:#73833b;padding:20px;color:#fff;font-size:13px;margin:0;display:block;text-decoration:none}.as3cf-upgrade-details p{margin:0}.as3cf-upgrade-details a{color:#fff;font-weight:bold;text-decoration:none;font-size:16px}.as3cf-upgrade-details a:hover{color:#fff;opacity:0.9}.as3cf-upgrade-details ul{margin-top:0;margin-left:16px;list-style-type:disc}.aws-compatibility-notice.error{clear:both;margin:5px 20px 5px 0}.as3cf-bucket-error span.title{font-weight:bold}
|
assets/sass/styles.scss
CHANGED
@@ -550,11 +550,6 @@
|
|
550 |
line-height: 1.4;
|
551 |
}
|
552 |
|
553 |
-
ul {
|
554 |
-
margin-left: 20px;
|
555 |
-
list-style-type: disc;
|
556 |
-
}
|
557 |
-
|
558 |
li {
|
559 |
line-height: 1.4;
|
560 |
}
|
@@ -642,15 +637,8 @@
|
|
642 |
(min-resolution: 1.3dppx) {
|
643 |
|
644 |
.as3cf-banner {
|
645 |
-
|
646 |
-
|
647 |
-
width: 292px;
|
648 |
-
height: 156px;
|
649 |
-
display: block;
|
650 |
-
|
651 |
-
img {
|
652 |
-
display: none;
|
653 |
-
}
|
654 |
}
|
655 |
}
|
656 |
|
@@ -666,8 +654,54 @@
|
|
666 |
* Misc
|
667 |
*/
|
668 |
.as3cf-banner {
|
669 |
-
|
670 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
671 |
}
|
672 |
}
|
673 |
|
550 |
line-height: 1.4;
|
551 |
}
|
552 |
|
|
|
|
|
|
|
|
|
|
|
553 |
li {
|
554 |
line-height: 1.4;
|
555 |
}
|
637 |
(min-resolution: 1.3dppx) {
|
638 |
|
639 |
.as3cf-banner {
|
640 |
+
background-image: url(../img/snail-banner@2x.jpg);
|
641 |
+
background-size: 292px 156px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
642 |
}
|
643 |
}
|
644 |
|
654 |
* Misc
|
655 |
*/
|
656 |
.as3cf-banner {
|
657 |
+
margin-top: 28px;
|
658 |
+
width: 292px;
|
659 |
+
height: 156px;
|
660 |
+
display: block;
|
661 |
+
background-image: url(../img/snail-banner.jpg);
|
662 |
+
position: relative;
|
663 |
+
|
664 |
+
h1 {
|
665 |
+
font-size: 28px;
|
666 |
+
color: #fff;
|
667 |
+
font-weight: 200;
|
668 |
+
margin: 0;
|
669 |
+
position: absolute;
|
670 |
+
bottom: 25px;
|
671 |
+
left: 20px;
|
672 |
+
text-decoration: none;
|
673 |
+
}
|
674 |
+
}
|
675 |
+
|
676 |
+
.as3cf-upgrade-details {
|
677 |
+
background-color: #73833b;
|
678 |
+
padding: 20px;
|
679 |
+
color: #fff;
|
680 |
+
font-size: 13px;
|
681 |
+
margin: 0;
|
682 |
+
display: block;
|
683 |
+
text-decoration: none;
|
684 |
+
|
685 |
+
p {
|
686 |
+
margin: 0;
|
687 |
+
}
|
688 |
+
|
689 |
+
a {
|
690 |
+
color: #fff;
|
691 |
+
font-weight: bold;
|
692 |
+
text-decoration: none;
|
693 |
+
font-size: 16px;
|
694 |
+
|
695 |
+
&:hover {
|
696 |
+
color: #fff;
|
697 |
+
opacity: 0.9;
|
698 |
+
}
|
699 |
+
}
|
700 |
+
|
701 |
+
ul {
|
702 |
+
margin-top: 0;
|
703 |
+
margin-left: 16px;
|
704 |
+
list-style-type: disc;
|
705 |
}
|
706 |
}
|
707 |
|
classes/amazon-s3-and-cloudfront.php
CHANGED
@@ -1003,10 +1003,9 @@ class Amazon_S3_And_CloudFront extends AWS_Plugin_Base {
|
|
1003 |
|
1004 |
// We don't use $this->get_s3object_region() here because we don't want
|
1005 |
// to make an AWS API call and slow down page loading
|
1006 |
-
if ( isset( $s3object['region'] ) ) {
|
1007 |
$region = $this->translate_region( $s3object['region'] );
|
1008 |
-
}
|
1009 |
-
else {
|
1010 |
$region = '';
|
1011 |
}
|
1012 |
|
@@ -1358,6 +1357,10 @@ class Amazon_S3_And_CloudFront extends AWS_Plugin_Base {
|
|
1358 |
}
|
1359 |
}
|
1360 |
|
|
|
|
|
|
|
|
|
1361 |
$this->set_setting( 'region', $region );
|
1362 |
|
1363 |
if ( $manual ) {
|
1003 |
|
1004 |
// We don't use $this->get_s3object_region() here because we don't want
|
1005 |
// to make an AWS API call and slow down page loading
|
1006 |
+
if ( isset( $s3object['region'] ) && self::DEFAULT_REGION !== $s3object['region'] ) {
|
1007 |
$region = $this->translate_region( $s3object['region'] );
|
1008 |
+
} else {
|
|
|
1009 |
$region = '';
|
1010 |
}
|
1011 |
|
1357 |
}
|
1358 |
}
|
1359 |
|
1360 |
+
if ( self::DEFAULT_REGION === $region ) {
|
1361 |
+
$region = '';
|
1362 |
+
}
|
1363 |
+
|
1364 |
$this->set_setting( 'region', $region );
|
1365 |
|
1366 |
if ( $manual ) {
|
classes/wp-aws-compatibility-check.php
CHANGED
@@ -440,5 +440,31 @@ if ( ! class_exists( 'WP_AWS_Compatibility_Check' ) ) {
|
|
440 |
function render_notice( $message ) {
|
441 |
printf( '<div class="' . $this->notice_class . ' aws-compatibility-notice"><p>%s</p></div>', $message );
|
442 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
}
|
444 |
}
|
440 |
function render_notice( $message ) {
|
441 |
printf( '<div class="' . $this->notice_class . ' aws-compatibility-notice"><p>%s</p></div>', $message );
|
442 |
}
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Is the current process an install or upgrade of plugin(s)
|
446 |
+
*
|
447 |
+
* @return bool
|
448 |
+
*/
|
449 |
+
public static function is_installing_or_updating_plugins() {
|
450 |
+
global $pagenow;
|
451 |
+
|
452 |
+
if ( 'update.php' === $pagenow && isset( $_GET['action'] ) && 'install-plugin' === $_GET['action'] ) {
|
453 |
+
// We are installing a plugin
|
454 |
+
return true;
|
455 |
+
}
|
456 |
+
|
457 |
+
if ( 'plugins.php' === $pagenow && isset( $_POST['action'] ) && 'update-selected' === $_POST['action'] ) {
|
458 |
+
// We are updating plugins from the plugin page
|
459 |
+
return true;
|
460 |
+
}
|
461 |
+
|
462 |
+
if ( 'update-core.php' === $pagenow && isset( $_GET['action'] ) && 'do-plugin-upgrade' === $_GET['action'] ) {
|
463 |
+
// We are updating plugins from the updates page
|
464 |
+
return true;
|
465 |
+
}
|
466 |
+
|
467 |
+
return false;
|
468 |
+
}
|
469 |
}
|
470 |
}
|
languages/amazon-s3-and-cloudfront-en.pot
CHANGED
@@ -8,13 +8,13 @@ msgid ""
|
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: amazon-s3-and-cloudfront\n"
|
10 |
"Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
|
11 |
-
"POT-Creation-Date: 2015-
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"Language: \n"
|
16 |
"MIME-Version: 1.0\n"
|
17 |
-
"Content-Type: text/plain; charset=
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
|
20 |
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:84
|
@@ -40,93 +40,93 @@ msgstr ""
|
|
40 |
msgid "Error uploading %s to S3: %s"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
44 |
msgid "Cheatin’ eh?"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
48 |
msgid "You do not have sufficient permissions to access this page."
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
52 |
msgid "No bucket name provided."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
56 |
#, php-format
|
57 |
msgid "There was an error attempting to get the region of the bucket %s: %s"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
61 |
msgid ""
|
62 |
"This is a test file to check if the user has write permission to S3. Delete "
|
63 |
"me if found."
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
67 |
#, php-format
|
68 |
msgid ""
|
69 |
"There was an error attempting to check the permissions of the bucket %s: %s"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
73 |
msgid "Error creating bucket"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
77 |
msgid "Bucket name too short."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
81 |
msgid "Bucket name too long."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
85 |
msgid ""
|
86 |
"Invalid character. Bucket names can contain lowercase letters, numbers, "
|
87 |
"periods and hyphens."
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
91 |
msgid "Error saving bucket"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
95 |
msgid "Error fetching buckets"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
99 |
msgid "Error getting URL preview: "
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
103 |
msgid "The changes you made will be lost if you navigate away from this page"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
107 |
msgid "Cheatin' eh?"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
111 |
msgctxt "Show the media library tab"
|
112 |
msgid "Media Library"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
116 |
msgctxt "Show the support tab"
|
117 |
msgid "Support"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
121 |
#, php-format
|
122 |
msgid "The file %s has been given %s permissions on Amazon S3."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
126 |
msgid "Quick Start Guide"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
130 |
#, php-format
|
131 |
msgid ""
|
132 |
"Looks like we don't have write access to this bucket. It's likely that the "
|
@@ -135,7 +135,7 @@ msgid ""
|
|
135 |
"correctly."
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:
|
139 |
#, php-format
|
140 |
msgid ""
|
141 |
"Looks like we don't have access to the buckets. It's likely that the user "
|
@@ -518,49 +518,66 @@ msgstr ""
|
|
518 |
msgid "Save Changes"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
522 |
-
msgid "
|
523 |
msgstr ""
|
524 |
|
525 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:11
|
526 |
-
msgid ""
|
527 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
msgstr ""
|
529 |
|
530 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:15
|
531 |
-
msgid "
|
532 |
msgstr ""
|
533 |
|
534 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:16
|
535 |
-
msgid "
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
539 |
-
msgid ""
|
540 |
-
|
|
|
|
|
|
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
544 |
-
|
|
|
|
|
|
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
548 |
msgid "Your Email"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
552 |
msgid "First Name"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
556 |
msgid "Last Name"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
560 |
-
msgid "Send me
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:
|
564 |
msgid ""
|
565 |
"We promise we will not use your email for anything else and you can "
|
566 |
"unsubscribe with 1-click anytime."
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: amazon-s3-and-cloudfront\n"
|
10 |
"Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
|
11 |
+
"POT-Creation-Date: 2015-08-17 15:41-0300\n"
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"Language: \n"
|
16 |
"MIME-Version: 1.0\n"
|
17 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
|
20 |
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:84
|
40 |
msgid "Error uploading %s to S3: %s"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1173
|
44 |
msgid "Cheatin’ eh?"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1177
|
48 |
msgid "You do not have sufficient permissions to access this page."
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1183
|
52 |
msgid "No bucket name provided."
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1455
|
56 |
#, php-format
|
57 |
msgid "There was an error attempting to get the region of the bucket %s: %s"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1575
|
61 |
msgid ""
|
62 |
"This is a test file to check if the user has write permission to S3. Delete "
|
63 |
"me if found."
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1607
|
67 |
#, php-format
|
68 |
msgid ""
|
69 |
"There was an error attempting to check the permissions of the bucket %s: %s"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1665
|
73 |
msgid "Error creating bucket"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1666
|
77 |
msgid "Bucket name too short."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1667
|
81 |
msgid "Bucket name too long."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1668
|
85 |
msgid ""
|
86 |
"Invalid character. Bucket names can contain lowercase letters, numbers, "
|
87 |
"periods and hyphens."
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1669
|
91 |
msgid "Error saving bucket"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1670
|
95 |
msgid "Error fetching buckets"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1671
|
99 |
msgid "Error getting URL preview: "
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1672
|
103 |
msgid "The changes you made will be lost if you navigate away from this page"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1730
|
107 |
msgid "Cheatin' eh?"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1833
|
111 |
msgctxt "Show the media library tab"
|
112 |
msgid "Media Library"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1834
|
116 |
msgctxt "Show the support tab"
|
117 |
msgid "Support"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:1970
|
121 |
#, php-format
|
122 |
msgid "The file %s has been given %s permissions on Amazon S3."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:2430
|
126 |
msgid "Quick Start Guide"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:2432
|
130 |
#, php-format
|
131 |
msgid ""
|
132 |
"Looks like we don't have write access to this bucket. It's likely that the "
|
135 |
"correctly."
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: builds/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php:2434
|
139 |
#, php-format
|
140 |
msgid ""
|
141 |
"Looks like we don't have access to the buckets. It's likely that the user "
|
518 |
msgid "Save Changes"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:10
|
522 |
+
msgid "Upload existing Media Library to S3"
|
523 |
msgstr ""
|
524 |
|
525 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:11
|
526 |
+
msgid "Find & replace file URLs in content"
|
527 |
+
msgstr ""
|
528 |
+
|
529 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:12
|
530 |
+
msgid "Manage S3 files in WordPress"
|
531 |
+
msgstr ""
|
532 |
+
|
533 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:13
|
534 |
+
msgid "Assets addon - Serve your CSS & JS from S3/CloudFront"
|
535 |
+
msgstr ""
|
536 |
+
|
537 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:14
|
538 |
+
msgid "WooCommerce addon"
|
539 |
msgstr ""
|
540 |
|
541 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:15
|
542 |
+
msgid "Easy Digital Downloads addon"
|
543 |
msgstr ""
|
544 |
|
545 |
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:16
|
546 |
+
msgid "PriorityExpert™ email support"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:19
|
550 |
+
msgid "Visit deliciousbrains.com →"
|
551 |
+
msgstr ""
|
552 |
+
|
553 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:26
|
554 |
+
msgid "Get 20% Off!"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:29
|
558 |
+
#, php-format
|
559 |
+
msgid ""
|
560 |
+
"Submit your name and email and we’ll send you a coupon for 20% off your "
|
561 |
+
"upgrade."
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:33
|
565 |
msgid "Your Email"
|
566 |
msgstr ""
|
567 |
|
568 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:37
|
569 |
msgid "First Name"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:41
|
573 |
msgid "Last Name"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:48
|
577 |
+
msgid "Send me the coupon"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: builds/amazon-s3-and-cloudfront/view/sidebar.php:52
|
581 |
msgid ""
|
582 |
"We promise we will not use your email for anything else and you can "
|
583 |
"unsubscribe with 1-click anytime."
|
languages/as3cf-pt-br.mo
ADDED
Binary file
|
readme.txt
CHANGED
@@ -2,33 +2,36 @@
|
|
2 |
Contributors: bradt
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5VPMGLLK94XJC
|
4 |
Tags: uploads, amazon, s3, mirror, admin, media, cdn, cloudfront
|
5 |
-
Requires at least: 3.
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv3
|
9 |
|
10 |
Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
|
11 |
|
12 |
== Description ==
|
13 |
|
|
|
|
|
14 |
This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon Simple Storage Service](http://aws.amazon.com/s3/) (S3). It then automatically replaces the URL to each media file with their respective S3 URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/), the respective CloudFront URL. Image thumbnails are also copied to S3 and delivered through S3/CloudFront.
|
15 |
|
16 |
Uploading files *directly* to your S3 account is not currently supported by this plugin. They are uploaded to your server first, then copied to S3. There is an option to automatically remove the files from your server once they are copied to S3 however.
|
17 |
|
18 |
If you're adding this plugin to a site that's been around for a while, your existing media files will not be copied or served from S3. Only newly uploaded files will be copied and served from S3.
|
19 |
|
20 |
-
**
|
21 |
-
|
22 |
-
We’re working on a pro version that will include the following features:
|
23 |
|
24 |
-
*
|
25 |
-
*
|
26 |
-
*
|
27 |
-
*
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
*This plugin has been completely rewritten, but was originally a fork of
|
34 |
[Amazon S3 for WordPress with CloudFront](http://wordpress.org/extend/plugins/tantan-s3-cloudfront/)
|
@@ -59,10 +62,14 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
-
= 0.9.
|
|
|
|
|
|
|
|
|
63 |
* Bug fix: Accidentally released the sidebar for after we launch the pro version
|
64 |
|
65 |
-
= 0.9.1 - 2015-07-29
|
66 |
* Improvement: Access denied sample IAM policy replaced with link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
67 |
* Improvement: Access denied messages on bucket selection or bucket creation now link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
68 |
* Improvement: Object expires time can now be filtered using the `as3cf_object_meta` filter
|
2 |
Contributors: bradt
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5VPMGLLK94XJC
|
4 |
Tags: uploads, amazon, s3, mirror, admin, media, cdn, cloudfront
|
5 |
+
Requires at least: 3.7
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 0.9.3
|
8 |
License: GPLv3
|
9 |
|
10 |
Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
https://www.youtube.com/watch?v=_PVybEGaRXc
|
15 |
+
|
16 |
This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon Simple Storage Service](http://aws.amazon.com/s3/) (S3). It then automatically replaces the URL to each media file with their respective S3 URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/), the respective CloudFront URL. Image thumbnails are also copied to S3 and delivered through S3/CloudFront.
|
17 |
|
18 |
Uploading files *directly* to your S3 account is not currently supported by this plugin. They are uploaded to your server first, then copied to S3. There is an option to automatically remove the files from your server once they are copied to S3 however.
|
19 |
|
20 |
If you're adding this plugin to a site that's been around for a while, your existing media files will not be copied or served from S3. Only newly uploaded files will be copied and served from S3.
|
21 |
|
22 |
+
**PRO Upgrade with Email Support and More Features**
|
|
|
|
|
23 |
|
24 |
+
* Upload existing Media Library to S3
|
25 |
+
* Find & replace file URLs in content
|
26 |
+
* Control S3 files from the Media Library
|
27 |
+
* [Assets addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#assets-addon) - Serve your CSS & JS from S3/CloudFront
|
28 |
+
* [WooCommerce addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#woocommerce-addon)
|
29 |
+
* [Easy Digital Downloads addon](https://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin#edd-addon)
|
30 |
+
* PriorityExpert™ email support
|
31 |
|
32 |
+
See the video below or [visit the web site](http://deliciousbrains.com/wp-offload-s3/?utm_source=wordpress.org&utm_medium=web&utm_content=desc&utm_campaign=freeplugin) to learn more about the pro version.
|
33 |
|
34 |
+
https://www.youtube.com/watch?v=55xNGnbJ_CY
|
35 |
|
36 |
*This plugin has been completely rewritten, but was originally a fork of
|
37 |
[Amazon S3 for WordPress with CloudFront](http://wordpress.org/extend/plugins/tantan-s3-cloudfront/)
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 0.9.3 - 2015-08-17 =
|
66 |
+
* New: Pro upgrade sidebar
|
67 |
+
* Bug fix: Create buckets in US standard region causing S3 URLs to 404 errors
|
68 |
+
|
69 |
+
= 0.9.2 - 2015-07-29 =
|
70 |
* Bug fix: Accidentally released the sidebar for after we launch the pro version
|
71 |
|
72 |
+
= 0.9.1 - 2015-07-29 =
|
73 |
* Improvement: Access denied sample IAM policy replaced with link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
74 |
* Improvement: Access denied messages on bucket selection or bucket creation now link to [Quick Start Guide](https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/)
|
75 |
* Improvement: Object expires time can now be filtered using the `as3cf_object_meta` filter
|
view/sidebar.php
CHANGED
@@ -1,23 +1,34 @@
|
|
1 |
<div class="as3cf-sidebar">
|
2 |
|
3 |
-
<
|
|
|
|
|
4 |
|
5 |
-
<
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
|
|
8 |
<?php $user = wp_get_current_user(); ?>
|
9 |
|
|
|
|
|
10 |
<p class="intro">
|
11 |
-
<?php echo wptexturize( __(
|
12 |
</p>
|
13 |
|
14 |
-
<ul>
|
15 |
-
<li><?php echo wptexturize( __( 'Copy existing Media Library to S3', 'as3cf' ) ); // xss ok ?></li>
|
16 |
-
<li><?php echo wptexturize( __( 'Serve theme JS & CSS from S3/CloudFront', 'as3cf' ) ); // xss ok ?></li>
|
17 |
-
<li><?php echo wptexturize( __( 'WooCommerce & <abbr title="Easy Digital Downloads">EDD</abbr> integration', 'as3cf' ) ); // xss ok ?></li>
|
18 |
-
<li><?php echo wptexturize( __( 'Awesome email support', 'as3cf' ) ); // xss ok ?></li>
|
19 |
-
</ul>
|
20 |
-
|
21 |
<div class="field">
|
22 |
<input type="email" name="email" value="<?php echo esc_attr( $user->user_email ); ?>" placeholder="<?php _e( 'Your Email', 'as3cf' ); ?>"/>
|
23 |
</div>
|
@@ -30,11 +41,11 @@
|
|
30 |
<input type="text" name="last_name" value="<?php echo esc_attr( trim( $user->last_name ) ); ?>" placeholder="<?php _e( 'Last Name', 'as3cf' ); ?>"/>
|
31 |
</div>
|
32 |
|
33 |
-
<input type="hidden" name="campaigns[]" value="
|
34 |
<input type="hidden" name="source" value="1" />
|
35 |
|
36 |
<div class="field submit-button">
|
37 |
-
<input type="submit" class="button" value="<?php _e( 'Send me
|
38 |
</div>
|
39 |
|
40 |
<p class="promise">
|
@@ -52,7 +63,7 @@
|
|
52 |
</a>
|
53 |
</li>
|
54 |
<li>
|
55 |
-
<a href="https://deliciousbrains.com/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=
|
56 |
<img src="//www.gravatar.com/avatar/e62fc2e9c8d9fc6edd4fea5339036a91?size=64" alt="" width="32" height="32">
|
57 |
<span>Delicious Brains Inc.</span>
|
58 |
</a>
|
1 |
<div class="as3cf-sidebar">
|
2 |
|
3 |
+
<a class="as3cf-banner" href="https://deliciousbrains.com/wp-offload-s3/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=os3-free-plugin">
|
4 |
+
<h1>Upgrade</h1>
|
5 |
+
</a>
|
6 |
|
7 |
+
<div class="as3cf-upgrade-details">
|
8 |
+
|
9 |
+
<ul>
|
10 |
+
<li><?php echo wptexturize( __( 'Upload existing Media Library to S3', 'as3cf' ) ); // xss ok ?></li>
|
11 |
+
<li><?php echo wptexturize( __( 'Find & replace file URLs in content', 'as3cf' ) ); // xss ok ?></li>
|
12 |
+
<li><?php echo wptexturize( __( 'Manage S3 files in WordPress', 'as3cf' ) ); // xss ok ?></li>
|
13 |
+
<li><?php echo wptexturize( __( 'Assets addon - Serve your CSS & JS from S3/CloudFront', 'as3cf' ) ); // xss ok ?></li>
|
14 |
+
<li><?php echo wptexturize( __( 'WooCommerce addon', 'as3cf' ) ); // xss ok ?></li>
|
15 |
+
<li><?php echo wptexturize( __( 'Easy Digital Downloads addon', 'as3cf' ) ); // xss ok ?></li>
|
16 |
+
<li><?php echo wptexturize( __( 'PriorityExpert™ email support', 'as3cf' ) ); // xss ok ?></li>
|
17 |
+
</ul>
|
18 |
+
|
19 |
+
<p><a href="https://deliciousbrains.com/wp-offload-s3/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=os3-free-plugin"><?php echo __( 'Visit deliciousbrains.com →', 'as3cf' ); ?></a></p>
|
20 |
+
|
21 |
+
</div>
|
22 |
|
23 |
+
<form method="post" action="https://deliciousbrains.com/email-subscribe/" target="_blank" class="subscribe block">
|
24 |
<?php $user = wp_get_current_user(); ?>
|
25 |
|
26 |
+
<h2><?php _e( 'Get 20% Off!', 'as3cf' ); ?></h2>
|
27 |
+
|
28 |
<p class="intro">
|
29 |
+
<?php echo wptexturize( __( 'Submit your name and email and we’ll send you a coupon for 20% off your upgrade.', 'as3cf' ) ); // xss ok ?>
|
30 |
</p>
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<div class="field">
|
33 |
<input type="email" name="email" value="<?php echo esc_attr( $user->user_email ); ?>" placeholder="<?php _e( 'Your Email', 'as3cf' ); ?>"/>
|
34 |
</div>
|
41 |
<input type="text" name="last_name" value="<?php echo esc_attr( trim( $user->last_name ) ); ?>" placeholder="<?php _e( 'Last Name', 'as3cf' ); ?>"/>
|
42 |
</div>
|
43 |
|
44 |
+
<input type="hidden" name="campaigns[]" value="5" />
|
45 |
<input type="hidden" name="source" value="1" />
|
46 |
|
47 |
<div class="field submit-button">
|
48 |
+
<input type="submit" class="button" value="<?php _e( 'Send me the coupon', 'as3cf' ); ?>"/>
|
49 |
</div>
|
50 |
|
51 |
<p class="promise">
|
63 |
</a>
|
64 |
</li>
|
65 |
<li>
|
66 |
+
<a href="https://deliciousbrains.com/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=os3-free-plugin">
|
67 |
<img src="//www.gravatar.com/avatar/e62fc2e9c8d9fc6edd4fea5339036a91?size=64" alt="" width="32" height="32">
|
68 |
<span>Delicious Brains Inc.</span>
|
69 |
</a>
|
wordpress-s3.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Offload S3
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
|
5 |
Description: Automatically copies media uploads to Amazon S3 for storage and delivery. Optionally configure Amazon CloudFront for even faster delivery.
|
6 |
Author: Brad Touesnard
|
7 |
-
Version: 0.9.
|
8 |
Author URI: http://bradt.ca
|
9 |
Network: True
|
10 |
Text Domain: as3cf
|
@@ -26,7 +26,7 @@ Domain Path: /languages/
|
|
26 |
// Then completely rewritten.
|
27 |
*/
|
28 |
|
29 |
-
$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '0.9.
|
30 |
|
31 |
$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['supported_addon_versions'] = array(
|
32 |
'amazon-s3-and-cloudfront-pro' => '1.0b1',
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
|
5 |
Description: Automatically copies media uploads to Amazon S3 for storage and delivery. Optionally configure Amazon CloudFront for even faster delivery.
|
6 |
Author: Brad Touesnard
|
7 |
+
Version: 0.9.3
|
8 |
Author URI: http://bradt.ca
|
9 |
Network: True
|
10 |
Text Domain: as3cf
|
26 |
// Then completely rewritten.
|
27 |
*/
|
28 |
|
29 |
+
$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '0.9.3';
|
30 |
|
31 |
$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['supported_addon_versions'] = array(
|
32 |
'amazon-s3-and-cloudfront-pro' => '1.0b1',
|