{# block page %}
<section id="team{{ page.sub_group ? '_sub_' ~ page.sub_group }}" class="team gray-bg">
	<h1>{{ page.name }}</h1>
	<div class="container">
		{% block title %}
			<div class="row os-animation text-center" data-os-animation="fadeInUp">
				<div class="col-md-6 col-sm-6 col-xxs-12 title-text">
					<h2 class="title">{{ page.name }}</h2>
				</div>
				<div class="col-md-6 col-sm-6 col-xxs-12 simple-text">
					<h3 class="description text-left">{{ page.desc }}</h3>
				</div>
			</div>
		{% endblock %}
		
		{% block content %}
			<div class="row os-animation" data-os-animation="fadeInUp">

				{% for member in data.members %}

					{% set social_html = '' %}
					{% for social in ['facebook', 'twitter', 'linkedin', 'url', 'email'] %}
						{% if member[social] %}
							{% set social_html = social_html ~ '<a href="' ~ (social == 'email' ? 'mailto:' ~ member[social] : '/l.php?l=' ~ social ~ '&amp;id=' ~ member.id_team) ~ '" target="_blank"' ~ ( social == 'url' ? ' title="' ~ text.misc.link_externo ~ '"' ) ~ ' rel="nofollow"><i class="fa fa-' ~ (classes[social]) ~ '"></i></a>' %}
						{% endif %}
					{% endfor %}
					
					{% block article %}
						<article class="col-md-{{ cols }} team-details os-animation text-center" data-os-animation="bounceIn">
							<h1>{{ member.name }}</h1>
							<figure class="team-profile">
								{% block article_image %}
									<div class="article-image">
										<div>
											<img src="/{{ member.src }}" alt="{{ member.name }}" />
										</div>
									</div>
								{% endblock %}
								
								{% block article_content %}
									{% set desc = (member.desc | preg_replace('@^\s*<p>@', '') | preg_replace('@</p>\s*<p>@', '<br>') | preg_replace('@</p>\s*$@', '') | raw) %}
									{% if desc or social_html %}
										<figcaption class="text-center our-team">
											{% if desc %}
												<p class="content-white text-center">{{ desc | raw }}</p>
											{% endif %}
											{% if social_html %}
												{% block article_social %}
													<div class="orange-line"></div>
													<div class="social">
														{{ social_html | raw }}
													</div>
												{% endblock %}
											{% endif %}
										</figcaption>
									{% endif %}
								{% endblock %}
							</figure>
							{% block article_title %}
								<div class="namerol">
									<h2 class="title">{{ member.name }}</h2>
									<div class="orange-line text-center"></div>
									<p class="content">{{ member.job | preg_replace(cleaner.p.regex, cleaner.p.replace) | raw }}</p>
								</div>
							{% endblock article_title %}
						</article>
					{% endblock article %}
				{% endfor %}
			</div>
		{% endblock content %}
	</div>
</section>
{% endblock page #}

{% block page %}
<section id="team{{ page.sub_group ? '_sub_' ~ page.sub_group }}" class="team container-fluid section">
	{% set carousel_id = page.group ~ (page.sub_group ? '-sub-' ~ page.sub_group) %}
	
	<header class="title mobile-center">
		<h1>{{ page.name }}</h1>
		{% block title %}
			<h2 class="text-center">{{ page.name }}</h2>
			<h3 class="text-center">{{ page.desc }}</h3>
		{% endblock %}
	</header>
	
	{# <div class="row">
		<div class="col-sm-4 product-wrapper">
			<div class="product">
				<a href="product-single.html">
					<img src="http://placehold.it/169x299" alt="Beer can mockup">
				</a>
				<h3>Pale ale</h3>
				<h4>&dollar;4.75</h4>
			</div>
		</div>
	</div> #}
	
	<div class="container">
		{% block content %}
			<div class="row">

				{% for member in data.members %}

					{% set social_html = '' %}
					{% for social in ['facebook', 'twitter', 'linkedin', 'url', 'email'] %}
						{% if member[social] %}
							{% set social_html = social_html ~ '<a href="' ~ (social == 'email' ? 'mailto:' ~ member[social] : '/l.php?l=' ~ social ~ '&amp;id=' ~ member.id_team) ~ '" target="_blank"' ~ ( social == 'url' ? ' title="' ~ text.misc.link_externo ~ '"' ) ~ ' rel="nofollow"><i class="fa fa-' ~ (classes[social]) ~ ' fa-2x fa-fw"></i></a>' %}
						{% endif %}
					{% endfor %}
					
					{% block article %}
						<article class="col-md-{{ cols }}">
							<h1>{{ member.name }}</h1>
							
							{# {% block article_image %}
								<div class="article-image">
									<div>
										<img src="/{{ member.src }}" alt="{{ member.name }}" />
									</div>
								</div>
							{% endblock %}
								
							{% block article_content %}
								{% set desc = (member.desc | preg_replace('@^\s*<p>@', '') | preg_replace('@</p>\s*<p>@', '<br>') | preg_replace('@</p>\s*$@', '') | raw) %}
								{% if desc or social_html %}
										{% if desc %}
											<p class="content-white text-center">{{ desc | raw }}</p>
										{% endif %}
										{% if social_html %}
											{% block article_social %}
												<div class="social text-center padding-top-10">
													{{ social_html | raw }}
												</div>
											{% endblock %}
										{% endif %}
								{% endif %}
							{% endblock %}
							#}
							
							
							<figure class="team-profile">
								{% block article_image %}
									<div class="article-image">
										<div>
											<img src="/{{ member.src }}" alt="{{ member.name }}" />
										</div>
									</div>
								{% endblock %}
								
								{% block article_content %}
									{% set desc = (member.desc | preg_replace('@^\s*<p>@', '') | preg_replace('@</p>\s*<p>@', '<br>') | preg_replace('@</p>\s*$@', '') | raw) %}
									{% if desc or social_html %}
										<figcaption class="text-center our-team">
											{% if desc %}
												<p class="content-white text-center">{{ desc | raw }}</p>
											{% endif %}
											{% if social_html %}
												{% block article_social %}
													<div class="orange-line"></div>
													<div class="social">
														{{ social_html | raw }}
													</div>
												{% endblock %}
											{% endif %}
										</figcaption>
									{% endif %}
								{% endblock %}
							</figure>
								
							{% block article_title %}
								<h2 class="text-center">{{ member.name }}</h2>
								<p class="text-center">{{ member.job | preg_replace(cleaner.p.regex, cleaner.p.replace) | raw }}</p>
							{% endblock article_title %}
						</article>
					{% endblock article %}
				{% endfor %}
			</div>
		{% endblock content %}
	</div>
</section>
{% endblock %}