From: Ian Weller Date: Tue, 8 Sep 2015 14:07:29 +0000 (-0400) Subject: got logo in tobar and float left X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4a6f4e4df5b12080bcc46ca0889c2cc7f8bd5c7d;p=WP-Themes%2Fmichsci.git got logo in tobar and float left --- diff --git a/functions.php b/functions.php index e24300a..46c1af6 100644 --- a/functions.php +++ b/functions.php @@ -96,7 +96,7 @@ function glm_page_menu($parent = 0, $class = '') 'post_type' => 'page', 'parent' => $parent, 'number' => '', - 'exclude' => $frontPageId, + 'exclude' => '', 'post_status' => 'publish', 'sort_order' => 'asc', 'sort_column' => 'menu_order' @@ -106,9 +106,7 @@ function glm_page_menu($parent = 0, $class = '') } $pages = get_pages($args); echo ''."\n"; - $mainPageCount = 1; foreach ($pages as $page) { - // echo '
'.print_r($page,true).'
';exit; $childs = get_pages('child_of=' . $page->ID); if (count($childs) > 0) { echo '
  • '."\n"; @@ -116,20 +114,13 @@ function glm_page_menu($parent = 0, $class = '') echo glm_page_menu($page->ID, 'sub-menu dropdown'); echo '
  • '."\n"; } else { - echo '
  • '.$page->post_title.'
  • '."\n"; - } - if ($page->post_parent == 0) { - if ($mainPageCount == 0) { - echo ''."\n"; - } - if ($mainPageCount == 6) { - echo '
  • '."\n"; + echo 'ID == $frontPageId) { + echo ' id="logo"'; } - ++$mainPageCount; + echo '>'; + echo ($page->ID == $frontPageId) ? '': $page->post_title; + echo ''."\n"; } } echo ''."\n"; diff --git a/parts/top-bar.php b/parts/top-bar.php index d154377..8e2bfb3 100644 --- a/parts/top-bar.php +++ b/parts/top-bar.php @@ -1,4 +1,4 @@ -