} else { ?> <ul class="mostread<?php echo $moduleclass_sfx; ?> "> <?php if (isset($contents[0])) { foreach ($contents as $row) { ?> <li class="mostread"> <?php $linkTarget = TRoute::_("index.php?option=com_adsmanager&view=details{$urlparamroot}&id=" . $row->id . "&catid=" . $row->catid); echo "<a href='{$linkTarget}'>" . $row->ad_headline . "</a>"; if ($displaycategory == 1) { echo " <span class=\"adsmanager-cat\">(" . $row->parent . " / " . $row->cat . ")"; } if ($displaydate == 1) { echo " " . reorderDate($row->date_created) . "</span>"; } ?> </li> <?php } } ?> </ul> <?php } ?> </div>
{ echo "<td></td>"; } ?> </tr> </table> </div> <?php } else { ?> <ul class="mostread<?php echo $moduleclass_sfx; ?>"> <?php if (isset($contents[0])) { foreach($contents as $row) { ?> <li class="mostread"> <?php $linkTarget = TRoute::_("index.php?option=com_adsmanager&view=details$urlparamroot&id=".$row->id."&catid=".$row->catid); echo "<div class='text-center'><a href='$linkTarget'>".$row->ad_headline."</a></div>"; if ($displaycategory == 1) echo "<div class='text-center'><span class=\"adsmanager-cat\">(".$row->parent." / ".$row->cat.")</span></div>"; if ($displaydate == 1) echo "<div class='text-center'>".reorderDate($row->date_created)."</div>"; ?> </li> <?php } } ?> </ul> <?php }
$iconflag = false; if ($conf->show_new == true && isNewcontent($content->date_created, $conf->nbdays_new)) { echo "<div class='text-center'><img align='center' src='" . getImagePath('new.gif') . "' /> "; $iconflag = true; } if ($conf->show_hot == true && $content->views >= $conf->nbhits) { if ($iconflag == false) { echo "<div class='text-center'>"; } echo "<img align='center' src='" . getImagePath('hot.gif') . "' />"; $iconflag = true; } if ($iconflag == true) { echo "</div>"; } echo reorderDate($content->date_created); ?> <br /> <?php if ($content->userid != 0) { echo JText::_('ADSMANAGER_FROM') . " "; $target = TLink::getUserAdsLink($content->userid); echo "<a href='" . $target . "'>" . $content->user . "</a><br/>"; } ?> <?php echo sprintf(JText::_('ADSMANAGER_VIEWS'), $content->views); ?> </td> </tr> <?php