From d2be68f232b5675ff0604fd2459ffd65066b28d4 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 18 Oct 2019 09:48:28 -0400 Subject: [PATCH] Addition of navigation include file, template parts, test statements, prelim index content. --- footer.php | 2 +- functions.php | 1 + header.php | 4 +- home.php | 2 +- includes/navigation.php | 13 +++++ index.php | 26 ++++++++++ page.php | 2 +- search.php | 2 +- single.php | 2 +- template-parts/content/content-excerpt.php | 33 ++++++++++++ template-parts/content/content-none.php | 53 +++++++++++++++++++ template-parts/content/content-page.php | 56 ++++++++++++++++++++ template-parts/content/content-single.php | 55 ++++++++++++++++++++ template-parts/content/content.php | 59 +++++++++++++++++++++ template-parts/footer/footer-widgets.php | 24 +++++++++ template-parts/header/entry-header.php | 46 +++++++++++++++++ template-parts/header/site-branding.php | 60 ++++++++++++++++++++++ template-parts/post/author-bio.php | 30 +++++++++++ template-parts/post/discussion-meta.php | 32 ++++++++++++ 19 files changed, 496 insertions(+), 6 deletions(-) create mode 100644 includes/navigation.php create mode 100644 template-parts/content/content-excerpt.php create mode 100644 template-parts/content/content-none.php create mode 100644 template-parts/content/content-page.php create mode 100644 template-parts/content/content-single.php create mode 100644 template-parts/content/content.php create mode 100644 template-parts/footer/footer-widgets.php create mode 100644 template-parts/header/entry-header.php create mode 100644 template-parts/header/site-branding.php create mode 100644 template-parts/post/author-bio.php create mode 100644 template-parts/post/discussion-meta.php diff --git a/footer.php b/footer.php index 8466045..27495b4 100644 --- a/footer.php +++ b/footer.php @@ -11,7 +11,7 @@ * @since 1.0.0 */ ?> - +
footer
diff --git a/functions.php b/functions.php index 3dd7d75..59b7aac 100644 --- a/functions.php +++ b/functions.php @@ -2,6 +2,7 @@ if( is_admin() ){ require_once "admin/glm-theme-options.php"; } +require_once 'includes/navigation.php'; // deregister unwanted styles / scripts add_action( 'init', 'disable_emojis' ); diff --git a/header.php b/header.php index 624226c..42a463c 100644 --- a/header.php +++ b/header.php @@ -22,4 +22,6 @@ >
-
test
\ No newline at end of file +
test
+
header
+ 'header-menu' ) ); ?> \ No newline at end of file diff --git a/home.php b/home.php index cd3cb7e..d54433d 100644 --- a/home.php +++ b/home.php @@ -9,6 +9,6 @@ get_header(); ?> - +
home
__( 'Header Menu' ), + 'extra-menu' => __( 'Extra Menu' ) + ) + ); + } + add_action( 'after_setup_theme', 'register_my_menus', 0 ); +} diff --git a/index.php b/index.php index f81d04b..b0942e5 100644 --- a/index.php +++ b/index.php @@ -9,6 +9,32 @@ +
index
+ +
+
+ + +
+
\ No newline at end of file diff --git a/page.php b/page.php index b30fa1f..e8d1a51 100644 --- a/page.php +++ b/page.php @@ -9,6 +9,6 @@ get_header(); ?> - +
page
- +
search
- +
single
+ + diff --git a/template-parts/content/content-none.php b/template-parts/content/content-none.php new file mode 100644 index 0000000..332dd17 --- /dev/null +++ b/template-parts/content/content-none.php @@ -0,0 +1,53 @@ + + +
+ + +
+ ' . wp_kses( + /* translators: 1: link to WP admin new post page. */ + __( 'Ready to publish your first post? Get started here.', 'twentynineteen' ), + array( + 'a' => array( + 'href' => array(), + ), + ) + ) . '

', + esc_url( admin_url( 'post-new.php' ) ) + ); + + elseif ( is_search() ) : + ?> + +

+ + +

+ +
+
diff --git a/template-parts/content/content-page.php b/template-parts/content/content-page.php new file mode 100644 index 0000000..b400a84 --- /dev/null +++ b/template-parts/content/content-page.php @@ -0,0 +1,56 @@ + + +
> + +
+ +
+ + +
+ '', + ) + ); + ?> +
+ + +
+ %s', 'twentynineteen' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + get_the_title() + ), + '', + '' + ); + ?> +
+ +
diff --git a/template-parts/content/content-single.php b/template-parts/content/content-single.php new file mode 100644 index 0000000..b98854e --- /dev/null +++ b/template-parts/content/content-single.php @@ -0,0 +1,55 @@ + + +
> + +
+ +
+ + +
+ "%s"', 'twentynineteen' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + ) + ); + ?> +
+ +
+ +
+ + + + + +
diff --git a/template-parts/content/content.php b/template-parts/content/content.php new file mode 100644 index 0000000..85ec632 --- /dev/null +++ b/template-parts/content/content.php @@ -0,0 +1,59 @@ + + +
> +
+ %s', _x( 'Featured', 'post', 'twentynineteen' ) ); + } + if ( is_singular() ) : + the_title( '

', '

' ); + else : + the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); + endif; + ?> +
+ + + +
+ "%s"', 'twentynineteen' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + ) + ); + ?> +
+ +
+ +
+
diff --git a/template-parts/footer/footer-widgets.php b/template-parts/footer/footer-widgets.php new file mode 100644 index 0000000..550e2af --- /dev/null +++ b/template-parts/footer/footer-widgets.php @@ -0,0 +1,24 @@ + + + + + diff --git a/template-parts/header/entry-header.php b/template-parts/header/entry-header.php new file mode 100644 index 0000000..9a72cbf --- /dev/null +++ b/template-parts/header/entry-header.php @@ -0,0 +1,46 @@ + + +', '' ); ?> + + + + diff --git a/template-parts/header/site-branding.php b/template-parts/header/site-branding.php new file mode 100644 index 0000000..03bc53b --- /dev/null +++ b/template-parts/header/site-branding.php @@ -0,0 +1,60 @@ + +
+ + + + + + + +

+ +

+ + + + +

+ +

+ + + + + + + +
diff --git a/template-parts/post/author-bio.php b/template-parts/post/author-bio.php new file mode 100644 index 0000000..edda62c --- /dev/null +++ b/template-parts/post/author-bio.php @@ -0,0 +1,30 @@ + +
+

+ + + +

+

+ + +

+
+ diff --git a/template-parts/post/discussion-meta.php b/template-parts/post/discussion-meta.php new file mode 100644 index 0000000..add281d --- /dev/null +++ b/template-parts/post/discussion-meta.php @@ -0,0 +1,32 @@ +responses > 0; + +if ( $has_responses ) { + /* translators: %1(X comments)$s */ + $meta_label = sprintf( _n( '%d Comment', '%d Comments', $discussion->responses, 'twentynineteen' ), $discussion->responses ); +} else { + $meta_label = __( 'No comments', 'twentynineteen' ); +} +?> + +
+ authors ); + } + ?> +

+ + +

+
-- 2.17.1