Hello,
I'm trying to get a conditional right in my page template to get Contact Form 7 to be responsive to qTranslateX chosen language.. I've tried the following:
<?php if ($lingo == 'lt') :?>
<?php echo do_shortcode( '[contact-form-7 id="31"]' ); ?>
<?php else : ?>
<?php echo do_shortcode( '[contact-form-7 id="32"]' ); ?>
<?php endif ?>
(the one above only gives me only the English version of Contact Form, whatever the chosen language of the site)
and this:
<?php if(qtranxs_getLanguage() == "en") :?>
<?php echo do_shortcode( '[contact-form-7 id="32"]' ) ?>
<?php if(qtranxs_getLanguage() == "lt") :?>
<?php echo do_shortcode( '[contact-form-7 id="31"]' ) ?>
The one above the whole page fails opening and tells me that the line with <?php get_footer(); ?>
is faulty..
Would really massively appreciate your help!
Thanks!