This repository was archived by the owner on Jul 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
system/expressionengine/third_party/easy_cloudinary Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 21
21
'pi_version ' => '1.0 ' ,
22
22
'pi_author ' => 'Aaron Gustafson ' ,
23
23
'pi_author_url ' => 'https://www.aaron-gustafson.com/ ' ,
24
- 'pi_description ' => 'Automates swapping of Cloudinary’s image paths for local (server-based) ones . ' ,
24
+ 'pi_description ' => 'Automates swapping your local (and remote) image paths for Cloudinary’s . ' ,
25
25
'pi_usage ' => Easy_cloudinary::usage ()
26
26
);
27
27
@@ -42,10 +42,7 @@ function __construct()
42
42
if ( $ this ->cloudinary_config !== NULL )
43
43
{
44
44
# get the host name
45
- $ http_host = strToLower ( ee ()->input ->server ('HTTP_HOST ' ) );
46
- $ ssl = isset ($ _SERVER ['HTTPS ' ]) && $ _SERVER ['HTTPS ' ] === 'on ' ;
47
- $ protocol = $ ssl ? 'https:// ' : 'http:// ' ;
48
- $ this ->site_domain = "{$ protocol }{$ http_host }" ;
45
+ $ this ->site_domain = ee ()->config ->item ('site_url ' );
49
46
$ this ->return_data = $ this ->convert ( ee ()->TMPL ->tagdata );
50
47
}
51
48
else
@@ -193,6 +190,8 @@ function usage()
193
190
);
194
191
```
195
192
193
+ Be sure you have set the URL to the root directory of your site in your config file or in CP Home > Administration > General Configuration.
194
+
196
195
Once you have that in place, you simply wrap the content you want to adjust. All images will be processed through Cloudinary.
197
196
198
197
{exp:easy_cloudinary}
You can’t perform that action at this time.
0 commit comments