PHP code example of lindemannrock / craft-slideshow-manager
1. Go to this page and download the library: Download lindemannrock/craft-slideshow-manager library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lindemannrock / craft-slideshow-manager example snippets
// config/slideshow-manager.php
return [
'autoLoadSwiperCss' => false,
'autoLoadSwiperJs' => false,
];
return [
// Plugin settings
'pluginName' => 'Slideshow',
'autoLoadSwiperCss' => true,
'autoLoadSwiperJs' => true,
'enableCache' => true,
'cacheDuration' => 3600,
'logLevel' => 'error', // debug, info, warning, error
// Default Swiper configuration
'defaultSwiperConfig' => [
// Basic
'loop' => true,
'speed' => 300,
'effect' => 'slide', // slide, fade, cube, coverflow, flip, cards, creative
// Navigation
'navigation' => true,
'navigationVisibility' => 'default', // default, hide-mobile, hide-desktop, mobile-only, desktop-only
// Pagination
'paginationEnabled' => true,
'paginationClickable' => true,
'paginationType' => 'bullets', // bullets, fraction, progressbar
'paginationVisibility' => 'default',
// Autoplay
'autoplayEnabled' => false,
'autoplayDelay' => 3000,
'autoplayDisableOnInteraction' => false,
// Layout
'slidesPerView' => 1,
'spaceBetween' => 0,
'centeredSlides' => false,
// Grid
'gridEnabled' => false,
'gridRows' => 1,
'gridFill' => 'row', // row, column
// Responsive breakpoints
'breakpoints' => [
['width' => 0, 'slidesPerView' => 1, 'spaceBetween' => 0],
['width' => 640, 'slidesPerView' => 1, 'spaceBetween' => 10],
['width' => 768, 'slidesPerView' => 2, 'spaceBetween' => 20],
['width' => 1024, 'slidesPerView' => 3, 'spaceBetween' => 30],
],
// See src/config.php for all available options
],
// Swiper CSS Custom Properties
'swiperCssVars' => [
// Theme
'themeColor' => 'var(--color-brand)',
// Navigation
'navigationColor' => 'var(--color-brand)',
// 'navigationSize' => '44px',
// Pagination
'paginationColor' => 'var(--color-brand)',
// 'paginationBulletSize' => '8px',
// See src/config.php for all available CSS variables
],
];
return [
'*' => [
// Global defaults
'logLevel' => 'error',
'enableCache' => true,
],
'dev' => [
// Development - verbose logging
'logLevel' => 'debug',
'cacheDuration' => 3600, // 1 hour
],
'staging' => [
// Staging - moderate logging
'logLevel' => 'info',
'cacheDuration' => 86400, // 1 day
],
'production' => [
// Production - minimal logging
'logLevel' => 'error',
'cacheDuration' => 2592000, // 30 days
],
];
// config/slideshow-manager.php
return [
'logLevel' => 'error', // error, warning, info, or debug
];
bash
cp vendor/lindemannrock/craft-slideshow-manager/src/config.php config/slideshow-manager.php