pessek / hypeslider
Content sliders
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=7.0
- bower-asset/slick-carousel: ^1.8
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-11-29 06:10:22 UTC
README
Responsive slider based on Slick.js
Screenshots
Add a slider
To add a new slider to a page:
echo elgg_view('page/components/slider', array( // An array of slides 'slides' => array( 0 => elgg_view('my/awesome/slide', array( 'headline' => 'Best headline ever', )), 1 => elgg_view('output/img', array( 'src' => 'http://www.menucool.com/slider/jsImgSlider/images/image-slider-1.jpg', )), 2 => elgg_view('output/img', array( 'src' => 'http://www.menucool.com/slider/jsImgSlider/images/image-slider-2.jpg', )), 3 => elgg_view('output/img', array( 'src' => 'http://www.menucool.com/slider/jsImgSlider/images/image-slider-3.jpg', )), 4 => elgg_format_element('iframe', array( 'src' => 'https://player.vimeo.com/video/3689348', 'height' => 306, 'width' => 700, 'frameborder' => 0, 'webkitallowfullscreen' => true, 'mozallowfullscreen' => true, 'allowfullscreen' => true, )) ), // Slick slider settings 'slick' => array( 'slidesToShow' => 2, 'slidesToScroll' => 1, 'speed' => 500, 'dots' => true, 'autoplay' => true, 'autoplaySpeed' => 2000, ), ));
Notes
- For a full list of slick slider settings, see: http://kenwheeler.github.io/slick/