fixing error
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 11 Jan 2016 19:43:55 +0000 (14:43 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 11 Jan 2016 19:43:55 +0000 (14:43 -0500)
nav-menu-dropdown.php [deleted file]
parts/frontpage-sidebar-dropdown.php [deleted file]
sidebar.php

diff --git a/nav-menu-dropdown.php b/nav-menu-dropdown.php
deleted file mode 100644 (file)
index 8ddb890..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/**
- * Nav Menu Dropdown
- *
- * @package      BE_Genesis_Child
- * @since        1.0.0
- * @link         https://github.com/billerickson/BE-Genesis-Child
- * @author       Bill Erickson <bill@billerickson.net>
- * @copyright    Copyright (c) 2011, Bill Erickson
- * @license      http://opensource.org/licenses/gpl-2.0.php GNU Public License
- *
- */
-
-class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu {
-    function start_lvl( &$output, $depth = 0, $args = array() ){
-        $indent = str_repeat("\t", $depth); // don't output children opening tag (`<ul>`)
-    }
-
-    function end_lvl( &$output, $depth = 0, $args = array() ){
-        $indent = str_repeat("\t", $depth); // don't output children closing tag
-    }
-
-    /**
-    * Start the element output.
-    *
-    * @param  string $output Passed by reference. Used to append additional content.
-    * @param  object $item   Menu item data object.
-    * @param  int $depth     Depth of menu item. May be used for padding.
-    * @param  array $args    Additional strings.
-    * @return void
-    */
-    function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) {
-        $url = '#' !== $item->url ? $item->url : '';
-        $output .= '<option value="' . $url . '">' . $item->title;
-    }
-
-    function end_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0){
-        $output .= "</option>\n"; // replace closing </li> with the option tag
-    }
-}
-?>
\ No newline at end of file
diff --git a/parts/frontpage-sidebar-dropdown.php b/parts/frontpage-sidebar-dropdown.php
deleted file mode 100644 (file)
index e9644ec..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-// Nav Menu Dropdown Class
-include_once( 'nav-menu-dropdown.php' );
-
-wp_nav_menu( array(
-    'theme_location' => 'frontpage-sidebar',
-    'menu'           => 'frontpage-sidebar',
-    'walker'         => new Walker_Nav_Menu_Dropdown(),
-    'items_wrap'     => '<div class="mobile-menu"><form><select onchange="if (this.value) window.location.href=this.value"><option value="" selected="selected" disabled="true" selected>-- select a service</option>%3$s</select></form></div>',
-) );
index 947a59f..a3f3143 100644 (file)
@@ -4,11 +4,8 @@
                         <?php echo do_shortcode('[ai1ec view="stream" events_limit="3"]'); ?>
                         <a id="event-link" href="<?php bloginfo('url'); ?>/events">View All Events</a>
                         <h2>Quick Links</h2>
-                        <form class="side-quick-links">
-                            <label for="frontpage-sidebar"></label>
-                            <?php get_template_part("parts/frontpage-sidebar-dropdown") ?>
-                        </form>
-<!--
+            
+
                         <form class="side-quick-links">
                             <select>
                                 <option value="1">Select</option>
@@ -18,7 +15,7 @@
                             </select>
                             <input type="submit" value="Go">
                         </form>
--->
+
                     </div>