PHP files in qTranslate
-
Hi there,
I have a client with the same website in both French and English (at two different URLs). I’d like to combine them in one dashboard using qTranslate. That is a pretty straightforward operation. Here’s where I’m stumped: the websites have a slider on the homepage featuring language specific images. Being a PHP newbie, I’m not sure how to alter the mainindex.php file to pull the correct slider based on which site (*/en/ or */fr/).
Here is the php for the slider as it currently appears on both sites:
<div class=”grid_12 omega prefix_1″ id=”right-column”>
<?php require(‘slider.php’); ?>Pretty basic. This is probably a simple if statement fix, but being new to both PHP and qTranslate I was hoping someone might know. I’d like the English site to pull slider.php and the French site to pull the French slider.
Thanks in advance
The topic ‘PHP files in qTranslate’ is closed to new replies.