{"id":166246,"date":"2022-11-28T07:40:36","date_gmt":"2022-11-28T07:40:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/good-slider\/"},"modified":"2024-10-29T09:55:21","modified_gmt":"2024-10-29T09:55:21","slug":"good-slider","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/good-slider\/","author":20773102,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.1.0","stable_tag":"3.1.0","tested":"6.6.5","requires":"6.4","requires_php":"8.1","requires_plugins":null,"header_name":"Good Slider","header_author":"GoodWP","header_description":"A simple and extendable slider block using Swiper","assets_banners_color":"2d5e91","last_updated":"2024-10-29 09:55:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/goodwp.io","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2953,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"goodwpio","date":"2022-11-28 07:40:20"},"1.1.0":{"tag":"1.1.0","author":"goodwpio","date":"2022-12-09 13:12:48"},"1.2.0":{"tag":"1.2.0","author":"goodwpio","date":"2023-03-27 15:40:41"},"1.3.0":{"tag":"1.3.0","author":"goodwpio","date":"2023-08-02 07:47:30"},"1.3.1":{"tag":"1.3.1","author":"goodwpio","date":"2023-10-04 15:06:46"},"2.0.0":{"tag":"2.0.0","author":"goodwpio","date":"2023-11-01 17:21:53"},"3.0.0":{"tag":"3.0.0","author":"goodwpio","date":"2024-03-14 15:30:15"},"3.0.1":{"tag":"3.0.1","author":"goodwpio","date":"2024-03-14 15:44:17"},"3.1.0":{"tag":"3.1.0","author":"goodwpio","date":"2024-10-29 09:55:21"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2825065,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2825065,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2825065,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2825065,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3177848,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"preferredVersions\":{\"php\":\"8.1\",\"wp\":\"6.6\"},\"features\":{\"networking\":true},\"phpExtensionBundles\":[\"kitchen-sink\"],\"landingPage\":\"\\\/wp-admin\\\/post.php?post=8&action=edit\",\"steps\":[{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"},{\"step\":\"setSiteOptions\",\"options\":{\"blogname\":\"Good Slider Demo\",\"blog_charset\":\"UTF-8\",\"template\":\"twentytwentyfour\",\"stylesheet\":\"twentytwentyfour\"}},{\"step\":\"installPlugin\",\"pluginZipFile\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"good-slider\"},\"options\":{\"activate\":true}},{\"step\":\"importFile\",\"file\":{\"resource\":\"url\",\"url\":\"https:\\\/\\\/raw.githubusercontent.com\\\/goodwp\\\/good-slider\\\/main\\\/.wordpress-org\\\/blueprints\\\/demo-content.xml\"}}]}"}},"all_blocks":{"good-slider\/slider":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"good-slider\/slider","version":"3.0.0","title":"Good Slider","category":"layout","icon":"slides","description":"A carousel slider","attributes":{"swiperOptions":{"type":"object","default":{"navigation":true,"pagination":true,"slidesPerView":1}},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"align":["wide","full"],"anchor":true,"background":{"backgroundImage":true},"className":false,"color":{"background":true,"gradients":true,"link":true,"text":true},"dimensions":{"minHeight":true},"html":false,"layout":false,"spacing":{"padding":false,"margin":["top","bottom"],"blockGap":false},"typography":{"fontSize":true,"lineHeight":true}},"selectors":{"root":".wp-block-good-slider"},"textdomain":"good-slider","editorScript":"file:.\/index.js","viewScript":["good-slider"],"style":"file:.\/style-index.css"},"good-slider\/slide":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"good-slider\/slide","version":"3.0.0","title":"Slide","category":"layout","icon":"slides","description":"A single slide","attributes":{"contentPosition":{"type":"string","default":"center"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"allowedBlocks":{"type":"array"}},"supports":{"align":false,"alignWide":false,"ariaLabel":true,"anchor":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"background":true,"gradients":true,"heading":true,"button":true,"link":true,"text":true,"__experimentalDefaultControls":{"background":true,"text":true}},"className":false,"dimensions":{"minHeight":true},"html":false,"layout":false,"spacing":{"padding":true,"blockGap":false,"__experimentalDefaultControls":{"padding":true,"blockGap":false}},"typography":{"fontSize":true,"lineHeight":true}},"parent":["good-slider\/slider"],"textdomain":"good-slider","editorScript":"file:.\/index.js","viewScript":["good-slider"]},"good-slider\/item":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"good-slider\/item","version":"0.1.0","title":"Slider Item (deprecated)","category":"layout","icon":"slides","description":"Deprecated: Use good-slider\/slide instead.","supports":{"inserter":false,"align":false,"alignWide":false,"ariaLabel":true,"anchor":true,"background":{"backgroundImage":true},"color":{"background":true,"gradients":true,"heading":true,"button":true,"link":true,"text":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true},"html":false,"layout":false,"spacing":{"padding":true,"blockGap":false,"__experimentalDefaultControls":{"padding":true,"blockGap":false}},"typography":{"fontSize":true,"lineHeight":true}},"parent":["good-slider\/slider"],"textdomain":"good-slider","editorScript":"file:.\/index.js","viewScript":["good-slider"]}},"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0","1.3.1","2.0.0","3.0.0","3.0.1","3.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3051166,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3051166,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Insert the Good Slider block into your content.","2":"Add slides to your slider and insert any block you like into a slide.","3":"The slide block also allows setting a background and text color, background image, spacing, typography etc. so you don't need a group\/cover block inside."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1220,611,71207],"plugin_category":[],"plugin_contributors":[215206,215907],"plugin_business_model":[],"class_list":["post-166246","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-slider","plugin_tags-swiper","plugin_contributors-gaambo","plugin_contributors-goodwpio","plugin_committers-gaambo","plugin_committers-goodwpio","plugin_support_reps-gaambo"],"banners":{"banner":"https:\/\/ps.w.org\/good-slider\/assets\/banner-772x250.png?rev=2825065","banner_2x":"https:\/\/ps.w.org\/good-slider\/assets\/banner-1544x500.png?rev=2825065","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/good-slider\/assets\/icon-128x128.png?rev=2825065","icon_2x":"https:\/\/ps.w.org\/good-slider\/assets\/icon-256x256.png?rev=2825065","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/good-slider\/assets\/screenshot-1.png?rev=3051166","caption":"Insert the Good Slider block into your content."},{"src":"https:\/\/ps.w.org\/good-slider\/assets\/screenshot-2.png?rev=3051166","caption":"Add slides to your slider and insert any block you like into a slide."}],"raw_content":"<!--section=description-->\n<p>This plugin provides a very simple slider block which is based on <a href=\"https:\/\/swiperjs.com\/\">Swiper v8<\/a>.\nThe plugin provides a UI for the most common swiper options (navigation, pagination, slides per view). But it is specifically made to be extended via PHP.\nTherefore, it provides many <strong>PHP filter hooks<\/strong> to change its behaviour.<\/p>\n\n<p>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).\nThrough the filters it's also very easy to extend in your own functions.php file.<\/p>\n\n<p>If you want to report an issue or suggest features, please take a look at our <a href=\"https:\/\/github.com\/goodwp\/good-slider\">GitHub repository<\/a>.<\/p>\n\n<!--section=installation-->\n<h4>Minimal Requirements<\/h4>\n\n<ul>\n<li>PHP 8.1 or newer<\/li>\n<li>WordPress 6.2 or newer<\/li>\n<\/ul>\n\n<h4>Automatic Installation<\/h4>\n\n<p>We recommend installing the plugin extension through the WordPress Backend.<\/p>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Upload the contents of the plugin zip file to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20change%20the%20swiper%20arguments%20%28like%20slides%20shown%20etc%29'><h3>How can I change the swiper arguments (like slides shown etc)<\/h3><\/dt>\n<dd><p>The UI currently allows for enabling\/disabling navigation and pagination and the desktops default number of slides per view.<\/p>\n\n<p>You can use the <code>good-slider\/swiper-options<\/code> filter hook to set the swiper configuration for a specific block instance.\nHave a look at the <a href=\"https:\/\/github.com\/goodwp\/good-slider\/tree\/main\/examples\/filters.php\">examples on GitHub<\/a>.<\/p>\n\n<p>All the available arguments are documented in the <a href=\"https:\/\/v8.swiperjs.com\/swiper-api\">Swiper v8 documentation<\/a>.<\/p><\/dd>\n<dt id='can%20i%20use%20my%20own%20enqueued%20swiper%20script%3F'><h3>Can I use my own enqueued Swiper script?<\/h3><\/dt>\n<dd><p>Yes you can use the <code>good-slider\/swiper-script-handle<\/code> filter hook to change the name of the swiper script handle.<\/p><\/dd>\n<dt id='can%20i%20use%20more%20swiper%20options%3F'><h3>Can I use more Swiper options?<\/h3><\/dt>\n<dd><p>By default, a stripped-down version of Swiper is enqueued, which only includes the most commonly used modules (A11y, Keyboard, Lazy, Navigation, Pagination).\nYou can use the <code>good-slider\/swiper-script-handle<\/code> filter and set it to <code>good-slider-swiper-full<\/code> to enqueue the full Swiper bundle with all modules, or you can use or own (see above).<\/p><\/dd>\n<dt id='does%20the%20plugin%20provide%20a%20ui%20for%20slider%20settings%20and%20styles%20in%20the%20block%20editor%3F'><h3>Does the plugin provide a UI for slider settings and styles in the block editor?<\/h3><\/dt>\n<dd><p>Thanks to recent additions to core, our slider and slide block now allow for setting most of the common styling settings:\n- spacing\n- colors (text, background, link)\n- typography\n- background image\n- content positioning (justify-content + align-items)<\/p>\n\n<p>Also, v3.0.0 introduced a UI for enabling\/disabling some of the most common settings of Swiper (navigation, pagination, slides shown).<\/p>\n\n<p>We are working on adding more UI controls but also providing the possibility for developers to disable them.<\/p><\/dd>\n<dt id='how%20can%20i%20lock%20the%20editing%20experience%20%28e.g.%20in%20patterns%29%3F'><h3>How can I lock the editing experience (e.g. in patterns)?<\/h3><\/dt>\n<dd><p>The block integrates with features WordPress core provides to lock and curate the editing experience.<\/p>\n\n<p><strong>Template locking<\/strong>\nBoth the slider and slide block have a <code>templateLock<\/code> attributes, which you can set in variations, patterns or templates to any of the values <code>[ \"all\", \"insert\", \"contentOnly\", false ]<\/code>.<\/p>\n\n<p>See the <a href=\"https:\/\/github.com\/goodwp\/good-slider\/tree\/main\/examples\">examples on GitHub<\/a>.<\/p>\n\n<p><strong>Example 1:<\/strong> (fixed-slides.html) Create a slider with a fixed amount of slides, but flexible content of those slides:\nSet the <code>templateLock<\/code> attribute to \"all\" on the slider block and to <code>false<\/code> on all slides.<\/p>\n\n<p><strong>Allowed blocks<\/strong>\nSince WordPress 6.5 you can set a <code>allowedBlocks<\/code> setting on all instances of a block type upon registration.\nIf you want to globally restrict the allowed blocks inside slides, <a href=\"https:\/\/make.wordpress.org\/core\/2024\/03\/09\/miscellaneous-editor-changes-in-wordpress-6-5\/#support-for-new-allowedblocks-field-in-block-json\">have a look at this new feature<\/a>.<\/p>\n\n<p><strong>Example 2:<\/strong> (allowed-blocks.html) Create a slider with restricted allowed blocks inside slides. Set the <code>allowedBlocks<\/code> attribute on the slide block to an array of allowed block types.<\/p>\n\n<p><strong>Variations<\/strong>\nYou can also create block variations of the slide block with the innerBlocks and attributes prefilled.\nSee slide-variations.js in the examples directory.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.1.0 (2024-03-14)<\/h4>\n\n<ul>\n<li>Tweak: Add <code>allowedBlocks<\/code> attribute to slide block.<\/li>\n<li>Fix: Fix default variations being inserted by custom block inserters.<\/li>\n<li>Docs: Add examples for locking and restricting the slider block.<\/li>\n<\/ul>\n\n<h4>3.0.1 (2024-03-14)<\/h4>\n\n<ul>\n<li>Dev: Quick fix to remove some development files from the distributed plugin.<\/li>\n<\/ul>\n\n<h4>3.0.0 (2024-03-14)<\/h4>\n\n<p>!! This version includes breaking changes !!<\/p>\n\n<ul>\n<li>New: A new <code>good-slider\/slide<\/code> block is introduced. This block has better naming and more block supports.<\/li>\n<li>Breaking: The <code>good-slider\/item<\/code> block is now deprecated. Upon opening the editor all instance will be converted to <code>good-slider\/slide<\/code> blocks.<\/li>\n<li>Breaking: Remove the editor filters <code>good-slider.item.innerBlocks-settings<\/code> and <code>good-slider.slider.innerBlocks-settings<\/code>. Instead, use the new <code>templateLock<\/code> property of the slider and slide block and the <code>allowedBlocks<\/code> attribute for the slide block introduced in WordPress 6.5<\/li>\n<li>Breaking: Removed tag name selector from slider block. Instead, wrap it in a group.<\/li>\n<li>Tweak: Add more block supports to slide<\/li>\n<li>Tweak: Editing experience is now horizontal and works with scrolling.<\/li>\n<li>New: Adds UI controls for Swiper navigation, pagination and slides per view (+ sensible defaults for tablet\/mobile)<\/li>\n<li>Dev: Add formatting for PHP, JS and CSS<\/li>\n<li>Dev: Better directory structure of blocks<\/li>\n<li>Dev: Add WordPress Playground blueprint for easy demo of plugin<\/li>\n<li>Dev: Migrate to WordPress code style<\/li>\n<li>Compatibility: Test up to WordPres 6.5<\/li>\n<li>License: Update to GPL v3<\/li>\n<\/ul>\n\n<h4>2.0.0 (2023-11-01)<\/h4>\n\n<p>!! Some breaking changes:<\/p>\n\n<ul>\n<li>Tweak: Changed block supports for slider and item block\n\n<ul>\n<li>Slider block:\n\n<ul>\n<li>Supports anchor\/ID<\/li>\n<li>Supports background image<\/li>\n<li>Supports all colors (background, gradients, heading, button, link, text)<\/li>\n<li>Supports minimum height<\/li>\n<li>Supports top+bottom padding and margin<\/li>\n<li>Supports typography<\/li>\n<\/ul><\/li>\n<li>Slider item block\n\n<ul>\n<li>Supports anchor\/ID<\/li>\n<li>Supports background image<\/li>\n<li>Supports all colors (background, gradients, heading, button, link, text)<\/li>\n<li>Supports minimum height<\/li>\n<li>Supports padding (all sides)<\/li>\n<li>Supports typography<\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<li>Tweak: Changed class name of main wrapper block to <code>wp-block-good-slider<\/code>.\nThe old classes were <code>wp-block-good-slider-slider<\/code> + <code>good-slider<\/code> and are not set on the block anymore.\nA block deprecation was added to migrate blocks when viewing in editor.<\/li>\n<li>Compatibility: Requires WordPress 6.2 (because of WP HTML Tag Manager)<\/li>\n<li>Compatibility: Tested up to WordPress 6.4<\/li>\n<li>Dev: Update @wordpress packages.<\/li>\n<\/ul>\n\n<h4>1.3.1 (2023-10-04)<\/h4>\n\n<ul>\n<li>Fix: Fix swiper-full bundle not working (because Swiper is not exported to window).<\/li>\n<\/ul>\n\n<h4>1.3.0 (2023-08-02)<\/h4>\n\n<ul>\n<li>Tweak\/Fix: Disable left &amp; right padding for slide-item block, because they break the slider layout<\/li>\n<li>Compatibility: Tested up to WordPress 6.3<\/li>\n<\/ul>\n\n<h4>1.2.0 (2023-03-08)<\/h4>\n\n<ul>\n<li>Add a server side render callback to the item block<\/li>\n<li>Prevent empty item\/slides from rendering<\/li>\n<\/ul>\n\n<h4>1.1.0 (2022-12-09)<\/h4>\n\n<ul>\n<li>Added JavaScript filters to filter <code>InnerBlocks<\/code> settings\/props for slider and item block.<\/li>\n<\/ul>\n\n<h4>1.0.0 (2022-11-28)<\/h4>\n\n<ul>\n<li>The first public release of the plugin \ud83e\udd73<\/li>\n<\/ul>","raw_excerpt":"A simple and extendable slider block based on Swiper.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/166246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=166246"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/goodwpio"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=166246"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=166246"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=166246"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=166246"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=166246"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=166246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}