From 51ae1fe586861189ebbe896406a3a76f50fcb87c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 16 Mar 2015 09:22:13 -0400 Subject: [PATCH] Set up Blocks --- front-page.php | 52 ++++++++++++++++++++++++++------------------ functions.php | 10 +++++++-- header.php | 6 ++--- page.php | 28 ++++++++---------------- scss/_structure.scss | 15 +++++++++---- sidebar.php | 4 ++-- 6 files changed, 64 insertions(+), 51 deletions(-) diff --git a/front-page.php b/front-page.php index 000d374..da0a450 100644 --- a/front-page.php +++ b/front-page.php @@ -1,36 +1,46 @@
-
+
-
+

If this is an emergency, please call 9-1-1

-
- "; - bcn_display(); - echo "
"; - echo '

'; - } else if (is_front_page()) { - - if (function_exists('glm_blocks_show')) { - echo '
'; - glm_blocks_show(); - echo '
'; - echo '

'; - } - } - ?> +
@@ -45,4 +55,4 @@
- \ No newline at end of file + diff --git a/functions.php b/functions.php index 4849bc0..2dda100 100644 --- a/functions.php +++ b/functions.php @@ -54,7 +54,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' @@ -72,7 +72,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"; + echo 'ID == $frontPageId) { + echo ' id="logo"'; + } + echo '>'; + echo ($page->ID == $frontPageId) ? '': $page->post_title; + echo ''."\n"; } } echo ''."\n"; diff --git a/header.php b/header.php index f7f406c..2d5219d 100644 --- a/header.php +++ b/header.php @@ -4,15 +4,15 @@ <?php wp_title(); ?> - +
    -
    +
    @@ -41,6 +41,6 @@
    diff --git a/page.php b/page.php index f7b5bef..0779da9 100644 --- a/page.php +++ b/page.php @@ -1,29 +1,19 @@ - -
    -
    + +
    +

    If this is an emergency, please call 9-1-1

    - "; - bcn_display(); - echo "
    "; - echo '

    '; - } else if (is_front_page()) { - - if (function_exists('glm_blocks_show')) { - echo '
    '; - glm_blocks_show(); - echo '
    '; - echo '

    '; - } - } - ?> + "; + bcn_display(); + echo "
    "; + echo '

    '; + ?>
    diff --git a/scss/_structure.scss b/scss/_structure.scss index 69deb84..369664e 100644 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -94,6 +94,8 @@ body { margin: 0; } &#logo { + z-index: 999; + position: relative; &:hover { background: transparent; } @@ -152,11 +154,16 @@ body { #slideshow { border-bottom: 3px solid #0e688d; .nivo-caption { - float: right; - font-size: rem-calc(12); + bottom: 10px; + right: 0; + left: auto; + width: 400px; + color: black; + text-align: right; + font-size: rem-calc(14); @include gradient2 ($white, transparent); margin-top: -60px; - padding: 10px 0; + padding: 10px 20px 10px 0; p { float: right; margin-bottom: 0; @@ -337,4 +344,4 @@ body { } } } -} \ No newline at end of file +} diff --git a/sidebar.php b/sidebar.php index 8100f45..d17d3d9 100644 --- a/sidebar.php +++ b/sidebar.php @@ -1,3 +1,3 @@ - - \ No newline at end of file + + \ No newline at end of file -- 2.17.1