<div id="module_<?php echo($module_instance_id); ?>" class="module team-module <?php echo($module_class); ?>">
	<?php
	if($title && $title_heading_level)
	{
		?><<?php echo($title_heading_level); ?> class="module-title"><?php echo($title); ?></<?php echo($title_heading_level); ?>><?php
	}
	if($top_text)
	{
		?><div class="team-top-text"><?php echo($top_text); ?></div><?php
	}
	?>
	<style>
	.team-module .photo-frame
	{
		width: <?php echo($circle_size); ?>px;
		height: <?php echo($circle_size); ?>px;
		border-radius: <?php echo($circle_size); ?>px;
	}
	</style>

	<div class="row">
		<?php
		for($i=1; $i<=$number_of_members; $i++)
		{
			$name 		= "name$i";
			$title 		= "title$i";
			$link 		= "link$i";
			$photo 		= "photo_path$i";
			$facebook 	= "facebook$i";
			$twitter 	= "twitter$i";
			$gplus 		= "gplus$i";
			?>
			<div class="col-12 col-sm-6 col-md-<?php echo($column_size); ?>">
				<div class="photo-frame" style="background-image: url(<?php echo($$photo); ?>);"><?php if($$link) { ?><a href="<?php echo($$link); ?>" title="About <?php echo($$name); ?>"></a><?php } ?></div>
				<div class="team-name">
					<?php
					if($$link)
					{
						?><a href="<?php echo($$link); ?>" title="About <?php echo($$name); ?>"><?php
					}
					echo($$name);
					if($$link)
					{
						?></a><?php
					}
					?>
				</div>
				<div class="team-title"><?php echo($$title); ?></div>
				<div class="team-social">
					<?php
					if($$facebook)
					{
						?><a href="<?php echo($$facebook); ?>" target="_blank" title="Facebook"><em class="fab fa-fw fa-2x fa-facebook-square" aria-hidden="true"></em></a><?php
					}
					if($$twitter)
					{
						?><a href="<?php echo($$twitter); ?>" target="_blank" title="Twitter"><em class="fab fa-fw fa-2x fa-twitter-square" aria-hidden="true"></em></a><?php
					}
					if($$gplus)
					{
						?><a href="<?php echo($$gplus); ?>" target="_blank" title="Google Plus"><em class="fab fa-fw fa-2x fa-google-plus-square" aria-hidden="true"></em></a><?php
					}
					?>
				</div>
			</div>
			<?php
		}
		?>
	</div>

	<?php
	if($bottom_text)
	{
		?><div class="team-top-text"><?php echo($bottom_text); ?></div><?php
	}
	?>
</div>
