</footer>
</div><!--/inner-wrap-->
</div><!--/off-canvas-->
- <script src="<?php bloginfo('template_url'); ?>/js/foundation.min.js"></script>
- <script>
- $(document).foundation();
- $(document).ready(function(){
- $('ul.children').each(function(){
- $(this).before('<a class="toggle" href="#"></a>');
- });
- $('a.toggle').click('click', function(){
- console.log('clicked me!');
- $(this).toggleClass('open');
- $(this).siblings('ul').toggleClass('open');
- });
- });
- </script>
<?php wp_footer();?>
</body>
</html>
\ No newline at end of file
*/
function preston_feather_scripts()
{
+ wp_enqueue_script(
+ 'modernizr',
+ get_template_directory_uri() . '/js/vendor/modernizr.js'
+ );
+ wp_enqueue_script(
+ 'jquery',
+ get_template_directory_uri() . '/js/vendor/jquery.js'
+ );
+ wp_enqueue_script(
+ 'dollarsign',
+ get_template_directory_uri() . '/js/dollarsign.js'
+ );
+ wp_enqueue_script(
+ 'foundation',
+ get_template_directory_uri() . '/js/foundation.min.js',
+ 'jquery',
+ '1.0',
+ true
+ );
+ wp_enqueue_script(
+ 'pageSetup',
+ get_template_directory_uri() . '/js/pageSetup.js',
+ 'foundation',
+ '1.0',
+ true
+ );
if(is_front_page()) {
wp_enqueue_script(
'cycle_script',
'jquery',
'1.0',
true
- );
+ );
wp_enqueue_script(
'glm_google_map_code',
'http://maps.google.com/maps/api/js?sensor=false',
<title><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/foundation.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/styles.css">
- <script src="<?php bloginfo('template_url'); ?>/js/vendor/modernizr.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/vendor/jquery.js"></script>
<?php wp_head();?>
</head>
<body>
--- /dev/null
+/*
+ * To avoid conflicts, Wordpress tends to prefer jQuery being used over $.
+ * As long as this file is included, no such conflicts should arise. Ensure it
+ * is called before other .js files using $.
+ */
+
+
+var $=jQuery.noConflict();
--- /dev/null
+$(document).foundation();
+$(document).ready(function () {
+ $('ul.children').each(function () {
+ $(this).before('<a class="toggle" href="#"></a>');
+ });
+ $('a.toggle').click('click', function () {
+ console.log('clicked me!');
+ $(this).toggleClass('open');
+ $(this).siblings('ul').toggleClass('open');
+ });
+});
\ No newline at end of file