<?php
#********************************************************************
#* Virtuemart Stats module:
#* @author		Joomill.nl <info@joomill.nl>
#* @link		http://www.joomill.nl
#* @copyright 	Copyright (C) 2011 Joomill.nl  
#* @license 	http://www.gnu.org/copyleft/gpl.html GNU/GPL 
#* 
#* Virtuemart Stats module is free software: you can redistribute it  
#* and/or modify it under the terms of the GNU General Public License 
#* as published by the Free Software Foundation, either version 3 of 
#* the License, or(at your option) any later version.
#*
#* Virtuemart Stats module is distributed in the hope that it will be 
#* useful, but WITHOUT ANY WARRANTY; without even the implied 
#* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
#* See the GNU General Public License for more details.
#*
#* You should have received a copy of the GNU General Public License
#* along with Virtuemart Stats module.
#* If not, see <http://www.gnu.org/licenses/>.
#* 
#*******************************************************************
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); 
?>

<?php if ($params->get('showcategories')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/categories.png" alt="<?php echo JText::_( 'STATS_CATEGORIES' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_CATEGORIES' ); ?>: <?php echo $categories ?>
</div>
<?php endif; ?>

<?php if ($params->get('showproducts')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/products.png" alt="<?php echo JText::_( 'STATS_PRODUCTS' ); ?>" /> 
<?php endif; ?>
<?php echo JText::_( 'STATS_PRODUCTS' ); ?>: <?php echo $products ?>
</div>
<?php endif; ?>

<?php if ($params->get('showstock')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/stock.png" alt="<?php echo JText::_( 'STATS_STOCK' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_STOCK' ); ?>: <?php echo $stock ?>
</div>
<?php endif; ?>

<?php if ($params->get('showcustomers')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/customers.png" alt="<?php echo JText::_( 'STATS_CUSTOMERS' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_CUSTOMERS' ); ?>: <?php echo $customers ?>
</div>
<?php endif; ?>

<?php if ($params->get('showorders')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/orders.png" alt="<?php echo JText::_( 'STATS_ORDERS' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_ORDERS' ); ?>: <?php echo $orders ?>
</div>
<?php endif; ?>

<?php if ($params->get('showreviews')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/reviews.png" alt="<?php echo JText::_( 'STATS_REVIEWS' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_REVIEWS' ); ?>: <?php echo $reviews ?>
</div>
<?php endif; ?>

<?php if ($params->get('showratings')) : ?>
<div class="stathorizontal">
<?php if ($params->get('showicons')) : ?>
<img src="modules/mod_virtuemart_stats/tmpl/images/ratings.png" alt="<?php echo JText::_( 'STATS_RATINGS' ); ?>" />
<?php endif; ?>
<?php echo JText::_( 'STATS_RATINGS' ); ?>: <?php echo $ratings ?>
</div>
<?php endif; ?>