| 开发者 | designsbyshahzad |
|---|---|
| 更新时间 | 2025年12月25日 01:14 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
christmas (snow/twinkles), halloween (ghosts/pumpkins + fog overlay), valentines (hearts + confetti), newyear (occasional fireworks bursts), easter (eggs & bunnies, occasional large egg drop), thanksgiving (falling leaves + occasional turkey popup), independence (fireworks + occasional flag/spark bursts), diwali (lights/diya sparkles + occasional diya popup), hanukkah (menorah sparkles + occasional menorah popup), and generic (custom graphics: rain/stars/bubbles or an uploaded background).enabled, optional schedule with start/end dates, density, speed, and color for effects that use color (the admin shows color pickers only for effects that accept color).generic effect can use an uploaded background (custom_bg) and an uploaded custom cursor image (custom_cursor_image). When custom_bg is set the plugin creates a lightweight animated background element instead of particles.custom_cursor is enabled the front-end will attempt to use a provided custom_cursor_image or bundled SVG image as an overlay cursor (implemented by the public JS initializer).prefers-reduced-motion setting, supports a site-level motion_reduced admin toggle, and prints a small per-user motion toggle (stored in localStorage). When reduced motion is active, visual initialization is skipped.seasonSparkSettings and seasonSparkImages for front-end initialization and ships the tsparticles bundle under assets/vendor/tsparticles/.Effects, Settings, and For Devs.generic effect.seasonspark_get_registered_effects (modify the list of effects), seasonspark_settings_for_js (filter settings passed to front-end JS), and seasonspark_images_for_js (filter the image mapping sent to JS).valentines effect is enabled on activation.assets/; the plugin enqueues only enabled effect scripts to keep the front-end lightweight.season-spark folder to the /wp-content/plugins/ directory.No. Effects are decorative, output in aria-hidden containers, and rendered on canvas or as non-semantic visual overlays; they do not alter semantic page content.
Use the seasonspark_get_registered_effects filter to add a new key/title pair, and add a corresponding JS file under assets/js/effects/ that calls seasonSparkRegisterEffect('yourkey', fn) to register an initializer for that effect.