Parse error in php-code-widget/execphp.php(27) : eval()'d code on line 4
-
I’d really like to thank you for this plugin. It does the job really good.
The only issue I have is that I’m currently showing a translation link inside a widget, but since the url for this link is http, I can’t load it inside the widget without braking the browser padlock.
I need to show it when doing http insecure connections, and hide it when the connection is done over SSL.
This is what I put inside the PHP code widget:
<?php if ( is_ssl() ) { esc_html_e( '<a href="https://free-website-translation.com/" id="ftwtranslation_button" hreflang="en" title="" style="border:0;"><img src="https://free-website-translation.com/img/fwt_button_en.gif" id="ftwtranslation_image" alt="FWT Homepage Translator" style="border:0;"/></a> <script type="text/javascript" src="https://free-website-translation.com/scripts/fwt.js" /></script>' ); } else { esc_html_e( 'Translations not available on secure connections.' ); ?>
The issue is that every time the widget is loaded, I get the error I posted above, and I see that the error occurs when doing the eval.
Is there a way to format the above code in order for it to appear when on SSL and show the text message when doing an http insecure connection?
I’ll appreciate any advice you may provide.
- The topic ‘Parse error in php-code-widget/execphp.php(27) : eval()'d code on line 4’ is closed to new replies.