Example #1
0
* @description    tpl.
*/
defined('_JEXEC') or die('Restricted access');
global $option;
?>
<div class="pro_new">
	<?php 
foreach ($catpro as $i => $product) {
    ?>
			<div class="pro_item">
				<p class="link_img"><a href="<?php 
    echo $product->link;
    ?>
" >
					<?php 
    $filename = modNewProductsHelper::getImageDefault($product->id);
    ?>
						<?php 
    if ($filename && file_exists('images/products/thumbs/' . $filename)) {
        $image = JURI::base() . 'images/products/thumbs/' . $filename;
    } else {
        $image = JURI::base() . 'components/com_products/images/noimage.jpg';
    }
    ?>
				
						<img src="<?php 
    echo $image;
    ?>
" border=0 width="90"  height="60"/>
					
					
Example #2
0
<?php

/**
* @version		1.0  - 	Joomla 1.5.x
* @package		Module Categories Products
* @copyright	Wampvn Group
* @license		GNU/GPL
* @website          http://wampvn.com
* @description    index.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
require_once 'modules/mod_new_products/helper.php';
$catpro = modNewProductsHelper::getNewProducts($params);
require JModuleHelper::getLayoutPath('mod_new_products');