Plugin Directory

Changeset 3051296


Ignore:
Timestamp:
03/14/2024 07:07:16 PM (2 years ago)
Author:
goodwpio
Message:

Updating readme/assets from GitHub

Location:
good-slider
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • good-slider/assets/blueprints/demo-content.xml

    r3051166 r3051296  
    7272<!-- /wp:good-slider/slide -->
    7373
     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
    74111<!-- /wp:good-slider/slider -->]]></content:encoded>
    75112            <excerpt:encoded><![CDATA[]]></excerpt:encoded>
  • good-slider/assets/blueprints/example-post.html

    r3051166 r3051296  
    1717
    1818<!-- /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  
    55Requires PHP:      8.1
    66Tested up to:      6.5
    7 Stable tag:        3.0.1
     7Stable tag:        3.1.0
    88License:           GPL-3.0-or-later
    99License URI:       https://www.gnu.org/licenses/gpl-3.0.html
     
    1919The plugin is used in some custom themes and through it's PHP configuration it's perfect for a locked-in design (eg agency, clients).
    2020Through the filters it's also very easy to extend in your own functions.php file.
     21
     22If you want to report an issue or suggest features, please take a look at our [GitHub repository](https://github.com/goodwp/good-slider).
    2123
    2224== Installation ==
     
    6062You 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).
    6163
    62 = Will there be a UI for more settings the block in the editor? =
     64= Does the plugin provide a UI for slider settings and styles in the block editor? =
    6365
    6466Thanks to recent additions to core, our slider and slide block now allow for setting most of the common styling settings:
     
    7375We are working on adding more UI controls but also providing the possibility for developers to disable them.
    7476
     77= How can I lock the editing experience (e.g. in patterns)? =
     78
     79The block integrates with features WordPress core provides to lock and curate the editing experience.
     80
     81**Template locking**
     82Both 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
     84See 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:
     87Set the `templateLock` attribute to "all" on the slider block and to `false` on all slides.
     88
     89**Allowed blocks**
     90Since WordPress 6.5 you can set a `allowedBlocks` setting on all instances of a block type upon registration.
     91If 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**
     96You can also create block variations of the slide block with the innerBlocks and attributes prefilled.
     97See slide-variations.js in the examples directory.
     98
    7599== 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.
    76106
    77107= 3.0.1 (2024-03-14) =
Note: See TracChangeset for help on using the changeset viewer.