This repository was archived by the owner on Jul 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
system/expressionengine/third_party/easy_cloudinary Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,27 @@ Easy Cloudinary for ExpressionEngine
33
44ExpressionEngine Plugin to automate use of the Cloudinary
55
6- The API
7- -------
6+ Setting it up
7+ -------------
8+
9+ All configuration of this plugin happens in your ExpressionEngine Configuration file:
10+
11+ ``` php
12+ $config['easy_cloudinary'] = array(
13+ 'cloud_name' => 'YOUR_CLOUDINARY_CLOUD_NAME',
14+ 'template' => '<img src =" https://res.cloudinary.com/{cloud_name}/image/fetch/f_auto,q_auto/{image_url}" {attributes} >'
15+ );
16+ ```
17+
18+ Once you have that in place, you simply wrap the content you want to adjust. All images will be processed through Cloudinary.
19+
20+ ``` mustache
21+ {exp:easy_cloudinary}
22+ YOUR CONTENT
23+ {/exp:easy_cloudinary}
24+ ```
825
26+ Any images (local or remote) will be swapped for Cloudinary-handled ones using the template you set up in the config file.
927
1028License
1129-------
Original file line number Diff line number Diff line change @@ -190,6 +190,14 @@ function usage()
190190);
191191```
192192
193+ Once you have that in place, you simply wrap the content you want to adjust. All images will be processed through Cloudinary.
194+
195+ {exp:easy_cloudinary}
196+ YOUR CONTENT
197+ {/exp:easy_cloudinary}
198+
199+ Any images (local or remote) will be swapped for Cloudinary-handled ones using the template you set up in the config file.
200+
193201<?php
194202 $ buffer = ob_get_contents ();
195203 ob_end_clean ();
You can’t perform that action at this time.
0 commit comments