<?php

$team = array(
	'fred'=>array(
		'name'=>'Frédéric Demarle',
		'title'=>'Lead Polylang Developer',
		'image_url'=>'https://www.gravatar.com/avatar/132157ff7a533c8e9a272795a1b5c2b9',
		'url'=>'https://profiles.wordpress.org/chouby'),
	'matt'=>array(
		'name'=>'Matt Smith',
		'title'=>'Lead Developer',
		'image_url'=>'https://www.gravatar.com/avatar/d79b46c94a52b4679c308986ef05eac2',
		'url'=>'https://profiles.wordpress.org/smithworx'),
	'edward'=>array(
		'name'=>'Edward Richards',
		'title'=>'Lead Developer',
		'image_url'=>'https://www.gravatar.com/avatar/a0ab415173b16d2ac476077d587bea96',
		'url'=>'https://profiles.wordpress.org/erichie'),
	'robert'=>array(
		'name'=>'Robert Hanna',
		'title'=>'Software Engineer',
		'image_url'=>'https://www.gravatar.com/avatar/0583e77b41cefd00203ec0737cd38891',
		'url'=>'https://profiles.wordpress.org/robertdhanna/'),
);

$team_contributors = array(
	'calvin'=>array(
		'name'=>'Calvin Scharffs',
		'title'=>'Marketing Guru',
		'image_url'=>'https://www.gravatar.com/avatar/d18e8bf783f63bf893e143cf04e0034d',
		'url'=>'https://profiles.wordpress.org/cscharffs'),
	'joey'=>array(
		'name'=>'Joseph Hovik',
   		'title'=>'Developer',
  		'image_url'=>'https://www.gravatar.com/avatar/171f66a729d063bb6ee4e0e51135a120',
   		'url'=>'https://profiles.wordpress.org/jbhovik'),
	'seth'=>array(
		'name'=>'Seth White',
		'title'=>'Developer',
		'image_url'=>'https://www.gravatar.com/avatar/53706ce5472909827db3e582bb4bccf2',
		'url'=>'https://profiles.wordpress.org/sethwhite'),
	'brian'=>array(
		'name'=>'Brian Isle',
		'title'=>'Quality Assurance',
		'image_url'=>'https://www.gravatar.com/avatar/5f43658c382412d8f120cb5595d9bf03',
		'url'=>'https://profiles.wordpress.org/bisle'),
	'brad'=>array(
		'name'=>'Brad Ross',
		'title'=>'Product Management',
		'image_url'=>'https://www.gravatar.com/avatar/477601d2c0c8c8dd31c021e3bae3841c',
		'url'=>'https://profiles.wordpress.org/bradross12/'),
	'clark'=>array(
		'name'=>'Clark Fuller',
		'title'=>'Support',
		'image_url'=>'https://www.gravatar.com/avatar/622c9cece3cd4ff8245e93892e1ea1cc',
		'url'=>'https://profiles.wordpress.org/clarticus'),
	'nathan'=>array(
		'name'=>'Nathan Overlin',
		'title'=>'Support',
		'image_url'=>'https://www.gravatar.com/avatar/602038ac19d5295415269aedc8d6ebf4',
		'url'=>'https://profiles.wordpress.org/noverlin'),
	'laura'=>array(
		'name'=>'Laura White',
		'title'=>'Tech Writer',
		'image_url'=>'https://www.gravatar.com/avatar/56c44e12c3431aca766d06c6019201ff',
		'url'=>'https://profiles.wordpress.org/laurakaysc'),
);

$contributors = array(
	'larry'=>array(
		'name'=>'Larry Furr',
		'title'=>'',
		'image_url'=>'https://www.gravatar.com/avatar/77447d8ad56b4ba5ea8f3900b3245c41',
		'url'=>'https://profiles.wordpress.org/furrever'),
);

shuffle($team);
shuffle($team_contributors);
shuffle($contributors);

?>

<p class="about-description"><?php _e('The Lingotek plugin for WordPress is created with love.', 'lingotek-translation'); ?></p>

<h4 class="wp-people-group"><?php _e('Project Leaders', 'lingotek-translation'); ?></h4>

<ul class="wp-people-group">
	<?php

	foreach($team as $person_key=>$person){
		printf('<li class="wp-person" id="wp-person-%s">
		<a href="%s" target="_blank"><img src="%s?s=60&d=monsterid&r=G" srcset="%s?s=120&d=monsterid&r=G 2x" class="gravatar" alt="%s"></a>
		<a class="web" href="%s" target="_blank">%s</a>
		<span class="title">%s</span>
	</li>',$person_key,$person['url'],$person['image_url'],$person['image_url'],$person['name'],$person['url'],$person['name'],$person['title']);
	}

	?>
</ul>

<h4 class="wp-people-group"><?php _e('Contributors', 'lingotek-translation'); ?></h4>

<ul class="wp-people-group">
	<?php

	foreach($team_contributors as $person_key=>$person){
		printf('<li class="wp-person" id="wp-person-%s">
		<a href="%s" target="_blank"><img src="%s?s=60&d=monsterid&r=G" srcset="%s?s=120&d=monsterid&r=G 2x" class="gravatar" alt="%s"></a>
		<a class="web" href="%s" target="_blank">%s</a>
		<span class="title">%s</span>
	</li>',$person_key,$person['url'],$person['image_url'],$person['image_url'],$person['name'],$person['url'],$person['name'],$person['title']);
	}

	foreach($contributors as $person_key=>$person){
		printf('<li class="wp-person" id="wp-person-%s">
		<a href="%s" target="_blank"><img src="%s?s=60&d=monsterid&r=G" srcset="%s?s=120&d=monsterid&r=G 2x" class="gravatar" alt="%s"></a>
		<a class="web" href="%s" target="_blank">%s</a>
		<span class="title">%s</span>
	</li>',$person_key,$person['url'],$person['image_url'],$person['image_url'],$person['name'],$person['url'],$person['name'],$person['title']);
	}

	?>
</ul>