This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
/
content-staff.php
executable file
·42 lines (38 loc) · 1.87 KB
/
content-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
<!-- content-staff -->
<?php while (have_posts()) : the_post(); ?>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php
$contentLength = 250;
$staff = ciGetAllStaff(100, $contentLength);
?>
<div class="staff"> <?php
foreach( $staff as $i => $staffMember ) {
if( $i % 2 == 0 ) { ?>
<div class="row"><?php
}?>
<div id="post-<?php echo $staffMember['id']; ?>" class="main individual-post mb35 col-md-6" itemscope itemtype="http://schema.org/Person"><?php
if( $staffMember['imgURL'] != '' ) { ?>
<div class="text-center">
<a href="<?php echo $staffMember['url']; ?>" title="<?php echo $staffMember['title']; ?>" class="staff-photo-link">
<img class="mb0 stsaff-photo" src="<?php echo $staffMember['imgURL']; ?>" alt="<?php echo $staffMember['title']; ?>" width="<?php echo $staffMember['imgWidth']; ?>" height="<?php echo $staffMember['imgHeight']; ?>" itemprop="image">
</a><?php
if( !ciStaffSocialURLsAreEmpty($staffMember['socialURLs']) )
ciPrintSocialLinks( $staffMember['socialURLs'], 'in-staff-list' ); ?>
</div><?php
} ?>
<h2><a href="<?php echo $staffMember['url']; ?>" title="<?php echo $staffMember['title']; ?>" itemprop="name" class="staff-name"><?php echo $staffMember['title']; ?></a></h2> <?php
echo $staffMember['content'];
if( strlen(strip_tags($staffMember['fullContent'], '<p>')) > strlen($staffMember['content'])) {?>
<a href="<?php echo $staffMember['url']; ?>" class="btn">Read <?php echo $staffMember['title']; ?>'s full bio</a><?php
}
?>
<div class="clr"></div>
</div><!-- /.main --> <?php
if( $i % 2 == 1 ) { ?>
</div><?php
}
} ?>
</div>