2011-01-21 04:39:15 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$o .= '';
|
|
|
|
|
|
|
|
$o .= <<< EOT
|
|
|
|
|
2011-03-21 09:02:01 -04:00
|
|
|
<h2>Profil</h2>
|
2011-01-21 04:39:15 -05:00
|
|
|
|
|
|
|
|
|
|
|
EOT;
|
|
|
|
|
|
|
|
if($a->profile['name']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-name-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-name-text">Nom complet:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-name">{$a->profile['name']}</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-name-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['gender']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-gender-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-gender-text">Genre:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-gender">{$a->profile['gender']}</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-gender-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-dob-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-dob-text">Date de naissance/anniversaire:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
EOT;
|
|
|
|
|
|
|
|
// If no year, add an arbitrary one so just we can parse the month and day.
|
|
|
|
|
|
|
|
$o .= '<div id="advanced-profile-dob">'
|
|
|
|
. ((intval($a->profile['dob']))
|
2011-03-21 09:02:01 -04:00
|
|
|
? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'],'j F Y'))
|
2011-01-23 17:35:22 -05:00
|
|
|
: day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],6),'j F')))
|
2011-01-21 04:39:15 -05:00
|
|
|
. "</div>\r\n</div>";
|
|
|
|
|
|
|
|
$o .= '<div id="advanced-profile-dob-end"></div>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($age = age($a->profile['dob'],$a->profile['timezone'],'')) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-age-wrapper" >
|
|
|
|
<div id="advanced-profile-age-text">Age:</div>
|
|
|
|
<div id="advanced-profile-age">$age</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-age-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['marital']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-marital-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-marital-text"><span class="heart">♥</span> Statut:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-marital">{$a->profile['marital']}</div>
|
|
|
|
EOT;
|
|
|
|
|
|
|
|
if($a->profile['with'])
|
|
|
|
$o .= "<div id=\"advanced-profile-with\">({$a->profile['with']})</div>";
|
|
|
|
$o .= <<< EOT
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-marital-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['sexual']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-sexual-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-sexual-text">Attirances sexuelles:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-sexual">{$a->profile['sexual']}</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-sexual-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['homepage']) {
|
|
|
|
$homepage = linkify($a->profile['homepage']);
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-homepage-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-homepage-text">Site web:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-homepage">$homepage</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-homepage-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['politic']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-politic-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-politic-text">Opinions politiques:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<div id="advanced-profile-politic">{$a->profile['politic']}</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-politic-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($a->profile['religion']) {
|
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-religion-wrapper" >
|
|
|
|
<div id="advanced-profile-religion-text">Religion:</div>
|
|
|
|
<div id="advanced-profile-religion">{$a->profile['religion']}</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-religion-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['about'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-about-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-about-text">À propos:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-about">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-about-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['interest'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-interest-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-interest-text">Marottes/Centres d'intérêt:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-interest">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-interest-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['contact'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-contact-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-contact-text">Coordonées et réseaux sociaux:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-contact">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-contact-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['music'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-music-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-music-text">Goûts musicaux:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-music">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-music-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['book'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-book-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-book-text">Livres, littérature:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-book">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-book-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['tv'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-tv-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-tv-text">Télévision:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-tv">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-tv-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['film'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-film-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-film-text">Cinéma/Danse/Culture/Divertissement:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-film">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-film-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['romance'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-romance-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-romance-text">Amour/Passion:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-romance">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-romance-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['work'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-work-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-work-text">Travail/Activité professionnelle:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-work">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-work-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
2011-03-04 02:13:16 -05:00
|
|
|
if($txt = prepare_text($a->profile['education'])) {
|
2011-01-21 04:39:15 -05:00
|
|
|
$o .= <<< EOT
|
|
|
|
<div id="advanced-profile-education-wrapper" >
|
2011-03-21 09:02:01 -04:00
|
|
|
<div id="advanced-profile-education-text">École/études:</div>
|
2011-01-21 04:39:15 -05:00
|
|
|
<br />
|
|
|
|
<div id="advanced-profile-education">$txt</div>
|
|
|
|
</div>
|
|
|
|
<div id="advanced-profile-education-end"></div>
|
|
|
|
EOT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|