Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2017 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c778ace061adba76a7c6d1884f59b9a9 to your computer and use it in GitHub Desktop.
Save anonymous/c778ace061adba76a7c6d1884f59b9a9 to your computer and use it in GitHub Desktop.
function business_park_render_team_section( $content_details = array() ) {
$options = business_park_get_theme_options();
if ( empty( $content_details ) ) {
return;
}
$section_layout = apply_filters( 'business_park_filter_section_layout', $content_details );
?>
<section id="team">
<div class="overlay"></div>
<div class="container">
<header class="entry-header">
<h2 class="entry-title"><?php echo esc_html( $options['team_section_title'] );?></h2>
</header>
<div class="entry-content">
<?php foreach ( $content_details as $content ):?>
<div class="<?php echo esc_attr( $section_layout );?>-col">
<div class="team-member">
<?php if ( ! empty( $content['img_array'] ) ) { ?>
<div class="team-image">
<a href="<?php echo esc_url( $content['url'] );?>">
<img width="<?php echo esc_attr( $content['img_array'][1] );?>" height="<?php echo esc_attr( $content['img_array'][2] );?>" src="<?php echo esc_url( $content['img_array'][0] ); ?>" />
</a>
</div><!-- end .team-image -->
<?php }?>
<div class="team-description">
<?php if ( ! empty( $content['position'] ) ) { ?>
<span class="position"><?php echo esc_html( $content['position'] );?></span>
<?php }?>
<?php if ( ! empty( $content['title'] ) ) { ?>
<h4 class="name"><a href="<?php echo esc_url( $content['url'] );?>"><?php echo esc_html( $content['title'] );?></a></h4>
<?php }?>
</div><!-- end .team-description -->
<ul class="social-icons">
<?php if ( ! empty( $content['facebook'] ) ) { ?>
<li class="icon-animation icon-hover-effect"><a href="<?php echo esc_url( $content['facebook'] );?>"target="_blank" class="icon-hover"></a></li>
<?php } ?>
<?php if ( ! empty( $content['twitter'] ) ) { ?>
<li class="icon-animation icon-hover-effect"><a href="<?php echo esc_url( $content['twitter'] );?>" target="_blank"class="icon-hover"></a></li>
<?php } ?>
<?php if ( ! empty( $content['linkedin'] ) ) { ?>
<li class="icon-animation icon-hover-effect"><a href="<?php echo esc_url( $content['linkedin'] );?> " target="_blank" class="icon-hover"></a></li>
<?php } ?>
</ul>
</div><!-- end .team-meber -->
</div><!-- end .four-col -->
<?php endforeach; ?>
<div class="clear"></div>
</div><!-- end .entry-content -->
</div><!-- end .container -->
</section><!-- end #team -->
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment