Purity2.fr

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase Font Size
  • Default Font Size
  • Decrease Font Size
French (Fr)English (United Kingdom)
btn_25
afuj
joomla_1_5_25
telecharger_joomla_17

Les positions (à venir ....)

Les notions de Wrap et de Main | Les styles de modules Jaxhtml et Jarounded | définition des blocks | variations de positions

HEADER (à finir) | MAINNAV | TOPSL | BOTSL | FOOTER | LEFT | RIGHT | MAIN

Choose to display or not the screen-tools and the font-tools

User Rating: / 4
PoorBest 

toolscreenfont

1- Modify the file header.php

Folder : templates > ja_purity_ii > layouts > header.php

we will change the follow lines :

<?php $this->loadBlock('usertools/screen') ?>
<?php $this->loadBlock('usertools/font') ?>

by the code :

<?php if($this->getParam('AffScreenTool')==1): ?>
<?php $this->loadBlock('usertools/screen') ?>
<?php endif; ?>
<?php if($this->getParam('AffFontTool')==1): ?>
<?php $this->loadBlock('usertools/font') ?>
<?php endif; ?>

2- Modify the templateDetails.xml

Folder : templates > ja_purity_ii > templateDetails.xml

In the parameters ("params") we will add this lines :

<param name="@title" type="japaramhelper" label="Icons Tools" description="Icons tools Desc" />
<param name="AffScreenTool" type="radio" default="1" label="Show Screen Tools Icons"
description="SHOW SCREEN TOOLS ICONS DESCRIPTION">
<option value="1">Show</option>
<option value="0">Hide</option>
</param>
<param name="AffFontTool" type="radio" default="1" label="Show Font tools Icons"
description="SHOW FONT TOOLS ICONS DESCRIPTION">
<option value="1">Show</option>
<option value="0">Hide</option>
</param>

3- Modify the language file

Folder : administrator > language > fr-FR >fr-FR.tpl_ja_purity_ii.ini

We will modify the language file of the template administration by adding this :

ICONS TOOLS=Icônes d'outils
ICONS TOOLS DESC=Afficher ou non les icones en haut a droite dans le header.
Taille du template et taille de la police.
SHOW SCREEN TOOLS ICONS=Afficher les icônes taille du template
SHOW SCREEN TOOLS ICONS DESCRIPTION=Afficher ou non les icones en haut à droite dans le header.
Taille du template.
SHOW FONT TOOLS ICONS=Afficher les icônes taille de la Police
SHOW FONT TOOLS ICONS DESCRIPTION=Afficher ou non les icones en haut à droite dans le header.
Taille de la police.

The code above is on  2 lines for the visibility on screen. But in the reality you have to put each parameter on 1 line.


joomlart ja purity 2

purity2_thumbnail

Joomlart - T3 Blank

t3blank_thumbnail

Les liens intéressants

web_links

adaptations de Ja Purity II

purity2_thumbnail
You are here: Tutoriels Mise en page Header Choose to display or not the screen-tools and the font-tools