From 0d812ab875d3161311c3aae0a39fb03de3dfb5ad Mon Sep 17 00:00:00 2001 From: CogDog Date: Fri, 13 Oct 2017 20:54:08 -0700 Subject: [PATCH] Page Template Added --- README.md | 3 +- functions.php | 2 +- header.php | 2 +- page.php | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ single.php | 2 +- style.css | 2 +- 6 files changed, 90 insertions(+), 6 deletions(-) create mode 100644 page.php diff --git a/README.md b/README.md index 1dc1ae0..8db6d5c 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,6 @@ Big Picture works best for smaller amounts of content in each section, it's mean * Laura Killam Dossier http://dossier.nursekillam.com/ * Aaron Davis http://home.readwriterespond.com/ - - ## Installing from Scratch Install this theme on any self hosted Wordpress site. No luck on Wordpress.com, get a real web hosting package. @@ -212,6 +210,7 @@ If you ever need to edit the Gallery (e.g. change the images), revert the name o * v0.1 (Sep 3, 2017) First release, for the brave, the few, the daring. * v0.2 (Sep 5, 2017) Added template for single post view and support for **Read More** tags to separate content for front page excerpt and provide a space for more content in a single post view. Removed center alignment for primary content. Added home link to blog title in top left. * v0.3 (Oct 11, 2017) Small styling improvements- outline title text, bigger text below, added transparency to the sliding box overlays +* v0.3 (Oct 13, 2017) Added template for standalone Wordpress Page. ### Requests diff --git a/functions.php b/functions.php index 59ba8f8..9216b51 100644 --- a/functions.php +++ b/functions.php @@ -195,7 +195,7 @@ function bigpicture_register_theme_customizer( $wp_customize ) { // Add setting for front text $wp_customize->add_setting( 'intro_blurb_text', array( - 'default' => __( 'I am a compelling blob of text. HTML is okay here.', 'bigpicture' ), + 'default' => __( 'I am a compelling blob of text. HTML is okay here.', 'bigpicture' ), 'sanitize_callback' => 'bigpicture_nosanitize_text' ) ); // Add control for front text diff --git a/header.php b/header.php index af1761a..a3c73f7 100644 --- a/header.php +++ b/header.php @@ -15,7 +15,7 @@ #intro { background: url('/assets/images/overlay.png'), url(""); - + #top { background: url('/assets/images/overlay.png'), url(""); diff --git a/page.php b/page.php new file mode 100644 index 0000000..56ed177 --- /dev/null +++ b/page.php @@ -0,0 +1,85 @@ + 'post', + 'post_status' => 'publish', + 'orderby' => 'menu_order', + 'order' => 'ASC', + 'posts_per_page' => 10, + ) ); + + // First Loop for the navigation + if ( $the_query->have_posts() ) { + while ( $the_query->have_posts() ) { + + $the_query->the_post(); + + // doth we have a string for the menu item? + $menu_label = get_post_meta( get_the_ID(), '_button_label', true ); + + // no, use the title, it will be ugly, but they should get the hint + if ( empty( $menu_label ) ) { + $menu_label = get_the_title(); + } + + // add to navigation mennu + echo '
  • ' . $menu_label . '
  • '; + + // keep track for later use + $menulist[] = $menu_label; + + } // while + + echo ''; + + } // $the_query->have_posts() +?> + + + + + + + +
    +
    +
    +

    +
    + + +
    +
    + + + +
    +
    + + +
    +

    +
    + + + + + ', '

    ');?> + +
    + + Return + +
    + + + + \ No newline at end of file diff --git a/single.php b/single.php index e4d5135..e950c0d 100644 --- a/single.php +++ b/single.php @@ -59,7 +59,7 @@

    -

    +