?
Path : /home/admin/public_html/old/board/modules/mod_gacounter/tmpl/ |
Current File : /home/admin/public_html/old/board/modules/mod_gacounter/tmpl/default.php |
<?php /** * @package Google Analytics Counter Joomla 1.5 module * @version 1.0 * @author Erwin Schro (http://www.joomla-labs.com) * @author Convert to Joomla from WebResourcesDepot's tutorial on Google Analytic Counter Badge * @copyright Copyleft (C) 2010 J!Labs. All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html * * Google Analytics Counter has been developed and distributed under the terms of the GPL * @copyright Joomla is Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ defined('_JEXEC') or die('Restricted access'); $style = $params->get('style'); if ($style=='1') {$color = 'blue';} else if ($style=='2') {$color = 'red';} else if ($style=='3') {$color = 'darkorange';} else if ($style=='4') {$color = 'pink';} else {$color='style';} // default Dark Grey $document =& JFactory::getDocument(); $document->addCustomTag( '<link rel="stylesheet" type="text/css" href="'. JURI::base() . 'modules/mod_gacounter/elements/'.$color.'.css" title="default" />' ); $displayType = $params->get('displayType'); // 0 = visits 1=pageviews ?> <div id="gstatsWrap"> <div id="gstatsDetailsWrap"> <div id="gstatsCount"> <?php echo $out->count; ?> </div> <div id="gstatsMetric"> <?php echo ($displayType=='pageviews') ? JText::_( 'PAGEVIEWSTXT' ) : JText::_( 'VISITSTXT' ); ?> </div> </div> <div id="byGoogle">By Google Analytics</div> </div>