Re: Winchester Responsive
Quote:
Originally Posted by
Design75
It is only single language, and I was amazed no one else noticed this. I made the footer multi lingual for one of my clients, and wanted to update the
module. After contact with the original author (rbarbour), he said he is working on an update to, so I guess it will be updated soon.
Hi Design75, Could you possibly share the module you developed so I can try it out?
Thanks!
Re: Winchester Responsive
Quote:
Originally Posted by
Thannaree
Ouch! I was just about to also ask about the slideshow, so that answer my question. Looking at Westminster language flag I assumed that one would be multilingual. I needed to have this up and running by tomorrow. That's terrible ...
Is Westminster multilingual?
I think that I just answered this question, but it may have been on another thread. If you want the slide show banners to be multi lingual, one way to do it would be to clone the tpl_home_slider.php file using a new banner group for your second language and then add an if statement to the tpl_header.php files to call the second language tpl_home_slider.php file when the second language is detected.
The time that I have to devote to the free templates project is limited so any advances/improvements that you make and share can be included in a package update. Unfortunately, a lot of users figure these types of things out and never share with the community.
Thanks,
Anne
Re: Winchester Responsive
Quote:
Originally Posted by
picaflor-azul
I think that I just answered this question, but it may have been on another thread. If you want the slide show banners to be multi lingual, one way to do it would be to clone the tpl_home_slider.php file using a new banner group for your second language and then add an if statement to the tpl_header.php files to call the second language tpl_home_slider.php file when the second language is detected.
The time that I have to devote to the free templates project is limited so any advances/improvements that you make and share can be included in a package update. Unfortunately, a lot of users figure these types of things out and never share with the community.
Thanks,
Anne
Thanks for the directions Anne!
For those who'd like to try it out, this is what I did for a slide in Spanish.
1) Clone includes/templates/westminster_new/common/tpl_home_slider.php and rename it tpl_home_slider_es.php
2) Open tpl_home_slider_es.php and replaced (on line 4) homepageslide1 with homepageslide2
3) Open includes/languages/spanish/html_includes/westminster_new/define_main_page.php and change (on line 22 and 23)
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider.php');?>
to
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider_es.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider_es.php');?>
4) Open Tools/Banner Manager in the admin and create 5 new banners, entering homepageslide2 in the "or enter a new banner group below" field.
Looks good on my end.
.... now with the footer ....
Re: Winchester Responsive
Quote:
Originally Posted by
Thannaree
Thanks for the directions Anne!
For those who'd like to try it out, this is what I did for a slide in Spanish.
1) Clone includes/templates/westminster_new/common/tpl_home_slider.php and rename it tpl_home_slider_es.php
2) Open tpl_home_slider_es.php and replaced (on line 4) homepageslide1 with homepageslide2
3) Open includes/languages/spanish/html_includes/westminster_new/define_main_page.php and change (on line 22 and 23)
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider.php');?>
to
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider_es.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider_es.php');?>
4) Open Tools/Banner Manager in the admin and create 5 new banners, entering homepageslide2 in the "or enter a new banner group below" field.
Looks good on my end.
.... now with the footer ....
I wonder if the flexible footer could be configured in such a similar way to allow multiple languages, could it?
Re: Winchester Responsive
Quote:
Originally Posted by
Thannaree
I wonder if the flexible footer could be configured in such a similar way to allow multiple languages, could it?
It might work. I am not sure though about how the admin interface would work. The call for the flexible footer menu is in the tpl_footer.php file.
Thanks,
Anne
Re: Winchester Responsive
Quote:
Originally Posted by
Thannaree
Thanks for the directions Anne!
For those who'd like to try it out, this is what I did for a slide in Spanish.
1) Clone includes/templates/westminster_new/common/tpl_home_slider.php and rename it tpl_home_slider_es.php
2) Open tpl_home_slider_es.php and replaced (on line 4) homepageslide1 with homepageslide2
3) Open includes/languages/spanish/html_includes/westminster_new/define_main_page.php and change (on line 22 and 23)
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider.php');?>
to
PHP Code:
<?php require($template->get_template_dir('tpl_home_slider_es.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider_es.php');?>
4) Open Tools/Banner Manager in the admin and create 5 new banners, entering homepageslide2 in the "or enter a new banner group below" field.
Looks good on my end.
.... now with the footer ....
Thank you so much for posting your solution. I am sure that it will help others in the future.
Thanks,
Anne
Re: Winchester Responsive
Quote:
Originally Posted by
picaflor-azul
Thank you so much for posting your solution. I am sure that it will help others in the future.
Thanks,
Anne
Thanks Anne!
Note that this works on westminster_new (did not try on winchester). I have posted this solution on the relevant thread. Perhaps this could be removed from here?
Re: Winchester Responsive
Anne,
I am not sure if this has been reported to you yet, but the loading of "jquery.carouFredSel-6.0.2.js" gives a ssl error when sites are in https.
in the files tpl_index_default.php and tpl_index_categories.php
the line:
PHP Code:
<script type="text/javascript" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
Should IMHO be changed to:
PHP Code:
<script type="text/javascript" src="<?php echo DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
Re: Winchester Responsive
Quote:
Originally Posted by
Design75
Anne,
I am not sure if this has been reported to you yet, but the loading of "jquery.carouFredSel-6.0.2.js" gives a ssl error when sites are in https.
in the files tpl_index_default.php and tpl_index_categories.php
the line:
PHP Code:
<script type="text/javascript" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
Should IMHO be changed to:
PHP Code:
<script type="text/javascript" src="<?php echo DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
Thank you so much for posting. I will definitely include this in the package update ;)
Thanks,
Anne
Re: Winchester Responsive