Skip to content

Commit

Permalink
Only load cufon.js in the default theme if language is LRT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Dec 8, 2010
1 parent be56e33 commit 8822179
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/pyrocms/themes/default/views/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@

<!-- Begin scripts -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load('jquery', '1.4.2');</script>
<script type="text/javascript">google.load('jquery', '1.4');</script>

{pyro:theme:js file="localscroll.js"}
{pyro:theme:js file="scrollto.js"}
{pyro:theme:js file="easing.js"}

{if '{pyro:lang:direction}' == 'ltr'}
{pyro:theme:js file="cufon.js"}
{/if}

{pyro:theme:js file="qk.font.js"}
{pyro:theme:js file="global.js"}
<!-- End scripts -->
Expand Down

2 comments on commit 8822179

@okhayat
Copy link

@okhayat okhayat commented on 8822179 Dec 8, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line that uses cufon also has to be done this way. Line 36 I guess, other wise a JS error will be thrown.

@marcoscoelho
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the line 32 also is related with the cufon.js

Please sign in to comment.