vidmarc Posted April 7, 2015 Share Posted April 7, 2015 Any suggestions? http://www.fabpress.com Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 7, 2015 Share Posted April 7, 2015 Fixed - Twitter feed in copyright notice wasnt escaped for SmartyIan Quote Link to comment Share on other sites More sharing options...
vidmarc Posted April 7, 2015 Author Share Posted April 7, 2015 What would be the correct way to add the Twitter feed? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 7, 2015 Share Posted April 7, 2015 Replied on the ticket - please check there Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 7, 2015 Share Posted April 7, 2015 When putting javascript in a template, it is necessary to make sure the braces in the javascript code do not look like Smarty tag delimiters. javascript: if(expression){do something} Smarty: {$do_something} Two ways to make sure the braces in javascript are not interpreted by Smarty (which would otherwise cause Smarty to complain about the template and then deliver a blank page to the browser): 1. Add white space (new lines, tabs, spaces, etc): if(expression){ do something } or 2. Enclose the javascript in Smarty's {literal}{/literal} tags: {literal}if(expression){do something}{/literal} Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 7, 2015 Share Posted April 7, 2015 When putting javascript in a template, it is necessary to make sure the braces in the javascript code do not look like Smarty tag delimiters.This case wasnt adding to a template directly but via the copyright notice although the same requirement to escape using smarty {literal} tags still applies. This was solved as noted via an internal support ticketIan Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 7, 2015 Share Posted April 7, 2015 Via the Copyright Notice? Relating to the content entered into the rich text editor in admin, Store Settings, Copyright tab? In GUI->__construct(), there is:$copyright = $GLOBALS['smarty']->fetch('string:'.stripslashes($GLOBALS['config']->get('config', 'store_copyright'))); So, since the copyright content does go through the Smarty parser, it is important to keep the aforementioned javascript coding style in mind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.