forked from chriscoyier/Slides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.php
40 lines (26 loc) · 958 Bytes
/
setup.php
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
<?php
// Put your logo in the images folder. Alpha transparent PNG @ 64px x 24px
// Title of your Presentation
$presentationTitle = "My Amazing Slide Deck";
// Brand Name (like alt text for logo kinda)
$brand = "Brand";
// Put file names and names of slides here
// This could probably be improved...
$pageNames = array(
'1-intro.php' => 'This is my <strong>amazing</strong> first slide',
'2-whatever.php' => 'You like <strong>code</strong> don\'t you?',
'3-graphic.php' => 'Thank you <strong>very</strong> much.'
);
// Nerd alert
$currentFile = $_SERVER["SCRIPT_NAME"];
$parts = Explode('/', $currentFile);
$currentFile = $parts[count($parts) - 1];
$slideTitle = $pageNames[$currentFile];
$thisDirectory = opendir(".");
while($entryName = readdir($thisDirectory)) {
$slidesArray[] = $entryName;
}
closedir($thisDirectory);
sort($slidesArray);
$slideCount = count($slidesArray);
?>