-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.php
More file actions
60 lines (59 loc) · 2.65 KB
/
example.php
File metadata and controls
60 lines (59 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
include 'bc.php';
use n1ghteyes\bootstrapCarousel as bc;
$banners = new bc(TRUE);
$banners
->DefaultCarousel
->addSlide([
'/enom/bootstrap-carousel-php/images/113937.jpg' => ['title' => 'This is a default Carousel, with a Title'],
'/enom/bootstrap-carousel-php/images/Memoria_Tent_unbranded.jpg' => ['title' => 'This Slide has a Title', 'caption' => 'It also has a caption']
]);
$banners
->NoNavCarousel
->configCarousel(['nav' => FALSE, 'slideDots' => FALSE])
->addSlide([
'/enom/bootstrap-carousel-php/images/113937.jpg' => ['title' => 'This Carousel has no Nav'],
'/enom/bootstrap-carousel-php/images/Memoria_Tent_unbranded.jpg' => ['title' => 'This Carousel has no Nav'],
]);
$banners
->DifferentNavCarousel
->configCarousel(['leftIcon' => 'fa fa-angle-double-left', 'rightIcon' => 'fa fa-angle-double-right'])
->addSlide([
'/enom/bootstrap-carousel-php/images/113937.jpg' => ['title' => 'This Carousel has different Nav icons'],
'/enom/bootstrap-carousel-php/images/Memoria_Tent_unbranded.jpg' => ['title' => 'This Carousel has different Nav icons'],
]);
$banners
->SlowCarousel
->configCarousel(['interval' => 5000])
->addSlide([
'/enom/bootstrap-carousel-php/images/113937.jpg' => ['title' => 'This Carousel Scrolls slower (every 5 seconds)'],
'/enom/bootstrap-carousel-php/images/Memoria_Tent_unbranded.jpg' => ['title' => 'This Carousel Scrolls slowly (every 9 seconds)'],
]);
?>
<!DOCTYPE html>
<html>
<head>
<title>Hello</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<?php print $banners->build('DefaultCarousel'); ?>
<br /><br />
<?php print $banners->build('NoNavCarousel'); ?>
<br /><br />
<?php print $banners->build('DifferentNavCarousel'); ?>
<br /><br />
<?php print $banners->build('SlowCarousel'); ?>
<br /><br />
</div>
</body>
</html>