-
Notifications
You must be signed in to change notification settings - Fork 0
/
channels.php
78 lines (75 loc) · 2.8 KB
/
channels.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
$stack['Example'] = array(
'intro' => '',
'shots' => array(
1 => array(
'headline' => 'Helvetica',
'desc' => array('A pure type face, excellent for building awesome robot shirts.','<a href="http://chopshopstore.com/index.php/helbotica.html" target="_blank">Want one?</a>',)
),
2 => array(
'headline' => 'Coffee Time',
'desc' => array('Drinking coffee with a friend is a good thing.', 'Invest in human beans.')
),
3 => array(
'headline' => 'Fishermans Are Bad Ass',
'desc' => array('“My big fish must be somewhere.”','— Ernest Hemingway, <em>The Old Man and the Sea</em>')
),
4 => array(
'headline' => 'Flippity-flops!',
'desc' => array('Nothin\' beats a broked-in pair of flip-flops.')
),
5 => array(
'headline' => 'Everyone Loves A Good Bokeh',
'desc' => array('Blur that light source and ramp-up you some saturations!')
),
6 => array(
'headline' => 'Autumn Spirals And Winter Is Inevitable',
'desc' => array('Behind the sweet summer fade, and on a coast not far away... Sometimes we glide, sometimes we fall, and there are times we don\'t get up at all.','<em>— The Submarines</em>')
),
7 => array(
'headline' => 'Everything Has Been Made',
'desc' => array('And the walls kept tumbling down in the city that we love. Great clouds roll over the hills, bringing darkness from above.','<em>— Bastille</em>')
)
)
);
foreach($stack as $name => $data)
{
$key = str_replace(' ','-',strtolower($name));
?>
<article>
<div class="radioshow radioshow-fade slide-right">
<?php
foreach($data['shots'] as $shot => $bits)
{
$next_shot = $shot == count($stack[$name]['shots']) ? 1 : $shot+1;
?>
<input class="trigger" type="radio" name="<?php echo $key ?>-flip" id="<?php echo $key ?>-flip-<?php echo $shot; ?>"<?php echo $shot == 1 ? 'checked="checked"' : '' ?> />
<label class="cue" for="<?php echo $key ?>-flip-<?php echo $shot; ?>" data-title="<?php echo $bits['headline'] ?>"><span><?php echo $shot ?></span></label>
<div class="story" style="background-image:url(images/<?php echo $key ?>-<?php echo $shot ?>.jpg);">
<?php /* <img src="images/<?php echo $key ?>-<?php echo $shot ?>.jpg" /> */ ?>
<div class="text">
<div class="padme">
<label class="next button" for="<?php echo $key ?>-flip-<?php echo $next_shot; ?>">
<?php echo $shot == count($stack[$name]['shots']) ? 'Start Over' : 'Next'; ?>
</label>
<h2><?php echo $bits['headline'] ?></h2>
<?php
if(count($bits['desc']) > 0)
{
foreach($bits['desc'] as $text)
{
?>
<p><?php echo $text ?></p>
<?php
}
}
?>
</div>
</div>
</div>
<?php } ?>
</div>
</article>
<?php
}
?>