J1.5 talk

Difference between revisions of "Customising the JA Purity template/customisations/Removing the Text Larger / Smaller AAA icon"

From Joomla! Documentation

< J1.5 talk:Customising the JA Purity template
 
(No difference)

Latest revision as of 14:30, 21 April 2013

The posted solution removes only the tool .png images and leaves the links and their functions in place. This can easily be tested by applying that solution and running the cursor over where the "AAA" images used to be.

The proper way to remove these tools is to open templates/ja_purity/ja_templatetools.php and comment out the following code beginning at around line 72:


if (in_array(JA_TOOL_FONT, $_array_tools)){//show font tools ?>

  • <img style="cursor: pointer;" title="<?php echo JText::_('Increase font size');?>" src="<?php echo $this->templateurl();?>/images/user-increase.<?php echo $imgext;?>" alt="<?php echo JText::_('Increase font size');?>" id="ja-tool-increase" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','inc'); return false;" />
  • <img style="cursor: pointer;" title="<?php echo JText::_('Default font size');?>" src="<?php echo $this->templateurl();?>/images/user-reset.<?php echo $imgext;?>" alt="<?php echo JText::_('Default font size');?>" id="ja-tool-reset" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>',<?php echo $this->_tpl->params->get(JA_TOOL_FONT);?>); return false;" />
  • <img style="cursor: pointer;" title="<?php echo JText::_('Decrease font size');?>" src="<?php echo $this->templateurl();?>/images/user-decrease.<?php echo $imgext;?>" alt="<?php echo JText::_('Decrease font size');?>" id="ja-tool-decrease" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','dec'); return false;" />

<script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(JA_TOOL_FONT);?>');</script> <?php }


This will remove the images AND the corresponding links to the font resizing functions which may be clicked upon by an unwary user when they see their cursor turn into a pointer over this area.