-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagecontent-staff.php
51 lines (47 loc) · 1.58 KB
/
pagecontent-staff.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
<?php $t =& peTheme(); ?>
<?php $content =& $t->content; ?>
<?php $meta =& $content->meta(); ?>
<section class="about" id="<?php $content->slug(); ?>">
<div class="inner">
<h2><?php $content->title(); ?>
<i class="title_line"></i>
</h2>
<?php if (!empty($meta->staff->subtitle)): ?>
<p class="lead"><?php echo __($meta->staff->subtitle); ?></p>
<?php endif; ?>
<?php if (!empty($meta->staff->members)): ?>
<?php if ($content->customLoop(
"staff",-1,null,
array(
"post__in" => $meta->staff->members,
"orderby" => "post__in"
),false)):
?>
<ul id="portraits">
<?php while ($content->looping() ) : ?>
<?php $meta =& $content->meta(); ?>
<li>
<?php $content->img(220,180); ?>
<span class="name"><?php $content->title(); ?></span><br/>
<?php if (!empty($meta->info->position)): ?>
<span class="poste"><?php echo $meta->info->position; ?></span><br/>
<?php endif; ?>
<span class="whathedo">
<?php if (!empty($meta->info->twitter)): ?>
<a href="<?php echo esc_url($meta->info->twitter); ?>"><i class="icon">L</i></a>
<?php endif; ?>
<?php if (!empty($meta->info->linkedin)): ?>
<a href="<?php echo esc_url($meta->info->linkedin); ?>"><i class="icon">I</i></a>
<?php endif; ?>
<?php if (!empty($meta->info->facebook)): ?>
<a href="<?php echo esc_url($meta->info->facebook); ?>"><i class="icon">F</i></a>
<?php endif; ?>
</span>
</li>
<?php endwhile; ?>
<?php $content->resetLoop(); ?>
</ul>
<?php endif; ?>
<?php endif; ?>
</div>
</section>