PHP code example of hypejunction / hypeslider

1. Go to this page and download the library: Download hypejunction/hypeslider 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/ */

    

hypejunction / hypeslider example snippets


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,
	),
));