Skip to content

About

Showing a simple slideshow by shortcode.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Simple Slideshow Plugin

Description

Showing a simple slideshow by shortcode.

Features

  • Add, remove, and reorder images via the admin panel.
  • Use the [simple-slideshow] shortcode to embed slideshows.
  • Responsive design and lightweight.

Installation

  1. Upload the simple-slideshow folder to wp-content/plugins/.
  2. Activate the plugin via the WordPress admin panel.
  3. Navigate to "Simple Slideshow" to configure.

Libraries Used

Configure NPM

Set up NPM to automatically convert SCSS to CSS, minify JavaScript, generate .opt language files, and create a distributable plugin ZIP file.

  1. Initial Setup: Run npm install.
  2. Development Mode: Run npm run watch for live reloading.
  3. Build for Production: Run npm run build.
  4. Create Distributable: Run npm run publish.

PHPUnit Test

First, install Composer by running the composer install command.

To set up PHPUnit testing, follow these steps:

  1. Create a testing database.
  2. Configure the database settings in /tests/wp-config.php.
  3. Place the distributable plugin inside the /plugins/my-plugin/wordpress/wp-content/plugins/ folder.
  4. Finally, run the composer test command to execute the defined tests.

WordPress Coding Standards Test

composer phpcs
composer phpcbf

Use of Shortcode

Parameter Type Default Description
slidesperview Integer 1 Number of slides to show per view.
loop Boolean true Whether to loop the slides (slides will continuously cycle).
autoplay Boolean false Whether to automatically play the slides on a timer.
navigation Boolean false Whether to display navigation buttons (arrows) for manual control.
pagination Boolean false Whether to display pagination dots for navigating slides.

Example shortcode: [simple-slideshow slidesperview="4" loop="yes" navigation="yes" pagination="yes"]

Demo

A working demo is available here.

About

Showing a simple slideshow by shortcode.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages