Add a new style

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Mon Feb 11, 2013 5:37 pm
I would like to add a new style based on style3 but with other colors.
I already copied the css- and imagemaps from style3 but that's not enough to make it available from the backend.
What else do I have to do to choose style4 from the backend ans are there any other files I have to copy from style3?
User avatar
Expert Boarder

GK User
Tue Feb 12, 2013 5:26 pm
Hi,

First of all you have to add the option to the templateDetails.xml file:

Code: Select all
<field name="template_color" type="list" default="1" label="TPL_GK_LANG_TEMPLATE_COLOR" description="TPL_GK_LANG_TEMPLATE_COLOR_DESC">
   <option value="1">TPL_GK_LANG_COLOR_1</option>
   <option value="2">TPL_GK_LANG_COLOR_2</option>
   <option value="3">TPL_GK_LANG_COLOR_3</option>
</field>


then you have to edit the styleswitcher (if you use it) in the layouts/blocks/footer.php:

Code: Select all
<div id="gkStyleArea">
    <a href="#" id="gkColor1"><?php echo JText::_('TPL_GK_LANG_COLOR_1'); ?></a>
    <a href="#" id="gkColor2"><?php echo JText::_('TPL_GK_LANG_COLOR_2'); ?></a>
    <a href="#" id="gkColor3"><?php echo JText::_('TPL_GK_LANG_COLOR_3'); ?></a>
</div>


and finally - style the #gkColor4 element in the template.css file (of course if you will use this option).

Please remember to create also:

css/typography/typography.iconset.style4.css
css/typography/typography.style4.css

files.
User avatar
Administrator

GK User
Sat Feb 16, 2013 5:17 pm
Works great, tnx.
Now, only TPL_GK_LANG_COLOR_4 has to be added but... in which file?
User avatar
Expert Boarder

GK User
Sat Feb 16, 2013 5:58 pm
In the template language file ;)
User avatar
Administrator

GK User
Sat Feb 16, 2013 7:07 pm
:roll: right.
But where is the templates languagefile?
User avatar
Expert Boarder

GK User
Sat Feb 16, 2013 7:08 pm
In the languages/en-GB directory - look for en-GB.tpl_gk_restaurant.ini file.
User avatar
Administrator


cron