Quote:
Originally Posted by gb2world
Also check that anywhere you have added javascript to a template (.tpl file), that you enclose it within {literal} {/literal}
|
That is probably what is wrong now.
This bit:
PHP Code:
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$('.flexslider').flexslider();
});
< /script>
Should be:
PHP Code:
<script type="text/javascript" charset="utf-8">
{literal}
$(window).load(function() {
$('.flexslider').flexslider();
});
{/literal}
< /script>
The problem is that Smarty uses those same delimiters { and }, see those in the JavaScript?
Another way to escape those is to use {$ldelim} for "{" and {$rdelim} for "}".
Like this:
PHP Code:
<script type="text/javascript" charset="utf-8">
$(window).load(function() {$ldelim}
$('.flexslider').flexslider();
{$rdelim});
< /script>