From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../twentytwenty/template-parts/content-cover.php | 182 +++++++++++++++++++++ .../themes/twentytwenty/template-parts/content.php | 94 +++++++++++ .../template-parts/entry-author-bio.php | 33 ++++ .../twentytwenty/template-parts/entry-header.php | 75 +++++++++ .../twentytwenty/template-parts/featured-image.php | 43 +++++ .../template-parts/footer-menus-widgets.php | 119 ++++++++++++++ .../twentytwenty/template-parts/modal-menu.php | 148 +++++++++++++++++ .../twentytwenty/template-parts/modal-search.php | 34 ++++ .../twentytwenty/template-parts/navigation.php | 61 +++++++ .../twentytwenty/template-parts/pagination.php | 58 +++++++ 10 files changed, 847 insertions(+) create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content-cover.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-header.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/featured-image.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-menu.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-search.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/navigation.php create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/template-parts/pagination.php (limited to 'srcs/wordpress/wp-content/themes/twentytwenty/template-parts') diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content-cover.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content-cover.php new file mode 100644 index 0000000..f9b480f --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content-cover.php @@ -0,0 +1,182 @@ + + +
id="post-"> + + +
> +
+
+
>
+ +
+
+ + + +
+ +
+ +
+
+ + ', '' ); + + if ( is_page() ) { + ?> + +
+ + + +
+
+ +
+ + + +
+ +
+ + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ '', + 'link_before' => '', + 'link_after' => '', + ) + ); + + edit_post_link(); + // Single bottom post meta. + twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); + + if ( is_single() ) { + + get_template_part( 'template-parts/entry-author-bio' ); + + } + ?> + +
+ + + +
+ + + +
+ + + +
diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content.php new file mode 100644 index 0000000..4b745fa --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/content.php @@ -0,0 +1,94 @@ + + +
id="post-"> + + + +
+ +
+ + + +
+ +
+ +
+ '', + 'link_before' => '', + 'link_after' => '', + ) + ); + + edit_post_link(); + + // Single bottom post meta. + twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); + + if ( is_single() ) { + + get_template_part( 'template-parts/entry-author-bio' ); + + } + ?> + +
+ + + +
+ + + +
+ + + +
diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php new file mode 100644 index 0000000..14553c6 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php @@ -0,0 +1,33 @@ + +
+
+
+ +
+

+ +

+
+ +
+ diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-header.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-header.php new file mode 100644 index 0000000..1f68550 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/entry-header.php @@ -0,0 +1,75 @@ + + +
+ +
+ + + +
+ +
+ +
+
+ + ', '' ); + } else { + the_title( '

', '

' ); + } + + $intro_text_width = ''; + + if ( is_singular() ) { + $intro_text_width = ' small'; + } else { + $intro_text_width = ' thin'; + } + + if ( has_excerpt() && is_singular() ) { + ?> + +
+ +
+ + + +
+ +
diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/featured-image.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/featured-image.php new file mode 100644 index 0000000..03e48df --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/featured-image.php @@ -0,0 +1,43 @@ + + + + + + + + + diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-menu.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-menu.php new file mode 100644 index 0000000..20b9628 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-menu.php @@ -0,0 +1,148 @@ + + + diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-search.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-search.php new file mode 100644 index 0000000..e01090a --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/modal-search.php @@ -0,0 +1,34 @@ + + diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/navigation.php b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/navigation.php new file mode 100644 index 0000000..ca4eff6 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/template-parts/navigation.php @@ -0,0 +1,61 @@ + + + + + %s', + '', + __( 'Newer Posts', 'twentytwenty' ) +); +$next_text = sprintf( + '%s %s', + __( 'Older Posts', 'twentytwenty' ), + '' +); + +$posts_pagination = get_the_posts_pagination( + array( + 'mid_size' => 1, + 'prev_text' => $prev_text, + 'next_text' => $next_text, + ) +); + +// If we're not outputting the previous page link, prepend a placeholder with visibility: hidden to take its place. +if ( strpos( $posts_pagination, 'prev page-numbers' ) === false ) { + $posts_pagination = str_replace( '', $posts_pagination ); +} + +if ( $posts_pagination ) { ?> + +
+ + + + + +
+ +