2012-08-08, 19:58:37
fugo Wrote:I use the I18N_Gallery but with this theme it is not working. What I need to do?seems many conflicts with jquery multiple calls...
to make conditional jquery calls replace, in the 3 templates provided (template.php, heading.php, and wide.php) the 2 lines calling jquery at bottom :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php get_theme_url(); ?>/js/libs/jquery-1.7.1.min.js"><\/script>')</script>
by conditional jquery calling, 1 call jquery from google, 2 if google down take the jquery provided by the template:
<script type="text/javascript">
/* only load jQuery if not present */
if(typeof jQuery == 'undefined') {
document.write("<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></"+"script>");
var __noconflict = true;
}
</script>
<script type="text/javascript">
/* if Google is down */
if(typeof jQuery == 'undefined') {
document.write('<script src="<?php get_theme_url(); ?>/js/libs/jquery-1.7.1.min.js"><\/script>');
var __noconflict = true;
}
</script>