<?php // recent5 can act as a plugin for other extensions so include the language here,
too if(file_exists($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/'.$mainframe->getCfg('lang').'.php')) { require_once($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/'.$mainframe->getCfg('lang').'.php'); } else { require_once($mainframe->getCfg('absolute_path').'/components/com_marketplace/language/english.php'); } $database->setQuery("SELECT a.id, a.category, a.ad_headline, a.ad_headline, a.ad_condition, date
_format( a.date_created, '%d.%m.%Y' ) AS af_date, b.name" . "n FROM #__marketplace_ads AS a, " . "n #__marketplace_categories AS b WHERE b.published='1' AND a.published='1' AND a.category = b.id AND a.ad_image > '0'" . "n ORDER BY a.id DESC " . "n LIMIT 10 "); $meslist = $database->loadObjectList(); echo JOO_RECENT5; foreach ($meslist as $mes){ echo "<a href=".sefRelToAbs( "index.php?option=com_marketplace&page=show_ad&catid=$mes->category&adid=$mes->id&Itemid=$Itemid").">"; $a_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.jpg"; $a_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.png"; $a_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."a_t.gif"; $b_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.jpg"; $b_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.png"; $b_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."b_t.gif"; $c_pic_jpg = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.jpg"; $c_pic_png = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.png"; $c_pic_gif = $mosConfig_absolute_path."/components/com_marketplace/images/entries/".$mes->id."c_t.gif"; $boolPicFound = 0; echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.jpg"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.png"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."a_t.gif"."' align='center' border='0'>"; $boolPicFound = 1; } } } if ( $boolPicFound == 0) { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.jpg"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.png"."' align='center' border='0'>"; $boolPicFound = 1; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."b_t.gif"."' align='center' border='0'>"; $boolPicFound = 1; } } } } if ( $boolPicFound == 0) { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.jpg"."' align='center' border='0'>"; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.png"."' align='center' border='0'>"; } else { echo "<img src='".$mosConfig_live_site."/components/com_marketplace/images/entries/".$mes->id."c_t.gif"."' align='center' border='0'>"; } } } } echo "<a href=".sefRelToAbs( "index.php?option=com_marketplace&page=show_ad&catid=$mes->category&adid=$mes->id&Itemid=$Itemid").">"; } else { } } ?>
Z gory bardzo dziekuje