| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/eadsa/modules/mod_fontsize/ |
Upload File : |
<?php
//Simple Font Resizer Javascript//
/**
* Simple Font Resizer Javascript
* @package Joomla 1.5
* @copyright Copyright (C) 2008 UnDesign. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program 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.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$defaultSize = $params->get( 'defaultSize', '100' );
$useImg = $params->get( 'useImg', '1' );
echo "
<script language='javascript' type='text/javascript'>
<!--
defaultSize = $defaultSize;
//-->
</script>"
;
?>
<script type="text/javascript" src="modules/mod_fontsize/js/md_stylechanger.js"></script>
<div id="fontsize">
<script type="text/javascript">
//<![CDATA[
document.write('<?php
//uncomment below if you want to show 'font size' text
//echo JText::_('FONTSIZE'); ?>');
document.write(' <a href="index.php" title="<?php echo JText::_('Increase size'); ?>" onclick="changeFontSize(1); return false;" class="larger"><?php
if ($params->get('useImg', 1))
{
echo '<img style="margin:0 padding:0;" src="modules/mod_fontsize/img/resizer_01.jpg" alt="Increase size" />';
}
else{
echo JText::_('+');
} ?></a>');
document.write('<a href="index.php" title="<?php echo JText::_('Decrease size'); ?>" onclick="changeFontSize(-1); return false;" class="smaller"><?php
if ($params->get('useImg', 1))
{
echo '<img style="margin:0 padding:0;" src="modules/mod_fontsize/img/resizer_02.jpg" alt="Increase size" />';
}
else{
echo JText::_(' -');
} ?></a>');
document.write('<a href="index.php" title="<?php echo JText::_('Reset font size to default'); ?>" onclick="revertStyles(); return false;" class="reset"><?php
if ($params->get('useImg', 1))
{
echo '<img style="margin:0 padding:0;" src="modules/mod_fontsize/img/resizer_03.jpg" alt="Reset size" />';
}
else{
echo JText::_(' reset');
} ?></a>');
//]]>
</script>
</div>