forked from Orpheusp/denison-expanding-archives-omeka-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (119 loc) · 4.53 KB
/
index.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
echo head();
function themeOptions($optionName) {
$themeOptionPrefix1 = 'homepage_jumbotron_section_1_';
$themeOptionPrefix2 = 'homepage_jumbotron_section_2_';
$themeOptionPrefix3 = 'homepage_jumbotron_section_3_';
$themeOptionPrefix4 = 'homepage_jumbotron_section_4_';
return array(
get_theme_option($themeOptionPrefix1.$optionName),
get_theme_option($themeOptionPrefix2.$optionName),
get_theme_option($themeOptionPrefix3.$optionName),
get_theme_option($themeOptionPrefix4.$optionName)
);
}
$themeUploadsPath = '/files/theme_uploads/';
$sectionBackgroundImages = themeOptions('background_image');
$sectionTitleIcons = themeOptions('title_icon');
$sectionTitle1s = themeOptions('title_1');
$sectionTitle2s = themeOptions('title_2');
$sectionInfos = themeOptions('info');
$sectionLinks = themeOptions('link');
?>
<?php
function showIntro() {
$themeOption = 'homepage_introduction_content';
$introContent = get_theme_option($themeOption);
echo __($introContent);
}
?>
<div class="container-fluid highlight-jumbotron">
<div class="col-lg-4 col-lg-push-4 col-md-12 homepage-intro">
<div class="homepage-logo">
<p class="sans-serif-800">EXPANDING</p>
<p class="serif-400">ARCHIVE</p>
</div>
<p class="serif-400"><?php showIntro() ?></p>
</div>
<div class="col-lg-4 col-lg-pull-4 col-md-6 col-sm-12">
<!-- section 1 -->
<div class="section">
<?php if (!empty($sectionBackgroundImages[0])): ?>
<img src="<?php echo $themeUploadsPath.$sectionBackgroundImages[0] ?>" class="background">
<?php else: ?>
<div class="background"></div>
<?php endif ?>
<div class="front">
<div class="container">
<span class="glyphicon <?php echo $sectionTitleIcons[0] ?>" aria-hidden="true"></span>
<p class="sans-serif-800"><?php echo $sectionTitle1s[0] ?></p>
<p class="serif-400"><?php echo $sectionTitle2s[0] ?></p>
</div>
</div>
<div class="back">
<p><?php echo $sectionInfos[0] ?></p>
<a href="<?php echo $sectionLinks[0] ?>">LEARN MORE</a>
</div>
</div>
<!-- section 2 -->
<div class="section">
<?php if (!empty($sectionBackgroundImages[1])): ?>
<img src="<?php echo $themeUploadsPath.$sectionBackgroundImages[1] ?>" class="background">
<?php else: ?>
<div class="background"></div>
<?php endif ?>
<div class="front">
<div class="container">
<span class="glyphicon <?php echo $sectionTitleIcons[1] ?>" aria-hidden="true"></span>
<p class="sans-serif-800"><?php echo $sectionTitle1s[1] ?></p>
<p class="serif-400"><?php echo $sectionTitle2s[1] ?></p>
</div>
</div>
<div class="back">
<p><?php echo $sectionInfos[1] ?></p>
<a href="<?php echo $sectionLinks[1] ?>">LEARN MORE</a>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<!-- section 3 -->
<div class="section">
<?php if (!empty($sectionBackgroundImages[2])): ?>
<img src="<?php echo $themeUploadsPath.$sectionBackgroundImages[2] ?>" class="background">
<?php else: ?>
<div class="background"></div>
<?php endif ?>
<div class="front">
<div class="container">
<span class="glyphicon <?php echo $sectionTitleIcons[2] ?>" aria-hidden="true"></span>
<p class="sans-serif-800"><?php echo $sectionTitle1s[2] ?></p>
<p class="serif-400"><?php echo $sectionTitle2s[2] ?></p>
</div>
</div>
<div class="back">
<p><?php echo $sectionInfos[2] ?></p>
<a href="<?php echo $sectionLinks[2] ?>">LEARN MORE</a>
</div>
</div>
<!-- section 4 -->
<div class="section">
<?php if (!empty($sectionBackgroundImages[3])): ?>
<img src="<?php echo $themeUploadsPath.$sectionBackgroundImages[3] ?>" class="background">
<?php else: ?>
<div class="background"></div>
<?php endif ?>
<div class="front">
<div class="container">
<span class="glyphicon <?php echo $sectionTitleIcons[3] ?>" aria-hidden="true"></span>
<p class="sans-serif-800"><?php echo $sectionTitle1s[3] ?></p>
<p class="serif-400"><?php echo $sectionTitle2s[3] ?></p>
</div>
</div>
<div class="back">
<p><?php echo $sectionInfos[3] ?></p>
<a href="<?php echo $sectionLinks[3] ?>">LEARN MORE</a>
</div>
</div>
</div>
</div>
<?php echo foot(array('displayFooter' => false)); ?>