/quanta/code/branches/trc/modules/mod_quanta_percent/tmpl/default.php
PHP | 36 lines | 22 code | 5 blank | 9 comment | 2 complexity | 85b623f3036fd4c99e09703823d2e725 MD5 | raw file
- <?php
- /**
- * @version $Id: default.php 321 2010-10-18 01:04:34Z eddieajau $
- * @package NewLifeInIT
- * @subpackage mod_quanta_percent
- * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // no direct access
- defined('_JEXEC') or die;
- $offset = JFactory::getApplication()->getCfg('offset');
- $style = $this->params->get('text-style');
- $percent = sprintf('%.1f%%', $this->values->get('fraction')*100);
- $date = $this->values->get('date');
- $link = (int) $this->params->get('menu-link');
- ?>
- <div class="quanta-percent">
- <span class="percent" style="<?php echo $style;?>"><?php echo $percent; ?></span>
- <?php if ($date) : ?>
- <p class="date">
- <?php echo JText::sprintf('MOD_QUANTA_PERCENT_DATE', JHtml::date($date, '%A %e %b %Y', $offset)); ?>
- </p>
- <?php endif; ?>
- <?php if ($link) : ?>
- <p class="link">
- <a href="<?php echo JRoute::_('index.php?Itemid='.$link); ?>">
- <?php echo JText::_('MOD_QUANTA_PERCENT_LINK'); ?></a>
- </p>
- <?php endif; ?>
- </div>