public $id;
public $company = null;
- private $phones = array();
- private $address = null;
+ public $phones = array();
+ public $address = null;
public $jobid;
require_once('geocoding.inc.php');
$adr = $param['adr'];
$txtad = $adr->text;
- if (!$txtad && !$adr->phones() && !count($adr->phones())) {
- return "";
+ if (!$txtad) {
+ $txthtml = '';
+ if ($adr->phones() && count($adr->phones())) {
+ require_once 'function.display_phones.php';
+ $txthtml .= smarty_function_display_phones(array('tels' => $adr->phones()), $smarty);
+ } elseif (isset($param['phones']) && count($param['phones'])) {
+ require_once 'function.display_phones.php';
+ $txthtml .= smarty_function_display_phones(array('tels' => $param['phones']), $smarty);
+ }
+ if (!isset($param['nodiv']) && $txthtml != '' && isset($param['pos'])) {
+ $txthtml = '<div class="adresse" style="float: ' . $param['pos'] . '">' . $txthtml . '</div>';
+ }
+ return $txthtml;
}
$lines = explode("\n", $txtad);
{foreach from=$jobs item="job"}
<h2>{$job->company->name}</h2>
{include file="include/emploi.tpl" job=$job}
- {if $job->address()}
- {include file="geoloc/address.tpl" address=$job->address titre="Adresse : " for=$job->company->name}
+ {if $job->address}
+ {include file="geoloc/address.tpl" address=$job->address titre="Adresse : " for=$job->company->name phones=$job->phones pos="left"}
+ {elseif $job->phones}
+ {display_phones tels=$job->phones}
{/if}
<div class="spacer"> </div>
{/foreach}
{if $profile->cv}
<div class="part">
<h2>Curriculum Vitae : </h2>
- <div style="padding: 0 2ex">{$profile->cv|smarty:nodefaults}</div>
+ <div style="padding: 0 2ex">{$profile->cv|miniwiki:title|smarty:nodefaults}</div>
</div>
{/if}