Your IP : 216.73.216.165


Current Path : /var/www/html/wp-content/themes/church-event/templates/shortcodes/
Upload File :
Current File : /var/www/html/wp-content/themes/church-event/templates/shortcodes/team_member.php

<?php
	$content   = trim($content);
	$icons_map = array(
		'googleplus' => 'googleplus',
		'linkedin'   => 'linkedin',
		'facebook'   => 'facebook',
		'twitter'    => 'twitter',
		'youtube'    => 'youtube',
		'pinterest'  => 'pinterest',
		'lastfm'     => 'lastfm',
		'instagram'  => 'instagram',
		'dribble'    => 'dribbble2',
		'vimeo'      => 'vimeo',
	);
?>
<div class="team-member<?php echo (!empty($content) ? ' has-content' : '')?>">
	<?php if(!empty($picture)): ?>
	<div class="thumbnail">
		<?php if(!empty($url)):?>
			<a href="<?php echo $url ?>" title="<?php echo $name?>">
		<?php endif ?>
			<?php wpv_url_to_image( $picture ) ?>
		<?php if(!empty($url)):?>
			</a>
		<?php endif ?>
	</div>
	<?php endif ?>
	<div class="team-member-info">
		<h4>
			<?php if(!empty($url)):?>
				<a href="<?php echo $url ?>" title="<?php echo $name?>">
			<?php endif ?>
				<?php echo $name?>
			<?php if(!empty($url)):?>
				</a>
			<?php endif ?>
		</h4>
		<?php if(!empty($position)): ?>
			<h6 class="team-member-position"><?php echo $position ?></h6>
		<?php endif ?>
		<?php if(!empty($email)):?>
			<div><a href="mailto:<?php echo $email ?>" title="<?php printf(__('email %s', 'church-event'), $name)?>"><?php echo $email?></a></div>
		<?php endif ?>
		<?php if(!empty($phone)):?>
			<div class="team-member-phone"><?php echo $phone?></div>
		<?php endif ?>
		<div class="share-icons clearfix">
			<?php
				$icons = array_keys( $icons_map );
				foreach($icons as $icon): if(!empty($$icon)):  // that's not good enough, should be changed
					$icon_name = isset( $icons_map[$icon] ) ? $icons_map[$icon] : $icon;
			?>
					<a href="<?php echo $$icon?>" title=""><?php echo do_shortcode('[icon name="'.$icon_name.'"]'); ?></a>
			<?php endif; endforeach; ?>
		</div>
	</div>
</div>