The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 20, 2012 3:12 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jan 20, 2012 2:59 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Sat Jan 21, 2012 1:38 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 22862
Location: Chennai, India
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:
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
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 7:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jan 20, 2012 2:59 pm
Posts: 2
Thanks Imanickam!

that was easier :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group