Changeset 3051296
- Timestamp:
- 03/14/2024 07:07:16 PM (2 years ago)
- Location:
- good-slider
- Files:
-
- 3 edited
-
assets/blueprints/demo-content.xml (modified) (1 diff)
-
assets/blueprints/example-post.html (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
good-slider/assets/blueprints/demo-content.xml
r3051166 r3051296 72 72 <!-- /wp:good-slider/slide --> 73 73 74 <!-- /wp:good-slider/slider --> 75 76 <!-- wp:heading --> 77 <h2 class="wp-block-heading">Slider with fixed slides</h2> 78 <!-- /wp:heading --> 79 80 <!-- wp:good-slider/slider {"templateLock":"all"} --> 81 <!-- wp:good-slider/slide {"templateLock":false} --> 82 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 83 <p class="has-text-align-center">1st Slide</p> 84 <!-- /wp:paragraph --> 85 <!-- /wp:good-slider/slide --> 86 87 <!-- wp:good-slider/slide {"templateLock":false} --> 88 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 89 <p class="has-text-align-center">2nd Slide</p> 90 <!-- /wp:paragraph --> 91 <!-- /wp:good-slider/slide --> 92 93 <!-- wp:good-slider/slide {"templateLock":false} --> 94 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 95 <p class="has-text-align-center">3rd Slide</p> 96 <!-- /wp:paragraph --> 97 <!-- /wp:good-slider/slide --> 98 <!-- /wp:good-slider/slider --> 99 100 <!-- wp:heading --> 101 <h2 class="wp-block-heading">Slider with restricted slide contents</h2> 102 <!-- /wp:heading --> 103 104 <!-- wp:good-slider/slider {"templateLock":"all"} --> 105 <!-- wp:good-slider/slide {"templateLock":false,"allowedBlocks":["core/paragraph"]} --> 106 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 107 <p class="has-text-align-center">1st Slide</p> 108 <!-- /wp:paragraph --> 109 <!-- /wp:good-slider/slide --> 110 74 111 <!-- /wp:good-slider/slider -->]]></content:encoded> 75 112 <excerpt:encoded><![CDATA[]]></excerpt:encoded> -
good-slider/assets/blueprints/example-post.html
r3051166 r3051296 17 17 18 18 <!-- /wp:good-slider/slider --> 19 20 <!-- wp:heading --> 21 <h2 class="wp-block-heading">Slider with fixed slides</h2> 22 <!-- /wp:heading --> 23 24 <!-- wp:good-slider/slider {"templateLock":"all"} --> 25 <!-- wp:good-slider/slide {"templateLock":false} --> 26 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 27 <p class="has-text-align-center">1st Slide</p> 28 <!-- /wp:paragraph --> 29 <!-- /wp:good-slider/slide --> 30 31 <!-- wp:good-slider/slide {"templateLock":false} --> 32 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 33 <p class="has-text-align-center">2nd Slide</p> 34 <!-- /wp:paragraph --> 35 <!-- /wp:good-slider/slide --> 36 37 <!-- wp:good-slider/slide {"templateLock":false} --> 38 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 39 <p class="has-text-align-center">3rd Slide</p> 40 <!-- /wp:paragraph --> 41 <!-- /wp:good-slider/slide --> 42 <!-- /wp:good-slider/slider --> 43 44 <!-- wp:heading --> 45 <h2 class="wp-block-heading">Slider with restricted slide contents</h2> 46 <!-- /wp:heading --> 47 48 <!-- wp:good-slider/slider {"templateLock":"all"} --> 49 <!-- wp:good-slider/slide {"templateLock":false,"allowedBlocks":["core/paragraph"]} --> 50 <!-- wp:paragraph {"align":"center","placeholder":"Write title…"} --> 51 <p class="has-text-align-center">1st Slide</p> 52 <!-- /wp:paragraph --> 53 <!-- /wp:good-slider/slide --> 54 55 <!-- /wp:good-slider/slider --> -
good-slider/trunk/readme.txt
r3051181 r3051296 5 5 Requires PHP: 8.1 6 6 Tested up to: 6.5 7 Stable tag: 3. 0.17 Stable tag: 3.1.0 8 8 License: GPL-3.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 19 19 The plugin is used in some custom themes and through it's PHP configuration it's perfect for a locked-in design (eg agency, clients). 20 20 Through the filters it's also very easy to extend in your own functions.php file. 21 22 If you want to report an issue or suggest features, please take a look at our [GitHub repository](https://github.com/goodwp/good-slider). 21 23 22 24 == Installation == … … 60 62 You can use the `good-slider/swiper-script-handle` filter and set it to `good-slider-swiper-full` to enqueue the full Swiper bundle with all modules, or you can use or own (see above). 61 63 62 = Will there be a UI for more settings the block in theeditor? =64 = Does the plugin provide a UI for slider settings and styles in the block editor? = 63 65 64 66 Thanks to recent additions to core, our slider and slide block now allow for setting most of the common styling settings: … … 73 75 We are working on adding more UI controls but also providing the possibility for developers to disable them. 74 76 77 = How can I lock the editing experience (e.g. in patterns)? = 78 79 The block integrates with features WordPress core provides to lock and curate the editing experience. 80 81 **Template locking** 82 Both the slider and slide block have a `templateLock` attributes, which you can set in variations, patterns or templates to any of the values `[ "all", "insert", "contentOnly", false ]`. 83 84 See the [examples on GitHub](https://github.com/goodwp/good-slider/tree/main/examples). 85 86 **Example 1:** (fixed-slides.html) Create a slider with a fixed amount of slides, but flexible content of those slides: 87 Set the `templateLock` attribute to "all" on the slider block and to `false` on all slides. 88 89 **Allowed blocks** 90 Since WordPress 6.5 you can set a `allowedBlocks` setting on all instances of a block type upon registration. 91 If you want to globally restrict the allowed blocks inside slides, [have a look at this new feature](https://make.wordpress.org/core/2024/03/09/miscellaneous-editor-changes-in-wordpress-6-5/#support-for-new-allowedblocks-field-in-block-json). 92 93 **Example 2:** (allowed-blocks.html) Create a slider with restricted allowed blocks inside slides. Set the `allowedBlocks` attribute on the slide block to an array of allowed block types. 94 95 **Variations** 96 You can also create block variations of the slide block with the innerBlocks and attributes prefilled. 97 See slide-variations.js in the examples directory. 98 75 99 == Changelog == 100 101 = 3.1.0 (2024-03-14) = 102 103 - Tweak: Add `allowedBlocks` attribute to slide block. 104 - Fix: Fix default variations being inserted by custom block inserters. 105 - Docs: Add examples for locking and restricting the slider block. 76 106 77 107 = 3.0.1 (2024-03-14) =
Note: See TracChangeset
for help on using the changeset viewer.