Commit 607b8ff2 authored by Juraj's avatar Juraj
Browse files

Testing new section in People

parent be59e83f
......@@ -172,6 +172,58 @@ $team_posts = get_posts(array(
<?php endforeach; ?>
</div>
<!-- Added new section by Juraj -->
<h1>Associated project members</h1>
<div class="content col-md-12">
<?php
foreach ($team_posts as $post):
setup_postdata($post);
if (!(get_field('associated_project_members'))) {
continue;
}
// Resize and CDNize thumbnails using Automattic Photon service
$thumb_src = null;
if (has_post_thumbnail($post->ID)) {
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'team-thumb');
$thumb_src = $src[0];
}
?>
<div class="content col-md-6 col-xs-12">
<div class="row team-entry" >
<div class="team-image" >
<?php if (has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<img src=<?php echo $thumb_src?> </img>
</a>
<?php else: ?>
<img src= "<?php bloginfo('template_directory');?>/images/noimage.png"/>
<?php endif; ?>
</div>
<div class="team-info">
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<h4><?php the_field('team_position'); ?></h4>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<aside class="sidebar col-md-3 col-md-offset-1 col-bordered" >
<hr class="visible-sm visible-xs lg">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment