J'ai un soucis avec du PHP. J'ai créé un site Web pour une agence immobiliere à l'aide du CMS Joomla. Et dans la description du bien immobilier choisi, il y a des espaces entre les caractéristiques lorsque celle la n'est pas rentrée par l'administrateur du site. J'aimerais que la liste remonte et "bouche les trous". C'est probablement pas très clair alors je vais vous mettre la page en question :
http://immoetservices.com/index.php?vie ... =4&lang=fr
Vous voyez que a droite à coté des images il y a une liste de caractéristiques. Et certains n'etant pas rentrés et bien ça laisse un espace très laid entre les caractéristiques. Je vous joins le code ici :
Code : Tout sélectionner
<?php endif ?>
<div class="titre2"> <h4> <?php echo $this->page_title ?> </h4></div>
<br />
<div class="descri">
<?php echo $this->row->description ?>
</div>
<br /><br />
<div class="reste" >
<?php
if ($this->row->living_space) {
echo JText::_( 'Living space' ) . ' : <strong>' . $this->row->living_space . ' '
. $this->params->get( 'surface_measure' ) . '</strong>' .PHP_EOL;} ?>
<br />
<?php
if ($this->row->land_space) {
echo JText::_( 'Land space' ) . ' : <strong>' . $this->row->land_space .' '
. $this->params->get('surface_measure'). '</strong>' .PHP_EOL;
}?>
<br />
<?php
if ($this->row->annexe) {
echo JText::_( 'Number of bathrooms' ) . ' : <strong>' . $this->row->annexe .'</strong>' .PHP_EOL;
} ?>
<br />
<?php
if ( $this->row->advantages ) {
echo JText::_('Advantages') . ' : <strong>' . $this->getAdvantages( $this->row->advantages , 'ul' ) .PHP_EOL;
} ?>
<br />
<?php
if ( $this->row->adress ) {
echo JText::_('Adress'). ' : <strong>' . $this->row->adress .PHP_EOL;
} ?>
<br />
<?php
if ( $this->row->floor ) {
echo JText::_('Floors'). ' : <strong>' . $this->row->floor .PHP_EOL;
} ?>
<br />
<?php
if ( $this->row->zip_code ) {
echo JText::_('Zip code'). ' : <strong>' . $this->row->zip_code .PHP_EOL;
} ?>
<br />
<h4> <?php echo $this->row->is_renting ? JText::_('Renting price') : JText::_('Selling price') ?> : <?php echo $this->formatPrice( floatval($this->row->price) , JText::_('Consult us') ) ?> </h4>
</div>Merci pour votre aide.