Removing User Increase / Decrease from JA Purity Header

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
jtb2589
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 20, 2012 2:59 pm

Removing User Increase / Decrease from JA Purity Header

Post by jtb2589 » Fri Jan 20, 2012 3:12 pm

Greetings Joomla Forum!

A forum search yielded no results on my question to complete info from the wiki. I am sure it has been answered before but...help or a link to complete info would be greatly appreciated!

I found the wiki " http://docs.joomla.org/Customising_the_ ... essibility "

It shows where to make changes, however there are no discussions on what changes to make. I hoped deleting the png image files would work - no luck - missing file appears in the header.

My goal is to have the page displayed at largest setting and the A+ A A- characters removed from my header.

Here is the info from the wiki

============================

Inside the folder of the template, the files are located as follows:

<location of template>/
index.php
ja_templatetools.php
css/
template.css
images/
user-increase.png
user-decrease.png
user-reset.png
js/
ja.script.js

Contents
[hide]

1 HTML and PHP Files
1.1 ja_purity/index.php
1.2 ja_purity/index.php
1.3 ja_purity/ja_templatetools.php
2 CSS Files
2.1 ja_purity/css/template.css
3 Image Files
4 Javascript Files
4.1 ja_purity/js/ja.script.js

HTML and PHP Files
ja_purity/index.php

<ul class="accessibility">

<li><a href="#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>

<li><a href="#ja-mainnav" title="<?php echo JText::_("Skip to main navigation");?>"><?php echo JText::_("Skip to main navigation");?></a></li>

<li><a href="#ja-col1" title="<?php echo JText::_("Skip to 1st column");?>"><?php echo JText::_("Skip to 1st column");?></a></li>

<li><a href="#ja-col2" title="<?php echo JText::_("Skip to 2nd column");?>"><?php echo JText::_("Skip to 2nd column");?></a></li>

</ul>

ja_purity/index.php

<?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>

ja_purity/ja_templatetools.php

function genToolMenu($_array_tools=null, $imgext = 'gif'){

if(!is_array($_array_tools)) $_array_tools = array($_array_tools);

if(!$_array_tools) $_array_tools = array_keys($this->_params_cookie);

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

?>

<ul class="ja-usertools-font">

<li><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;" /></li>

<li><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;" /></li>

<li><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;" /></li>

</ul>

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

<?php

}

}

CSS Files
ja_purity/css/template.css

ul.accessibility {

position: absolute;

top: -100%;

}



/*usertool*/

ul.ja-usertools-font {

font-size: 11px;

position: absolute;

top: 8px;

right: 70px;

}



ul.ja-usertools-font li {

padding: 0;

margin: 0;

display: inline;

background: none;

}

Image Files

/images/user-increase.png
/images/user-decrease.png
/images/user-reset.png

Javascript Files
ja_purity/js/ja.script.js

switchFontSize=function(ckname,val){

var bd = $E('BODY');

switch (val) {

case 'inc':

if (CurrentFontSize+1 < 7) {

bd.removeClass('fs'+CurrentFontSize);

CurrentFontSize++;

bd.addClass('fs'+CurrentFontSize);

}

break;

case 'dec':

if (CurrentFontSize-1 > 0) {

bd.removeClass('fs'+CurrentFontSize);

CurrentFontSize--;

bd.addClass('fs'+CurrentFontSize);

}

break;

default:

bd.removeClass('fs'+CurrentFontSize);

CurrentFontSize = val;

bd.addClass('fs'+CurrentFontSize);

}

Cookie.set(ckname, CurrentFontSize,{duration:365});

}

=====================

Many Thanks! :pop

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28193
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Removing User Increase / Decrease from JA Purity Header

Post by imanickam » Sat Jan 21, 2012 1:38 am

A simpler approach would be to edit the following css entry available in the file template.css that is located in the directory /templates/ja_purity/css and add the attribute display:none;

Code: Select all

ul.ja-usertools-font {
	font-size: 11px;
	position: absolute;
	top: 8px;
	right: 70px;
}
Note: Make a copy of the file before editing it.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

jtb2589
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 20, 2012 2:59 pm

Re: Removing User Increase / Decrease from JA Purity Header

Post by jtb2589 » Mon Jan 23, 2012 7:52 pm

Thanks Imanickam!

that was easier :D


Locked

Return to “Templates for Joomla! 1.5”