Fix: Equilibrage balises html
This commit is contained in:
parent
2ae981947c
commit
3a3be0152b
@ -113,12 +113,16 @@ class ModeleBoxes
|
|||||||
{
|
{
|
||||||
$logo=eregi_replace("^object_","",$contents[$i][$j]['logo']);
|
$logo=eregi_replace("^object_","",$contents[$i][$j]['logo']);
|
||||||
print img_object($langs->trans("Show"),$logo);
|
print img_object($langs->trans("Show"),$logo);
|
||||||
print '</a></td><td '.$tdparam.'><a href="'.$contents[$i][$j]['url'].'"';
|
if (isset($contents[$i][$j]['url'])) print '</a>';
|
||||||
print ' title="'.$textewithnotags.'"';
|
print '</td><td '.$tdparam.'>';
|
||||||
|
if (isset($contents[$i][$j]['url']))
|
||||||
|
{
|
||||||
|
print '<a href="'.$contents[$i][$j]['url'].'" title="'.$textewithnotags.'"';
|
||||||
//print ' alt="'.$textewithnotags.'"'; // Pas de alt sur un "<a href>"
|
//print ' alt="'.$textewithnotags.'"'; // Pas de alt sur un "<a href>"
|
||||||
print isset($contents[$i][$j]['target'])?' target="'.$contents[$i][$j]['target'].'"':'';
|
print isset($contents[$i][$j]['target'])?' target="'.$contents[$i][$j]['target'].'"':'';
|
||||||
print '>';
|
print '>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$maxlength=$this->MAXLENGTHBOX;
|
$maxlength=$this->MAXLENGTHBOX;
|
||||||
if (isset($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
|
if (isset($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
|
||||||
|
|
||||||
@ -131,7 +135,7 @@ class ModeleBoxes
|
|||||||
$texte2=substr($texte2,0,$maxlength)."...";
|
$texte2=substr($texte2,0,$maxlength)."...";
|
||||||
}
|
}
|
||||||
print $texte;
|
print $texte;
|
||||||
if ($contents[$i][$j]['url']) print '</a>';
|
if (isset($contents[$i][$j]['url'])) print '</a>';
|
||||||
print $texte2;
|
print $texte2;
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user