-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathright-bar-footer.php
128 lines (116 loc) · 4.52 KB
/
right-bar-footer.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
<?php $json = json_decode(file_get_contents('configuration/config.json'), true); ?>
</div>
</div>
<div id="right-bar" class="flex flex-column col-2" style="background: whitesmoke">
<div id="top" class="flex">
<div style="color:white;width:0;height:0;border-top:40px solid transparent;border-bottom: 40px solid transparent;border-left: 40px solid #191970;">
</div>
<div class="close-dates"><a href="#" style=""><i class="fa fa-2x fa-arrow-circle-right" aria-hidden="true"></i></a></div>
<div id="title" class="bold">IMPORTANT DATES</div>
</div>
<div id="content" class="flex-auto">
<ul class="list-reset">
<?php
//Print out all the deadlines from the config file
$dates = $json['dates'];
for ($i = 0; $i < count($dates); $i++) {
if($dates[$i]['showInNavBar']){
echo '<li>
<div class="title">'.$dates[$i]['title'].'</div>
<div class="date"><i class="fa fa-lg fa-calendar" aria-hidden="true"></i>
'.$dates[$i]['date'].'</div>
</li>';
}
}
?>
<li style="font-size:small;color:red;text-transform:uppercase;cursor:pointer"><a target="_blank" href="resources/CCTA2017.call.for.papers.pdf">Download the call for papers</a></li>
</ul>
</div>
</div>
</div>
<div id="footer" class="flex-column">
<div id="link-section" class="flex flex-wrap">
<div class="footer-items left flex-auto">
<?php
//Print out footer info from the config file
$obj = $json['footerLinks']['firstSection'];
echo '<div class="title">'.$obj['title'].'</div>';
echo '<ul class="list-reset">';
for ($i = 0; $i < count($obj['links']); $i++) {
if($obj['links'][$i]['openInNewWindow']){
$target = "_blank";
}else{
$target = "";
}
echo '<li><a target="'.$target.'" href="'.$obj['links'][$i]['link'].'">'.$obj['links'][$i]['name'].'</a></li>';
}
echo '</ul>';
?>
</div>
<div class="footer-items right flex-auto">
<?php
//Print out footer info from the config file
$obj = $json['footerLinks']['secondSection'];
echo '<div class="title">'.$obj['title'].'</div>';
echo '<ul class="list-reset">';
for ($i = 0; $i < count($obj['links']); $i++) {
if($obj['links'][$i]['openInNewWindow']){
$target = "_blank";
}else{
$target = "";
}
echo '<li><a target="'.$target.'" href="'.$obj['links'][$i]['link'].'">'.$obj['links'][$i]['name'].'</a></li>';
}
echo '</ul>';
?>
</div>
<div class="footer-items left flex-auto">
<?php
//Print out footer info from the config file
$obj = $json['footerLinks']['thirdSection'];
echo '<div class="title">'.$obj['title'].'</div>';
echo '<ul class="list-reset">';
for ($i = 0; $i < count($obj['links']); $i++) {
if($obj['links'][$i]['openInNewWindow']){
$target = "_blank";
}else{
$target = "";
}
echo '<li><a target="'.$target.'" href="'.$obj['links'][$i]['link'].'">'.$obj['links'][$i]['name'].'</a></li>';
}
echo '</ul>';
?>
</div>
<div class="footer-items right flex-auto">
<?php
//Print out footer info from the config file
$obj = $json['footerLinks']['fourthSection'];
echo '<div class="title">'.$obj['title'].'</div>';
echo '<ul class="list-reset">';
for ($i = 0; $i < count($obj['links']); $i++) {
if($obj['links'][$i]['openInNewWindow']){
$target = "_blank";
}else{
$target = "";
}
echo '<li><a target="'.$target.'" href="'.$obj['links'][$i]['link'].'">'.$obj['links'][$i]['name'].'</a></li>';
}
echo '</ul>';
?>
</div>
</div>
<div id="bottom-section" class="flex justify-center">
<div class="center">
© IEEE <?php echo $json['meta']['conferenceName'] ?>
<br><br>
<a target="_blank" href="<?php echo $json['socialMediaLinks']['facebook'] ?>"><i class="fa fa-3x fa-facebook"></i></a>
<a target="_blank" href="<?php echo $json['socialMediaLinks']['twitter'] ?>"><i class="fa fa-3x fa-twitter"></i></a>
<!-- <a target="_blank" href="<?php echo $json['socialMediaLinks']['linkedin'] ?>"><i class="fa fa-3x fa-linkedin"></i> </a> -->
</div>
<div class="">
</div>
</div>
</div>
</div>
</body>
</html>