32 lines
1004 B
PHP
32 lines
1004 B
PHP
<?php $employee->setCulture($sf_user->getCulture()) ?>
|
|
<h3 class="employee-summary-name">
|
|
<?php
|
|
echo $employee->getName();
|
|
if($employee->getDegrees() != "")
|
|
echo ", " . $employee->getDegrees();
|
|
?>
|
|
</h3>
|
|
<div class='employee-summary'>
|
|
<?php echo image_tag('whoarewe/employees/thumb_'.$employee->getPicture(), 'class=employee-summary-picture') ?>
|
|
<p>
|
|
<?php
|
|
$text = $employee->getBiography();
|
|
if(!empty($text))
|
|
{
|
|
$paras = explode("%~%", preg_replace("/(\n)+/", "%~%", $employee->getBiography()));
|
|
if(strlen($paras[0]) >= 200 || count($paras) < 2)
|
|
$text = $paras[0];
|
|
else
|
|
$text = $paras[0] ."</p><p>" . $paras[1];
|
|
}
|
|
?>
|
|
<?php if(empty($text)): ?>
|
|
<?php echo __("Unfortunately, we do no currently have this employee's biography.") ?>
|
|
<?php else: ?>
|
|
<?php echo $text ?>
|
|
<?php endif; ?>
|
|
</p>
|
|
<p>
|
|
<?php echo link_to(__("Read more"), 'whoarewe/'.$employee->getSlug()) ?>
|
|
</p>
|
|
</div>
|