Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Asmund.Birkeland
visgroup-webpages
Commits
607b8ff2
Commit
607b8ff2
authored
Nov 07, 2019
by
Juraj
Browse files
Testing new section in People
parent
be59e83f
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/visgroup/team.php
View file @
607b8ff2
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment