Hi,
How can I get the title and description to the right of the image? So the image will be left in cell and title and description next to the image in the next cell.
ben-ct.co.za/ben-bank/offerings Have a look at the attached image. Thank you
Here is the code below
function displayContents($contents,$nbimages) {
$configurationmodel =$this->getModel( "configuration" );
$conf = $configurationmodel->getConfiguration();
?>
<h1 class="contentheading"><?php echo JText::_('ADSMANAGER_LAST_ADS');?></h1>
<div class='adsmanager_box_module' align="center">
<table class='adsmanager_inner_box' width="100%">
<?php
$nb_cols = $conf->nb_last_cols;
$col = 0;
foreach($contents as $row) {
if ($col == 0)
echo '<tr align="center">';
$col++;
?>
<td>
<?php
$linkTarget = TRoute::_("index.php?option=com_adsmanager&view=details&id=".$row->id."&catid=".$row->catid);
if (isset($row->images[0])) {
echo "<div align='center'><a href='".$linkTarget."'><img src='".$this->get('baseurl')."/images/com_adsmanager/ads/".$row->images[0]->thumbnail."' alt='".htmlspecialchars($row->ad_headline)."' border='0' /></a>";
} else if ($conf->nb_images > 0) {
echo "<div align='center'><a href='".$linkTarget."'><img src='".ADSMANAGER_NOPIC_IMG."' alt='nopic' border='0' /></a>";
}
echo "<br /><a href='$linkTarget'>".$row->ad_headline."</a>";
//echo "<br />".$row->ad_headline."";
echo "<br />".$row->ad_text."";
echo "<br /><span class=\"adsmanager_cat\">(".htmlspecialchars($row->parent)." / ".htmlspecialchars($row->cat).")</span>";
//echo "<br />".$this->reorderDate($row->date_created);
echo "</div>";
?>
</td>
<?php
if ($col == $nb_cols) {
echo "</tr>";
$col = 0;
}
}
if ($col != 0) {
echo "</tr>";
}
?>
</table>