diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..3b1706d --- /dev/null +++ b/.distignore @@ -0,0 +1,75 @@ +# Exclude from WordPress.org distribution + +# Git/Version Control +.git/ +.github/ +.gitignore + +# Development Configuration +.editorconfig +.eslintignore +.eslintrc.json +.husky/ +.npmrc +.nvmrc +.stylelintignore +babel.config.js +commitlint.config.js +jest.config.js +Makefile +phpcs.xml.dist +phpstan.neon.dist +phpunit.xml.dist +tsconfig.json + +# Source files (build output is included) +src/ + +# Tests +tests/ + +# Documentation +docs/ +DEVELOPMENT.md + +# WordPress.org assets (separate from plugin) +wp-assets/ + +# Dependencies +node_modules/ +vendor/bin +vendor/antecedent +vendor/brain +vendor/hamcrest +vendor/mockery +vendor/myclabs +vendor/nikic +vendor/phar-io +vendor/phpcompatibility +vendor/phpcsstandards +vendor/phpstan +vendor/phpunit +vendor/sebastian +vendor/sirbrillig +vendor/slevomat +vendor/squizlabs +vendor/staabm +vendor/szepeviktor +vendor/theseer +vendor/wpackagist-plugin +vendor/yoast + +# Package files +package.json +package-lock.json +composer.json +composer.lock +blueprint.json + +# Other +*.log +*.map +*.zip +.distignore +.DS_Store +Thumbs.db diff --git a/CHANGELOG.md b/CHANGELOG.md index bdf45e1..ca75fc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,27 +1,66 @@ -## [1.0.3](https://github.com/rtCamp/carousel-system-interactivity-api/compare/v1.0.2...v1.0.3) (2026-02-24) +## [1.0.4](https://github.com/rtCamp/carousel-kit/compare/v1.0.3...v1.0.4) (2026-03-09) + +### Bug Fixes + +* clean up .distignore by removing unnecessary files and directories ([353646b](https://github.com/rtCamp/carousel-kit/commit/353646bf85f1d986644fbf1d745688702f4a35e0)) +* correct release link in INSTALLATION.md and update node_modules exclusion in phpstan.neon.dist ([1eea8d8](https://github.com/rtCamp/carousel-kit/commit/1eea8d8c4b8ea49a526b871d738dbb91501ffd69)) +* CSS linting issues ([1149c55](https://github.com/rtCamp/carousel-kit/commit/1149c55b55056d0171eef66465f9c6e22b02dae4)) +* ensure direct access to Autoloader.php exits gracefully ([d33bf17](https://github.com/rtCamp/carousel-kit/commit/d33bf17e1caed94489850677743dcf659caa35de)) +* **examples:** swap misplaced editor images and remove hardcoded aspect ratio ([162b07e](https://github.com/rtCamp/carousel-kit/commit/162b07ee577ebe80236ec87172a523307fb4a3de)) +* ignore phpcs warning for including pattern file from a fixed directory ([02d49a7](https://github.com/rtCamp/carousel-kit/commit/02d49a7a1468f82670253e7b7c12b861ccc2edd5)) +* remove outdated screenshots description from readme ([7ffdd9a](https://github.com/rtCamp/carousel-kit/commit/7ffdd9a1c44d4747b37f25757a91c8dc70e79371)) +* **styles:** remove unnecessary grid-template-columns property ([818d69c](https://github.com/rtCamp/carousel-kit/commit/818d69c5537e8ab76ff40df0a255b1c5d182f934)) +* update @wordpress/scripts version to allow minor updates ([03ce762](https://github.com/rtCamp/carousel-kit/commit/03ce7623a1597ed8959f2f3f6fa8393e2c01065d)) +* update contributors list in plugin header and readme.txt ([295b2b3](https://github.com/rtCamp/carousel-kit/commit/295b2b3787df7c757d383333dbfe84f97a913590)) +* update dist target to exclude additional configuration and development files ([71381db](https://github.com/rtCamp/carousel-kit/commit/71381dbca6e7afa216020b69906d811013c0a5bc)) +* update file paths in phpcs and phpstan configuration ([4077c28](https://github.com/rtCamp/carousel-kit/commit/4077c28f7aea1ce5de64c18f8948fa943ca8317a)) +* update package dependencies for minimatch and serialize-javascript ([6a05ac9](https://github.com/rtCamp/carousel-kit/commit/6a05ac9ea01e17077197bfd09a8335aca627c3aa)) +* update package-lock.json to remove unused dependency and upgrade svgo and immutable versions ([c9e877d](https://github.com/rtCamp/carousel-kit/commit/c9e877d164acdffe37d9eb91b5f03bc3cd65b084)) +* update POT-Creation-Date and add missing autoloader error message ([3bdc9e0](https://github.com/rtCamp/carousel-kit/commit/3bdc9e06e8fbdbaffd17d8c50a9e6b57dbb44ea3)) +* update script paths in composer.json and improve constant definitions in tests ([9c73548](https://github.com/rtCamp/carousel-kit/commit/9c7354831f124705fe3fc8cd56a9c32e6da159bc)) +* update script paths in composer.json to use local binaries ([46f0f7a](https://github.com/rtCamp/carousel-kit/commit/46f0f7a2ed3d204a5a479cd6eaee7509a9546640)) +* update tested up to version in readme.txt from 6.9.1 to 6.9 ([6a23832](https://github.com/rtCamp/carousel-kit/commit/6a23832624a693ca4a8ef1fd4d7ed9e2ffe4f04d)) +* update WordPress minimum requirement to 6.6 in README, INSTALLATION, and readme.txt ([320a3ec](https://github.com/rtCamp/carousel-kit/commit/320a3ec09184f44d823219b3747e3d4c2dc60a1d)) + +### Features + +* add localization support and update package.json for repository and bugs metadata ([2268cb8](https://github.com/rtCamp/carousel-kit/commit/2268cb830b65828c5164133b00af4432fbd7ac29)) +* add new screenshot image and remove outdated PNG file ([e1b9e23](https://github.com/rtCamp/carousel-kit/commit/e1b9e2345755ccf94ffd049b9da3c84cc5dac09a)) +* add placeholder logos and update hero carousel pattern ([bdd4b52](https://github.com/rtCamp/carousel-kit/commit/bdd4b525217de55385df163ed21095cd302bebbc)) +* add readme.txt with plugin details and installation instructions ([e8cdd4a](https://github.com/rtCamp/carousel-kit/commit/e8cdd4a8e77d324cc61068f9be19bd884564b382)) +* add screenshot for plugin preview in WordPress.org ([c3826fc](https://github.com/rtCamp/carousel-kit/commit/c3826fc212ad49201fefc0b9ff2106fc163d9232)) +* implement autoloader for PHP classes and refactor constant definitions ([a0a1b45](https://github.com/rtCamp/carousel-kit/commit/a0a1b45c8f2f481799c50c34b5bc4eeb13eb34d4)) +* update .distignore to exclude README.md and enhance carousel-kit.php for direct access protection ([e5ee596](https://github.com/rtCamp/carousel-kit/commit/e5ee596077a1f3a5d1311823d39db3aa1b2c734e)) +* update license and version in carousel-kit.php; add index.php for plugin structure ([4e5fe9f](https://github.com/rtCamp/carousel-kit/commit/4e5fe9f83ae717c14dcc0b21ddac72a81c8662c7)) +* update PHP requirement to 8.2 and reorder contributors in plugin header ([3a52e05](https://github.com/rtCamp/carousel-kit/commit/3a52e059d48a864e47c43b89ca006ad9eda0b6f3)) +* update README with minimum requirements and add uninstall functionality ([22cb27c](https://github.com/rtCamp/carousel-kit/commit/22cb27cab704d3531e61b2c7351899470fd973f5)) +* Updated pot file ([cd5e061](https://github.com/rtCamp/carousel-kit/commit/cd5e06180f91a6a74599dabb1418c14011c90d61)) + + +## [1.0.3](https://github.com/rtCamp/carousel-kit/compare/v1.0.2...v1.0.3) (2026-02-24) ### Bug Fixes -* enable loop on editor ([fe4566a](https://github.com/rtCamp/carousel-system-interactivity-api/commit/fe4566afcf72e1e663c7eb481a7957d62c2d3365)) -* state corruption when clicking between slides ([637e4a5](https://github.com/rtCamp/carousel-system-interactivity-api/commit/637e4a507eb2c58576c4004d5460e8aa7295db9f)) +* enable loop on editor ([fe4566a](https://github.com/rtCamp/carousel-kit/commit/fe4566afcf72e1e663c7eb481a7957d62c2d3365)) +* state corruption when clicking between slides ([637e4a5](https://github.com/rtCamp/carousel-kit/commit/637e4a507eb2c58576c4004d5460e8aa7295db9f)) -## [1.0.2](https://github.com/rtCamp/carousel-system-interactivity-api/compare/v1.0.1...v1.0.2) (2026-02-23) +## [1.0.2](https://github.com/rtCamp/carousel-kit/compare/v1.0.1...v1.0.2) (2026-02-23) ### Bug Fixes -* **demo:** 4 slides per view ([e13817c](https://github.com/rtCamp/carousel-system-interactivity-api/commit/e13817c8e49e0e071580efbf95ff4c77d677e114)) -* replace PNG images with optimized WEBP format ([eb60082](https://github.com/rtCamp/carousel-system-interactivity-api/commit/eb6008251039ea700262c63db89a266072ee6c3f)) -* replace urls with webp alts ([000f894](https://github.com/rtCamp/carousel-system-interactivity-api/commit/000f894a9818bd8181977cb038231e0ea3d82386)) +* **demo:** 4 slides per view ([e13817c](https://github.com/rtCamp/carousel-kit/commit/e13817c8e49e0e071580efbf95ff4c77d677e114)) +* replace PNG images with optimized WEBP format ([eb60082](https://github.com/rtCamp/carousel-kit/commit/eb6008251039ea700262c63db89a266072ee6c3f)) +* replace urls with webp alts ([000f894](https://github.com/rtCamp/carousel-kit/commit/000f894a9818bd8181977cb038231e0ea3d82386)) ### Features -* setup wizard styles ([0be0bf7](https://github.com/rtCamp/carousel-system-interactivity-api/commit/0be0bf7cde8c9035cca1086dce7dce005e0d39b2)) -* slide appender and setup ([a42331d](https://github.com/rtCamp/carousel-system-interactivity-api/commit/a42331d10b225379408ddf8c0649e83484496a1e)) +* setup wizard styles ([0be0bf7](https://github.com/rtCamp/carousel-kit/commit/0be0bf7cde8c9035cca1086dce7dce005e0d39b2)) +* slide appender and setup ([a42331d](https://github.com/rtCamp/carousel-kit/commit/a42331d10b225379408ddf8c0649e83484496a1e)) -# [1.0.1](https://github.com/rtCamp/carousel-system-interactivity-api/compare/1.0.0...1.0.1) (2026-02-16) +# [1.0.1](https://github.com/rtCamp/carousel-kit/compare/v1.0.0...v1.0.1) (2026-02-16) ### Bug Fixes @@ -33,15 +72,12 @@ ### Bug Fixes -* Gap issue fixed for the carousel items ([5277b89](https://github.com/rtCamp/carousel-system-interactivity-api/commit/5277b89545c973f13c22f6d1d7cf21e19958305f)) +* Gap issue fixed for the carousel items ([5277b89](https://github.com/rtCamp/carousel-kit/commit/5277b89545c973f13c22f6d1d7cf21e19958305f)) ### Features -* Add example carousels for hero, logo showcase, and testimonials ([d2b6e4a](https://github.com/rtCamp/carousel-system-interactivity-api/commit/d2b6e4ae0f915f6edfb6ddf637c4a88878375e4b)) -* Add slide to scroll option ([f2adab3](https://github.com/rtCamp/carousel-system-interactivity-api/commit/f2adab310015347400a1c2e6437b3a68566a6c9d)) -* Enhance vertical axis support and adjust slide dimensions in carousel styles ([2ec3e40](https://github.com/rtCamp/carousel-system-interactivity-api/commit/2ec3e40e8e34655d3417b25e16feaee41451c604)) -* Refactor context handling and define global window interface for carousel context ([5aab80e](https://github.com/rtCamp/carousel-system-interactivity-api/commit/5aab80edd103ee66d8e212359eb0f8d2ad01acb7)) - - - +* Add example carousels for hero, logo showcase, and testimonials ([d2b6e4a](https://github.com/rtCamp/carousel-kit/commit/d2b6e4ae0f915f6edfb6ddf637c4a88878375e4b)) +* Add slide to scroll option ([f2adab3](https://github.com/rtCamp/carousel-kit/commit/f2adab310015347400a1c2e6437b3a68566a6c9d)) +* Enhance vertical axis support and adjust slide dimensions in carousel styles ([2ec3e40](https://github.com/rtCamp/carousel-kit/commit/2ec3e40e8e34655d3417b25e16feaee41451c604)) +* Refactor context handling and define global window interface for carousel context ([5aab80e](https://github.com/rtCamp/carousel-kit/commit/5aab80edd103ee66d8e212359eb0f8d2ad01acb7)) diff --git a/Makefile b/Makefile index d34a365..3a9efba 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ # Configuration PLUGIN_SLUG := carousel-kit -PLUGIN_VERSION := 1.0.0 BUILD_DIR := build-dist ZIP_NAME := $(PLUGIN_SLUG).zip @@ -50,17 +49,23 @@ dist: --exclude='.*' \ --exclude='node_modules' \ --exclude='tests' \ + --exclude='wp-assets' \ --exclude='phpunit.xml.dist' \ --exclude='phpcs.xml.dist' \ + --exclude='phpstan.neon.dist' \ + --exclude='babel.config.js' \ + --exclude='commitlint.config.js' \ + --exclude='jest.config.js' \ --exclude='webpack.config.js' \ --exclude='package.json' \ --exclude='package-lock.json' \ + --exclude='blueprint.json' \ --exclude='tsconfig.json' \ --exclude='composer.json' \ --exclude='composer.lock' \ --exclude='Makefile' \ - --exclude='README.md' \ --exclude='CHANGELOG.md' \ + --exclude='DEVELOPMENT.md' \ --exclude='src' \ --exclude='$(BUILD_DIR)' \ --exclude='*.zip' \ diff --git a/README.md b/README.md index c9ec472..3e54097 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ Easily create dynamic, accessible, and customizable carousels for any content ty | Requirement | Minimum | Recommended | | ----------- | ------------ | ----------- | -| WordPress | 6.5+ | 6.6+ | -| PHP | 7.4+ | 8.2+ | +| WordPress | 6.6+ | 6.9+ | +| PHP | 8.2+ | 8.2+ | | Gutenberg | Not required | — | -> **Note:** The Interactivity API became stable in WordPress 6.5. This plugin works with WordPress core—no Gutenberg plugin required. +> **Note:** This plugin works with WordPress core—no Gutenberg plugin required. ## Browser Support @@ -80,6 +80,10 @@ Yes. The carousel follows W3C accessibility guidelines with proper ARIA roles, l Yes. Each carousel instance maintains its own independent state. +### What data is removed on uninstall? + +On uninstall, Carousel Kit removes its cached pattern transient (`carousel_kit_patterns_cache`). It does not remove your posts or block content. + ## Changelog See [CHANGELOG.md](CHANGELOG.md) for full release history. @@ -94,13 +98,16 @@ Have a feature request? [Open an issue](https://github.com/rtCamp/carousel-kit/i ## Contributors +- [rtCamp](https://github.com/rtCamp) - [Danish Shakeel](https://github.com/danish17) - [Masud Rana](https://github.com/theMasudRana) -- [rtCamp](https://profiles.wordpress.org/rtcamp) +- [Gagan Deep Singh](https://github.com/gagan0123) +- [Utsav Patel](https://github.com/up1512001) +- [Sagar Tamang](https://github.com/mi5t4n) - [Aviral Mittal](https://github.com/aviral-mittal) - [Vishal Kotak](https://github.com/vishal4669) -- [Aishwarrya Pande](https://github.com/AishwarryaPande) - [Raj Patel](https://github.com/imrraaj) +- [Aishwarrya Pande](https://github.com/AishwarryaPande) ## License diff --git a/carousel-kit.php b/carousel-kit.php index 49c5021..48a9498 100644 --- a/carousel-kit.php +++ b/carousel-kit.php @@ -3,31 +3,47 @@ * Plugin Name: Carousel Kit * Description: Carousel block using Embla and WordPress Interactivity API. * Plugin URI: https://github.com/rtCamp/carousel-kit - * Requires at least: 6.5 - * Requires PHP: 7.4 + * Requires at least: 6.6 + * Requires PHP: 8.2 * Author: rtCamp * Author URI: https://rtcamp.com - * Contributors: iamdanih17, immasud - * License: GPL2 + * Domain Path: /languages + * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html - * Version: 1.0.3 + * Version: 1.0.4 * Text Domain: carousel-kit * * @package carousel-kit */ -define( 'CAROUSEL_KIT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); -define( 'CAROUSEL_KIT_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) ); -define( 'CAROUSEL_KIT_BUILD_PATH', CAROUSEL_KIT_PATH . '/build' ); -define( 'CAROUSEL_KIT_BUILD_URL', CAROUSEL_KIT_URL . '/build' ); +namespace Carousel_Kit; -require_once CAROUSEL_KIT_PATH . '/vendor/autoload.php'; +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +/** + * Define plugin constants. + */ +function constants(): void { + define( 'CAROUSEL_KIT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); + define( 'CAROUSEL_KIT_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) ); + define( 'CAROUSEL_KIT_BUILD_PATH', CAROUSEL_KIT_PATH . '/build' ); + define( 'CAROUSEL_KIT_BUILD_URL', CAROUSEL_KIT_URL . '/build' ); +} + +constants(); + +require_once __DIR__ . '/inc/Autoloader.php'; +if ( ! Autoloader::autoload() ) { + return; +} /** * Plugin loader. */ -function carousel_kit_loader() { - \Carousel_Kit\Plugin::get_instance(); +function carousel_kit_loader(): void { + Plugin::get_instance(); } carousel_kit_loader(); diff --git a/composer.json b/composer.json index 5f9aaf6..69f3344 100644 --- a/composer.json +++ b/composer.json @@ -32,8 +32,7 @@ } ], "require": { - "php": "^8.2", - "scrivo/highlight.php": "^9.18" + "php": "^8.2" }, "require-dev": { "automattic/vipwpcs": "^3.0", @@ -65,7 +64,7 @@ "scripts": { "format": "phpcbf", "lint": "phpcs", - "phpstan": "phpstan analyse --memory-limit=2G", + "phpstan": "phpstan analyse --memory-limit=4G", "test": "phpunit", "test:unit": "phpunit --testsuite unit", "test:coverage": "phpunit --coverage-html tests/_output/coverage" diff --git a/composer.lock b/composer.lock index 719a5fd..ca59430 100644 --- a/composer.lock +++ b/composer.lock @@ -4,87 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c807d59c2478e04aa04acd36971c41e8", - "packages": [ - { - "name": "scrivo/highlight.php", - "version": "v9.18.1.10", - "source": { - "type": "git", - "url": "https://github.com/scrivo/highlight.php.git", - "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/850f4b44697a2552e892ffe71490ba2733c2fc6e", - "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e", - "shasum": "" - }, - "require": { - "ext-json": "*", - "php": ">=5.4" - }, - "require-dev": { - "phpunit/phpunit": "^4.8|^5.7", - "sabberworm/php-css-parser": "^8.3", - "symfony/finder": "^2.8|^3.4|^5.4", - "symfony/var-dumper": "^2.8|^3.4|^5.4" - }, - "suggest": { - "ext-mbstring": "Allows highlighting code with unicode characters and supports language with unicode keywords" - }, - "type": "library", - "autoload": { - "files": [ - "HighlightUtilities/functions.php" - ], - "psr-0": { - "Highlight\\": "", - "HighlightUtilities\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Geert Bergman", - "homepage": "http://www.scrivo.org/", - "role": "Project Author" - }, - { - "name": "Vladimir Jimenez", - "homepage": "https://allejo.io", - "role": "Maintainer" - }, - { - "name": "Martin Folkers", - "homepage": "https://twobrain.io", - "role": "Contributor" - } - ], - "description": "Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js", - "keywords": [ - "code", - "highlight", - "highlight.js", - "highlight.php", - "syntax" - ], - "support": { - "issues": "https://github.com/scrivo/highlight.php/issues", - "source": "https://github.com/scrivo/highlight.php" - }, - "funding": [ - { - "url": "https://github.com/allejo", - "type": "github" - } - ], - "time": "2022-12-17T21:53:22+00:00" - } - ], + "content-hash": "ce07304be6cef4c520c42700f79bcaee", + "packages": [], "packages-dev": [ { "name": "antecedent/patchwork", diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 22519ee..e18f765 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -1,11 +1,11 @@ # Installation ## Requirements -- WordPress 6.5 or higher +- WordPress 6.6 or higher - PHP 8.2 or higher ## Manual Installation -1. Download the `carousel-kit.zip` file from the [Releases](https://github.com/rtCamp/carousel-system-interactivity-api/releases) page. +1. Download the `carousel-kit.zip` file from the [Releases](https://github.com/rtCamp/carousel-kit/releases) page. 2. Log in to your WordPress admin dashboard. 3. Go to **Plugins > Add New Plugin**. 4. Click **Upload Plugin**. @@ -13,8 +13,21 @@ 6. Activate the plugin. ## Composer Installation -If you are managing your WordPress project with Composer: +*Note: If this plugin is not available via WPackagist, use the VCS method below:* -```bash -composer require rtcamp/carousel-kit -``` +1. **Add the repository to your existing `composer.json`:** + + ```json + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/rtCamp/carousel-kit" + } + ] + ``` + +2. **Run the installation command (stable release):** + + ```bash + composer require rtcamp/carousel-kit:^1.0 + ``` diff --git a/examples/data/images/logo-placeholder-1.svg b/examples/data/images/logo-placeholder-1.svg new file mode 100644 index 0000000..83e37d7 --- /dev/null +++ b/examples/data/images/logo-placeholder-1.svg @@ -0,0 +1,7 @@ + + Brand Logo 1 + Placeholder logo image for demo patterns. + + + Brand One + diff --git a/examples/data/images/logo-placeholder-2.svg b/examples/data/images/logo-placeholder-2.svg new file mode 100644 index 0000000..1d31cd7 --- /dev/null +++ b/examples/data/images/logo-placeholder-2.svg @@ -0,0 +1,7 @@ + + Brand Logo 2 + Placeholder logo image for demo patterns. + + + Brand Two + diff --git a/examples/data/images/logo-placeholder-3.svg b/examples/data/images/logo-placeholder-3.svg new file mode 100644 index 0000000..d81de9f --- /dev/null +++ b/examples/data/images/logo-placeholder-3.svg @@ -0,0 +1,7 @@ + + Brand Logo 3 + Placeholder logo image for demo patterns. + + + Brand Three + diff --git a/examples/data/images/logo-placeholder-4.svg b/examples/data/images/logo-placeholder-4.svg new file mode 100644 index 0000000..95d7e9d --- /dev/null +++ b/examples/data/images/logo-placeholder-4.svg @@ -0,0 +1,7 @@ + + Brand Logo 4 + Placeholder logo image for demo patterns. + + + Brand Four + diff --git a/examples/data/images/logo-placeholder-5.svg b/examples/data/images/logo-placeholder-5.svg new file mode 100644 index 0000000..3cd9af9 --- /dev/null +++ b/examples/data/images/logo-placeholder-5.svg @@ -0,0 +1,7 @@ + + Brand Logo 5 + Placeholder logo image for demo patterns. + + + Brand Five + diff --git a/examples/patterns/hero-carousel.php b/examples/patterns/hero-carousel.php index 6be0d10..d041fef 100644 --- a/examples/patterns/hero-carousel.php +++ b/examples/patterns/hero-carousel.php @@ -5,14 +5,24 @@ * Categories: carousel-kit * Description: A full-width hero carousel with large images and overlaid text */ + +// Exit if accessed directly. +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +$pattern_images_url = trailingslashit( CAROUSEL_KIT_URL . '/examples/data/images' ); +$hero_slide_one = $pattern_images_url . 'slide-autoplay-1.webp'; +$hero_slide_two = $pattern_images_url . 'slide-autoplay-2.webp'; +$hero_slide_three = $pattern_images_url . 'slide-autoplay-3.webp'; ?>