From: Anthony Talarico Date: Wed, 6 Jan 2016 18:35:22 +0000 (-0500) Subject: added facebook icon to footer X-Git-Tag: v1.0.0^2~127 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cd60227bcea19b29663fcce29f935ac97c25ccbf;p=WP-Themes%2Fotsego.git added facebook icon to footer --- diff --git a/assets/facebook.png b/assets/facebook.png new file mode 100644 index 0000000..76d6076 Binary files /dev/null and b/assets/facebook.png differ diff --git a/lib/navigation.php b/lib/navigation.php index 5e78a21..68f75ec 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -186,4 +186,82 @@ function glm_side_menu() { echo wp_list_pages( 'child_of='.$ID.'&title_li=&depth=1&echo=0'); echo ''."\n"; } +//function glm_side_menu($mobile = false) { +// global $post; +// $sideMenu = $allMenu = $pageMenuId = array(); +// +// if (($locations = get_nav_menu_locations()) && isset($locations['top-bar-2'])) { +// $menu = wp_get_nav_menu_object($locations['top-bar-2']); +// $menu_items = wp_get_nav_menu_items($menu->term_id); +// foreach ((array) $menu_items as $key => $menu_item) { +// $sideMenu[$menu_item->menu_item_parent][] = $menu_item; +// $allMenu[$menu_item->ID] = $menu_item; +// if ($menu_item->object_id == $post->ID) { +// $pageMenuId[] = $menu_item; +// } +// } +// if (count($pageMenuId) > 1) { +// $thisPageMenuId = (isset($pageMenuId[1])) ? $pageMenuId[1]->ID : 0; +// $thisPageMenuParent = (isset($pageMenuId[1])) ? $pageMenuId[1]->menu_item_parent : 0; +// foreach ($pageMenuId as $men) { +// if (isset($sideMenu[$men->ID]) && !empty($sideMenu[$men->ID])) { +// $thisPageMenuId = $men->ID; +// $thisPageMenuParent = $men->menu_item_parent; +// } +// } +// } else { +// $thisPageMenuId = (isset($pageMenuId[0])) ? $pageMenuId[0]->ID : 0; +// $thisPageMenuParent = (isset($pageMenuId[0])) ? $pageMenuId[0]->menu_item_parent : 0; +// } +// // does the current page (in the menu) have sub menu items? +// if (isset($sideMenu[$thisPageMenuId]) && !empty($sideMenu[$thisPageMenuId])) { +// $pageHead = $allMenu[$thisPageMenuId]; +// // get the subs for $thisPageMenuId +// $subs = $sideMenu[$thisPageMenuId]; +// // If the first element is title [Tabs] then this is a uber menu +// // custom item and we need to get the subs under that menu item +// // instead ($sideMenu[$subs[0]->ID]) +// +// if ($subs[0]->title == '[Tabs]') { +// $subs = $sideMenu[$subs[0]->ID]; +// } +// } else if ($thisPageMenuParent) { +// $pageHead = $allMenu[$thisPageMenuParent]; +// // get the subs for $thisPageMenuParent +// $subs = $sideMenu[$thisPageMenuParent]; +// } else { +// $pageHead = $allMenu[0]; +// // get Main level +// $subs = $sideMenu[0]; +// } +// } +// if ($mobile) { +// echo '