the-art-of-joomla-archive /quanta/code/branches/trc/modules/mod_quanta_percent/tmpl/default.php

Language PHP Lines 36
MD5 Hash 85b623f3036fd4c99e09703823d2e725 Estimated Cost $306 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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>
Back to Top