PDA

View Full Version : better osc3 default template 1.0



michael_s
09-21-2009, 03:11 PM
Better template button extension to Multilangism
(osC3 Tgely templates systems)

If you would like to use each template separated buttons with languages dependencies. In the future on the osC3 frontend you will be able to switch templates and this will be important
function. ;-)


The language's templated buttons inserted into new folders. For example

catalog/templates/***templatesname***/languages/en_US/buttons/
catalog/templates/***templatesname***/languages/hu_HU/buttons/
catalog/templates/***templatesname***/languages/ru_RU/buttons/


The concept:
I changed the html_output.php
- osc_draw_image_submit_button()
- osc_draw_image_button() functions into
templates.php new functions as
- osc_draw_image_submit_template_button()
- osc_draw_image_template_button() functions

I redefiniated call buttons in templates files like this:









I got languages and separated template buttons dependecies.

In some reasons I didn't want to change the original buttons call (in html_output.php),
but you can do another modifications.

More... (http://addons.oscommerce.com/info/6958)