Conditional statements not working
-
I was using qTranslate before I found this great plugin and I recently moved over to this plugin, however I am encountering an issue of a conditional statement not working:
if ( qtrans_getLanguage() == 'es' ) { // spanish questionnaire echo FrmFormsController::get_form_shortcode(array('id' => 14, 'title' => false, 'description' => false)); } elseif ( qtrans_getLanguage() == 'de' ) { // german questionnaire echo FrmFormsController::get_form_shortcode(array('id' => 15, 'title' => false, 'description' => false)); } elseif ( qtrans_getLanguage() == 'fr' ) { // french questionnaire echo FrmFormsController::get_form_shortcode(array('id' => 16, 'title' => false, 'description' => false)); } else { // english questionnaire echo FrmFormsController::get_form_shortcode(array('id' => 13, 'title' => false, 'description' => false)); }
It worked fine with qTranslate so I am unsure why not here.
thanks
Graham
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional statements not working’ is closed to new replies.