Social media links, schedule linked up. /main moved.
authorLaury GvR <laury@gaslightmedia.com>
Tue, 14 Mar 2017 20:20:29 +0000 (16:20 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 14 Mar 2017 20:20:29 +0000 (16:20 -0400)
- Linked up social media icons.
- Linked up the schedule on the frontpage
- Moved /main from footer into every file that starts <main

archive.php
assets/schedules/2016-1_Winter_Schedule.pdf [new file with mode: 0644]
assets/schedules/Winter-Schedule-Cover.jpg [new file with mode: 0644]
footer.php
front-page.php
home.php
index.php
parts/off-canvas-menu.php
search.php
single.php
woocommerce.php

index b002abd..6b17e58 100644 (file)
@@ -4,46 +4,47 @@
         <?php echo glm_get_header();?>
     </div>
     <div id="slide-cover"></div>
-    <div class="row">
-        
-     <div id="blog-posts-over" class="small-12 medium-9 columns">
-        <?php if(have_posts()) : while(have_posts()): the_post();?>
-        <?php $status =  get_post_status($post->ID); ?>
-        <div class="row content blog-posts-container">
-              <!--  <div class="small-11 small-centered columns"> -->
-                <div class="small-12">
-                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                </div>
-                <?php 
-                    if (has_post_thumbnail()) {
-                        $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
-                        echo '<a href="'.get_the_permalink().'" class="blog-featured-home small-12 medium-6" style="background-image:url('.$image_data[0].');"></a>';
-                        echo '<div class="small-12 medium-6 small-centered columns right">';
-                    } else {
-                        echo '<div class="small-12 small-centered columns">';
-                    }
-                ?>
-                <article id="<?php the_ID()?>" <?php post_class()?>>
-                    <div class="blog-excerpt-date">
-                        Posted on <strong><?php the_time('F jS, Y'); ?></strong>
+        <div class="row">
+
+         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <?php if(have_posts()) : while(have_posts()): the_post();?>
+            <?php $status =  get_post_status($post->ID); ?>
+            <div class="row content blog-posts-container">
+                  <!--  <div class="small-11 small-centered columns"> -->
+                    <div class="small-12">
+                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                     </div>
-                    <?php echo the_advanced_excerpt(); ?>
-                    <hr class="contentBreak">
-                    
-                </article>
+                    <?php 
+                        if (has_post_thumbnail()) {
+                            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
+                            echo '<a href="'.get_the_permalink().'" class="blog-featured-home small-12 medium-6" style="background-image:url('.$image_data[0].');"></a>';
+                            echo '<div class="small-12 medium-6 small-centered columns right">';
+                        } else {
+                            echo '<div class="small-12 small-centered columns">';
+                        }
+                    ?>
+                    <article id="<?php the_ID()?>" <?php post_class()?>>
+                        <div class="blog-excerpt-date">
+                            Posted on <strong><?php the_time('F jS, Y'); ?></strong>
+                        </div>
+                        <?php echo the_advanced_excerpt(); ?>
+                        <hr class="contentBreak">
+
+                    </article>
+                </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>
-        <?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>
-    <?php get_template_part('parts/blog-sidebar-r'); ?>
-</div>
+        <?php get_template_part('parts/blog-sidebar-r'); ?>
+    </div><!-- Slide-cover???--->
+</main><!--End of main-->
 <?php get_footer(); ?>
diff --git a/assets/schedules/2016-1_Winter_Schedule.pdf b/assets/schedules/2016-1_Winter_Schedule.pdf
new file mode 100644 (file)
index 0000000..566c9e0
Binary files /dev/null and b/assets/schedules/2016-1_Winter_Schedule.pdf differ
diff --git a/assets/schedules/Winter-Schedule-Cover.jpg b/assets/schedules/Winter-Schedule-Cover.jpg
new file mode 100644 (file)
index 0000000..0805045
Binary files /dev/null and b/assets/schedules/Winter-Schedule-Cover.jpg differ
index 8a23729..8378480 100644 (file)
@@ -1,28 +1,27 @@
-                    </main><!--End of main-->
-                        <div id="space">
-                            <h1>#StarLineFerry</h1>
+                <div id="space">
+                    <h1>#StarLineFerry</h1>
+                </div>
+                <footer class="main">
+                    <?php if (is_active_sidebar('sidebar-f')) :?>
+                        <?php dynamic_sidebar('sidebar-f');?>
+                    <?php endif;?>
+                    <div class="row">
+                        <div class="small-10 small-centered medium-uncentered medium-4 large-3 columns small-text-center">
+                            <a href="<?php bloginfo('url')?>"><img alt="footer logo" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/star-line-circle-logo.png"></a>
+                        </div>
+                        <div class="medium-4 large-5 columns show-for-medium-up foot-menu">
+                            <?php glm_theme_footer(); ?>
+                        </div>
+                        <div class="medium-4 columns show-for-medium-up">
+                            <?php get_template_part('parts/client-info-footer');?>
+                            <ul class="social">
+                                <li><a class="facebook" href="https://www.facebook.com/starlineferry/" target="_blank"></a></li>
+                                <li><a class="insta" href="https://www.instagram.com/explore/locations/275623542/" target="_blank"></a></li>
+                                <li><a class="tube" href="https://www.youtube.com/channel/UCeym3wynlVDPpVs3kmbBeGQ" target="_blank"></a></li>
+                            </ul>
                         </div>
-                        <footer class="main">
-                            <?php if (is_active_sidebar('sidebar-f')) :?>
-                                <?php dynamic_sidebar('sidebar-f');?>
-                            <?php endif;?>
-                            <div class="row">
-                                <div class="small-10 small-centered medium-uncentered medium-4 large-3 columns small-text-center">
-                                    <a href="<?php bloginfo('url')?>"><img alt="footer logo" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/star-line-circle-logo.png"></a>
-                                </div>
-                                <div class="medium-4 large-5 columns show-for-medium-up foot-menu">
-                                    <?php glm_theme_footer(); ?>
-                                </div>
-                                <div class="medium-4 columns show-for-medium-up">
-                                    <?php get_template_part('parts/client-info-footer');?>
-                                    <ul class="social">
-                                        <li><a class="facebook" href="#" target="_blank"></a></li>
-                                        <li><a class="insta" href="#" target="_blank"></a></li>
-                                        <li><a class="tube" href="#" target="_blank"></a></li>
-                                    </ul>
-                                </div>
-                            </div>
-                        </footer>
+                    </div>
+                </footer>
                 <div id="copyright">
                     <span>Copyright &copy; <?php echo date('Y');?> </span>
                     <span class="bullet"> &#8226; </span>
index 22f674a..0884039 100644 (file)
 -->
         <div class="action-items">
             <div class="row">
-                <div class="small-12 medium-6 text-center columns">
-                    <a href="#"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/buy-tickets-graphics.png"></a>
-                    <a href="#"><h5>Buy Ferry <br>Tickets</h5></a>
+                <div class="buy-tickets small-12 medium-6 text-center columns">
+                    <a href="<?php echo get_permalink(40)?>"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/buy-tickets-graphics.png"></a>
+                    <a href="<?php echo get_permalink(40)?>"><h5>Buy Ferry <br>Tickets</h5></a>
                 </div>
-                <div class="small-12 medium-6 text-center columns">
-                    <a><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/schedules-covers.png"></a>
-                    <a href="#" target="_blank"><h5>Download <br>Schedule</h5></a>
+                <div class="get-schedule small-12 medium-6 text-center columns">
+                    <a href="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/schedules/2016-1_Winter_Schedule.pdf" target="_blank"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/schedules-covers.png"></a>
+                    <a href="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/schedules/2016-1_Winter_Schedule.pdf" target="_blank"><h5>Download <br>Schedule</h5></a>
                 </div>
             </div>
         </div>
@@ -43,5 +43,5 @@
             </div>
         </div>
     </div>
-    
+</main><!--End of main-->
 <?php get_footer(); ?>
index 9aae779..c6dffc8 100644 (file)
--- a/home.php
+++ b/home.php
@@ -49,6 +49,7 @@
         </div>
         <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
-    <?php get_footer(); ?>
+</main><!--End of main-->
+<?php get_footer(); ?>
 
 
index da138e9..25c2d87 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,46 +3,21 @@
     <div id="header-image" class="page-header">
         <?php echo glm_get_header();?>
     </div>
-    
-        
-        <div id="content-wrapper">
-            <div class="row">
-                <?php
-                get_template_part('parts/bread-crumbs');
-                ?>
-            </div>
-            <div class="row">
-                
-            </div>
-            <div class="row">
-                <div id="main-content" class="small-12 columns">
-                    <?php if(have_posts()) : while(have_posts()): the_post();?>
-                    <?php the_content();?>
-                    <?php endwhile; else:?>
-                    <p><?php _e('Sorry, no results found.');?></p>
-                    <?php endif;?>
-                </div>
-            </div>
-              <?php if (is_page(101)) { 
-                    $terms = get_terms( 'product_tag' );
-                    $term_array = array();
-    
-                    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ ?>
-                    <div class="row">
-                       <div id="tours-tags-grid-container">
-                            <ul id="tours-tags-grid">
-                        <?php foreach ( $terms as $term ) {
-                             $thumbnail = z_taxonomy_image_url( $term->term_id ); ?>
-                                <?php if( empty( $thumbnail ) ){
-                                    $thumbnail = get_template_directory_uri() . '/assets/header-images-2.jpg';
-                             }?>
-                            <li class="tour_tag"><div class="tag_image" style="height: 200px; width: 200px;background: url('<?php echo $thumbnail; ?> ') no-repeat center center;background-size: cover;"></div><a href=" <?php echo get_term_link($term->term_id); ?>"> <?php echo  $term->name; ?> </a></li>
-                      <?php }
-                    } 
-
-                  } ?>
-                </ul>
-                </div>
+    <div id="content-wrapper">
+        <div class="row">
+            <?php
+            get_template_part('parts/bread-crumbs');
+            ?>
+        </div>
+        <div class="row">
+            <div id="main-content" class="small-12 columns">
+                <?php if(have_posts()) : while(have_posts()): the_post();?>
+                <?php the_content();?>
+                <?php endwhile; else:?>
+                <p><?php _e('Sorry, no results found.');?></p>
+                <?php endif;?>
             </div>
         </div>
+    </div>
+</main><!--End of main-->
 <?php get_footer(); ?>
index 23af452..4cf6734 100644 (file)
@@ -2,9 +2,9 @@
     <?php glm_theme_mobile_off_canvas(); ?>
 <!--    <?php get_template_part('parts/search');?>-->
     <ul class="offcavas-social-list">
-        <li><a class="facebook" href="#" target="_blank"></a></li>
-        <li><a class="insta" href="#" target="_blank"></a></li>
-        <li><a class="tube" href="#" target="_blank"></a></li>
+    <li><a class="facebook" href="https://www.facebook.com/starlineferry/" target="_blank"></a></li>
+    <li><a class="insta" href="https://www.instagram.com/explore/locations/275623542/" target="_blank"></a></li>
+    <li><a class="tube" href="https://www.youtube.com/channel/UCeym3wynlVDPpVs3kmbBeGQ" target="_blank"></a></li>
     </ul>
     <?php glm_theme_footer(); ?>
     <?php get_template_part('parts/client-info-offcanvas');?>
index 67f7f67..88bd3d0 100644 (file)
             <?php } ?> <!-- end empty query check -->
         </div>
     
-    <?php get_footer(); ?>
+</main><!--End of main-->
+<?php get_footer(); ?>
index 416c732..a4f7d04 100644 (file)
@@ -61,4 +61,5 @@
         </div>
         <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
-    <?php get_footer(); ?>
+</main><!--End of main-->
+<?php get_footer(); ?>
index 139020d..75b7a3e 100644 (file)
     <div id="wooImageHoverContainer">
         <img>
     </div>
+</main><!--End of main-->
 <?php get_footer(); ?>
 <script>