true
);
if(is_front_page()) {
- wp_enqueue_script(
- 'glm_foundation',
- get_template_directory_uri() . '/js/glmSlideshow/glmSlideshow.js',
- 'jquery',
- '1.0',
- true
- );
}
}
echo '</div>';
}
-// // The code below is useful when you want the image to resize to
-// if (has_post_thumbnail()) {
-// $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-// echo '<img src="'.$image_data[0].'" style="no-repeat;max-height:400px;">';
-// } else {
-// echo '<img src="'.get_template_directory_uri().'/assets/default-header.gif" style="max-height:400px;">';
-// }
-// echo '<div class="row">';
-// echo '<div class="small-12 columns">';
-// echo '</div>';
-// echo '</div>';
-
add_action('wp_enqueue_scripts', 'glm_site_scripts');
+++ /dev/null
-$(document).foundation();
-$(document).ready(function () {
- 'use strict';
- $("#metaslider_14").nivoSlider({
- pauseOnHover:true,
- effect: 'slideInLeft',
- directionNavHide:true,
- pauseTime: 7000,
- afterLoad: function (){
-// $("#metaslider_11 .nivo-caption").fadeIn();
- $("#metaslider_14 .nivo-caption").addClass("open");
- },
- beforeChange: function () {
- $("#metaslider_14 .nivo-caption").removeClass("open");
- $("#metaslider_14 .nivo-caption").addClass("close");
- },
- afterChange: function () {
- $("#metaslider_14 .nivo-caption").removeClass("close");
- $("#metaslider_14 .nivo-caption").addClass("open");
- }
- });
-
- // remove this code before final push
- $("#metaslider_11").nivoSlider({
- pauseOnHover:true,
- directionNavHide:true,
- effect: 'slideInLeft',
- pauseTime: 7000,
- afterLoad: function (){
-// $("#metaslider_11 .nivo-caption").fadeIn();
- $("#metaslider_11 .nivo-caption").addClass("open");
- },
- beforeChange: function () {
- $("#metaslider_11 .nivo-caption").removeClass("open");
- $("#metaslider_11 .nivo-caption").addClass("close");
- },
- afterChange: function () {
- $("#metaslider_11 .nivo-caption").removeClass("close");
- $("#metaslider_11 .nivo-caption").addClass("open");
- }
- });
-});
\ No newline at end of file