Replace old sidebar with template_part due to off-canvas navigation using sidebar.php
authorLaury GvR <laury@gaslightmedia.com>
Thu, 5 Feb 2015 21:10:03 +0000 (16:10 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 5 Feb 2015 21:10:03 +0000 (16:10 -0500)
contentsidebar.php [new file with mode: 0644]
front-page.php
page.php

diff --git a/contentsidebar.php b/contentsidebar.php
new file mode 100644 (file)
index 0000000..bde8417
--- /dev/null
@@ -0,0 +1,9 @@
+<div class="small-12 columns medium-3 side-nav">
+    <ul style="list-style-type: none;">
+        <li>
+            <a href="<?php echo esc_url( get_permalink( get_page_by_title( 'Recycling Totes' ) ) ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/bin-3.png"><p>Get a Recycle Tote</p></a></li>
+        <li><a id="pointer" href="<?php echo esc_url( get_permalink( get_page_by_title( 'Drop-Off Center / Transfer Station' ) ) ); ?>"></a><p>Hours & Locations</p></li>
+        <li><a id="broch" href="<?php echo esc_url( get_permalink( get_page_by_title( 'Recycling Guide' ) ) ); ?>"></a><p>Get a Recycling Guide</p></li>
+        <li><a id="pup"><img src="<?php echo get_template_directory_uri(); ?>/assets/pup.png"></a><a id="pup_txt">eNews</a><input type="text" id="newsletter" class="right" placeholder="  Enter email to sign up"><p class="open">The EmmetRecycling.org Retriever</p></li>
+    </ul>
+</div>
index 21bd2f3..3c105f8 100755 (executable)
             </div>
         </div>
     </div>
-    <?php get_sidebar(); ?>
+    <?php get_template_part('contentsidebar'); ?>
 </div>
 <?php get_footer(); ?>
\ No newline at end of file
index 5c57249..96ab677 100755 (executable)
--- a/page.php
+++ b/page.php
@@ -39,6 +39,6 @@
             </div>
         </div>
     </div>
-    <?php get_sidebar(); ?>
+    <?php get_template_part('contentsidebar'); ?>
 </div>
 <?php get_footer(); ?>
\ No newline at end of file