Commit 0d58485d authored by Yngve Sekse Kristiansen's avatar Yngve Sekse Kristiansen
Browse files

Syncing server and git

parent 586ca7a5
This diff is collapsed.
......@@ -91,7 +91,7 @@ $team_posts = get_posts(array(
<?php
foreach ($team_posts as $post):
setup_postdata($post);
if (get_field('team_alumni')) {
if (get_field('team_alumni') || get_field('associated_project_members')) {
continue;
}
// Resize and CDNize thumbnails using Automattic Photon service
......@@ -158,6 +158,7 @@ $team_posts = get_posts(array(
</div>
<h1>Alumni</h1>
<div class="content col-md-12">
......@@ -205,7 +206,57 @@ $team_posts = get_posts(array(
<?php endforeach; ?>
</div>
</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> <!-- End of content col-md-8 -->
<aside class="sidebar col-md-3 col-md-offset-1 col-bordered" >
<hr class="visible-sm visible-xs lg">
<div class="widget_categories widget widget__sidebar" id="custom_sidebar" style="">
......@@ -228,9 +279,8 @@ $team_posts = get_posts(array(
?>
</ul>
</div>
</aside>
</div>
</div>
......
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