-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfaculty-directory-index.php
More file actions
120 lines (117 loc) · 3.1 KB
/
Copy pathfaculty-directory-index.php
File metadata and controls
120 lines (117 loc) · 3.1 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
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
<?php
$teachers = get_users(array('role' => 'hths_teacher'));
?>
<style type="text/css">
#teacherbox_container {
overflow: auto;
}
.teacherbox_outer {
width: 50%;
float: left;
}
.teacherbox_outer:nth-child(odd) {
clear: left;
}
.teacherbox {
margin: 10px;
padding: 10px 10px 17px 10px;
box-shadow: 0px 2px 15px #DDD;
border-left: 1px solid #CCC;
border-top: 1px solid #CCC;
border-right: 1px solid #CCC;
position: relative;
}
.teacherbox:after {
content: "";
width: 100%;
position: absolute;
bottom: 0px;
left: 0px;
border-bottom: 7px solid #A70000;
}
.teacherbox_info {
height: 101px;
}
.teacherbox_photo {
float: left;
width: 80px;
height: 100%;
overflow: hidden;
}
.teacherbox_photo img {
width: 80px;
height: auto;
}
.teacherbox_links {
margin-left: 90px;
height: 100%;
}
.teacherbox_link {
display: block;
width: 100%;
height: 25px;
margin-bottom: 10px;
border: 1px solid #CCC;
background-color: #777;
color: #FFF !important;
font-size: 15px;
text-transform: uppercase;
font-weight: bold;
line-height: 25px;
text-indent: 7px;
text-shadow: -1px -1px #000;
box-shadow: 2px 2px 3px #AAA;
}
.teacherbox_link:active {
box-shadow: 1px 1px 3px #AAA;
}
.teacherbox_link_left {
float: left;
width: 47%;
}
.teacherbox_link_right {
margin-left: 53%;
width: 47%;
clear: right;
}
.teacherbox_title {
clear: both;
margin-top: 10px;
}
.teacherbox_name {
font-size: 15pt;
font-weight: bold;
}
.teacherbox_subject {
text-transform: uppercase;
font-size: 10pt;
}
</style>
<div id="content_left">
<div id="content_left_above">
<div class="fancybox">
<h2 class="fancytitle black">Teachers & Faculty</h2>
<div id="teacherbox_container">
<?php foreach($teachers as $teacher): ?>
<div class="teacherbox_outer">
<div class="teacherbox">
<div class="teacherbox_info">
<div class="teacherbox_photo"><?php userphoto($teacher); ?></div>
<div class="teacherbox_links">
<a class="teacherbox_link" href="?teacher=<?=$teacher->get('user_login')?>">About</a>
<a class="teacherbox_link teacherbox_link_left" href="#">Blog</a>
<a class="teacherbox_link teacherbox_link_right" href="#">Pages</a>
<a class="teacherbox_link" href="#">Contact</a>
</div>
</div>
<div class="teacherbox_title">
<div class="teacherbox_name" title="Teacher's Name"><?=$teacher->get('display_name')?></div>
<div class="teacherbox_subject" title="Teacher's Subject"><?=$teacher->get('subject')?></div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>