Changeset 3236654
- Timestamp:
- 02/07/2025 02:24:56 PM (14 months ago)
- Location:
- media-focus-point
- Files:
-
- 2 edited
-
tags/1.3/readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
media-focus-point/tags/1.3/readme.txt
r3236642 r3236654 5 5 Tested up to: 6.7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.17 Stable tag: 1.3 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 ?> 33 33 34 **For background images:** 34 **For background images including the background-image:url():** 35 36 <div class="myelement" style="<?= MFP_Background($image_id); ?>"></div> 37 38 <!-- Result --> 39 <div class="myelement" style="background-image:url('example.jpg');background-position: 45% 34%;background-size: cover;"></div> 40 41 **To omit inline background-image, set second parameter to false:** 35 42 36 43 <div class="myelement" style="<?= MFP_Background($image_id, false); ?>"></div> 37 44 45 <!-- Result --> 46 <div class="myelement" style="background-position: 45% 34%;background-size: cover;"></div> 38 47 39 48 **For images from Advanced Custom Fields (ACF):** -
media-focus-point/trunk/readme.txt
r3236642 r3236654 5 5 Tested up to: 6.7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.17 Stable tag: 1.3 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 ?> 33 33 34 **For background images:** 34 **For background images including the background-image:url():** 35 36 <div class="myelement" style="<?= MFP_Background($image_id); ?>"></div> 37 38 <!-- Result --> 39 <div class="myelement" style="background-image:url('example.jpg');background-position: 45% 34%;background-size: cover;"></div> 40 41 **To omit inline background-image, set second parameter to false:** 35 42 36 43 <div class="myelement" style="<?= MFP_Background($image_id, false); ?>"></div> 37 44 45 <!-- Result --> 46 <div class="myelement" style="background-position: 45% 34%;background-size: cover;"></div> 38 47 39 48 **For images from Advanced Custom Fields (ACF):**
Note: See TracChangeset
for help on using the changeset viewer.