Slideshow fix, video_url for gallery template, Search files
authorLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 18:30:21 +0000 (13:30 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 18:30:21 +0000 (13:30 -0500)
assets/WebsiteIconFiles1.png [new file with mode: 0755]
assets/bin-3.png [new file with mode: 0755]
assets/email-2.png [new file with mode: 0755]
assets/map-2.png [new file with mode: 0755]
front-page.php
header.php
home.php [new file with mode: 0644]
nggallery/gallery-glmvideos.php
search.php [new file with mode: 0644]

diff --git a/assets/WebsiteIconFiles1.png b/assets/WebsiteIconFiles1.png
new file mode 100755 (executable)
index 0000000..43ce021
Binary files /dev/null and b/assets/WebsiteIconFiles1.png differ
diff --git a/assets/bin-3.png b/assets/bin-3.png
new file mode 100755 (executable)
index 0000000..624ed2c
Binary files /dev/null and b/assets/bin-3.png differ
diff --git a/assets/email-2.png b/assets/email-2.png
new file mode 100755 (executable)
index 0000000..ed1b47d
Binary files /dev/null and b/assets/email-2.png differ
diff --git a/assets/map-2.png b/assets/map-2.png
new file mode 100755 (executable)
index 0000000..65dbef7
Binary files /dev/null and b/assets/map-2.png differ
index 9d875f1..404a87c 100755 (executable)
@@ -4,6 +4,7 @@
         <div>
             <?php 
                 echo do_shortcode("[metaslider id=24]"); 
+                echo do_shortcode("[metaslider id=28]"); 
             ?>
         </div>
             <?php
index aefac7f..12366a3 100755 (executable)
                                         </div>
                                     </div>
                                     <div class="row">
-                                        <div class="small-12 large-9 columns">
-                                            <div class="row">
-                                                <div id="large-12_s" class="small-12 small-push-0 medium-push-0 large-12 large-push-4 columns">
-                                                    <input type="text" id="lar-search" placeholder="  Search the site">
+                                        <div class="small-12 large-9 columns search-form">
+                                            <form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>">
+                                                <div class="row">
+                                                    <div id="large-12_s" class="small-12 small-push-0 medium-push-0 large-12 large-push-4 columns">
+                                                        <input type="text" value="" name="s" id="lar-search" placeholder="  Search the site">
+                                                    </div>
+                                                    <div id="top_angle" class="large-1 large-push-4 show-for-large-up columns"></div>
                                                 </div>
-                                                <div id="top_angle" class="large-1 large-push-4 show-for-large-up columns"></div>
-                                            </div>
+                                            </form>
+                                            <?php do_action('foundationPress_after_searchform'); ?>
                                         </div>
                                         <div class="row">
                                             <div class="small-12 medium-6 medium-push-5 columns">
diff --git a/home.php b/home.php
new file mode 100644 (file)
index 0000000..04d56bb
--- /dev/null
+++ b/home.php
@@ -0,0 +1,91 @@
+<?php get_header(); ?>
+<div id="panel">
+    <div class="row">
+        <div class="small-12 columns">
+            <img id="still" src="<?php echo get_template_directory_uri(); ?>/assets/header_img.jpg">
+        </div>
+    </div>
+    <div class="row">
+        <div class="small-11 small-centered columns">
+            <h1 id="pan-text">Helping You Build With Confidence Since 1915</h1>
+        </div>
+    </div>
+</div>
+<div class="row">
+    <div id="searchform_container" class="small-12 medium-3 columns alignright">
+        <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
+            <div><input id="s" class="text" type="text" name="s" value="" />
+            <input class="submit button blogbutton" type="submit" name="submit" value="Search" />
+            <input type="hidden" name="searchType" value="blog" /> </div>
+        </form>
+    </div>
+    <div id="blog-posts-over" class="small-12 medium-9 columns">
+        
+        <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
+        <div class="row content" id="blog-posts-container">
+            <div class="small-11 small-centered columns">
+                <div class="row">
+                    <div class="small-12 columns">
+                        <ul class="breadcrumbs">
+
+                        </ul>
+                    </div>
+                </div>
+                <div class="row">
+                    <div class="small-12 columns">
+
+                        <article id="<?php the_ID()?>" <?php post_class()?>>
+                            <header class="entry-header">
+
+                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+
+
+                            </header>
+
+                            <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                            <hr>
+                        </article>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <?php endwhile; ?>
+        <div class="navigation">
+            <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+        </div><!-- /.navigation -->
+        <?php else: ?>
+        <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+        </div><!-- /#post-404 -->
+        <?php endif;?>
+    </div>
+    <div class="row content small-12 medium-3">
+    <div id="blog-side-info" class="alignright small-12 medium-3">
+        
+        <p>Recent Posts</p>
+        <ul>
+        <?php
+                $args = array( 'numberposts' => '5' );
+                $recent_posts = wp_get_recent_posts( $args );
+                foreach( $recent_posts as $recent ){
+                        echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
+                }
+        ?>
+        </ul>
+        <p>Archive</p>
+        <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
+        <p>Categories</p>
+        <ul>
+            <?php
+            $args = array(
+            'orderby' => 'name',
+            'order' => 'ASC'
+            );
+          $categories = get_categories($args);
+            foreach($categories as $category) { 
+              echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
+            ?>
+        </ul>
+    </div>
+        <?php get_footer(); ?>
index 2803508..599e8d8 100644 (file)
@@ -40,14 +40,14 @@ Follow variables are useable :
             <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box imgBorderMe" <?php echo $image->style ?> >
 
                 <div class="ngg-gallery-thumbnail" >
-                    <a href="<?php echo nggcf_get_field($image->pid, "url") ?>"
+                    <a href="<?php echo nggcf_get_field($image->pid, "video_url") ?>"
                     title="<?php echo esc_attr($image->description) ?>"
                     data-src="<?php echo nextgen_esc_url($image->imageURL) ?>"
                     data-thumbnail="<?php echo nextgen_esc_url($image->thumbnailURL); ?>"
                     data-image-id="<?php echo esc_attr($image->pid); ?>"
                     data-title="<?php echo esc_attr($image->alttext); ?>"
                     data-description="<?php echo esc_attr($image->description); ?>"
-                    data-url="<?php echo nggcf_get_field($image->pid, "url"); ?>"
+                    data-url="<?php echo nggcf_get_field($image->pid, "video_url"); ?>"
                     <?php echo $image->thumbcode ?> >
                         <?php if ( !$image->hidden ) { ?>
                         
diff --git a/search.php b/search.php
new file mode 100644 (file)
index 0000000..76be770
--- /dev/null
@@ -0,0 +1,55 @@
+
+    
+<?php get_header(); ?>
+
+<div class="row">
+    <h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2>
+    <div id="blog-posts-over" class="small-12 columns">
+
+        <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
+        <div class="content" id="blog-posts-container">
+            <div class="small-11 small-centered columns">
+                <div class="row">
+                    <div class="small-12 columns">
+<!--                        <ul class="breadcrumbs">
+
+                        </ul>-->
+                    </div>
+                </div>
+                <div class="row">
+                    <div class="small-12 columns">
+
+                        <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <h2 class="">Page: <a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                <hr>
+                            <?php the_post_thumbnail(); ?>
+                            <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                            <footer class="entry-meta small-12 medium-6 medium-push-3 center">
+                                
+                                <?php $post_categories = wp_get_post_categories( get_the_ID() );
+                                $cats = array();
+
+                                ?>
+
+                            </footer>
+                            <hr>
+                        </article>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <?php endwhile; ?>
+        <?php if ( function_exists('FoundationPress_pagination') ) { FoundationPress_pagination(); } else if ( is_paged() ) { ?>
+
+               <nav id="post-nav">
+                       <div class="post-previous"><?php next_posts_link( __( '&larr; Older results', 'FoundationPress' ) ); ?></div>
+                       <div class="post-next"><?php previous_posts_link( __( 'Newer results &rarr;', 'FoundationPress' ) ); ?></div>
+               </nav>
+       <?php } ?>
+        <?php else: ?>
+        <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+        </div><!-- /#post-404 -->
+        <?php endif;?>
+    </div>
+        <?php get_footer(); ?>