From the browser console on page load:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/sites/all/themes/zoundation/javascripts/vendor/zepto.js
Uncaught TypeError: Cannot read property 'stop' of undefined foundation.js:71
Uncaught ReferenceError: Foundation is not defined foundation.orbit.js:357
Uncaught ReferenceError: Foundation is not defined foundation.joyride.js:615
Uncaught ReferenceError: Foundation is not defined foundation.forms.js:395
Uncaught ReferenceError: Foundation is not defined foundation.tooltips.js:195
Uncaught ReferenceError: Foundation is not defined foundation.clearing.js:478
Uncaught ReferenceError: Foundation is not defined foundation.alerts.js:50
Uncaught ReferenceError: Foundation is not defined foundation.magellan.js:130
Uncaught ReferenceError: Foundation is not defined foundation.placeholder.js:159
Uncaught ReferenceError: Foundation is not defined foundation.cookie.js:74
Uncaught ReferenceError: Foundation is not defined foundation.dropdown.js:122
Uncaught ReferenceError: Foundation is not defined foundation.section.js:240
Uncaught ReferenceError: Foundation is not defined foundation.reveal.js:272
Uncaught ReferenceError: Foundation is not defined foundation.topbar.js:215
Uncaught TypeError: Object #<HTMLDocument> has no method 'foundation' localhost:655

Ajax isn't working anywhere either.

Comments

rafaqz’s picture

Status: Active » Needs review

Drupal is in a subfolder for me, and that was causing the issue. Also the variable $directory points to the subtheme if you override the page template, and it dosn't have zepto.js. I rewrote this for the end of page.tpl.php and it works fine for me.

<script>
  document.write('<script src=<?php print $GLOBALS['base_path']; print drupal_get_path('theme', 'zoundation');?>/javascripts/vendor/' +
  ('__proto__' in {} ? 'zepto' : 'jquery') + '.js><\/script>')
</script>