From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../template-parts/post/content-audio.php | 109 +++++++++++++++++++++ .../template-parts/post/content-excerpt.php | 48 +++++++++ .../template-parts/post/content-gallery.php | 96 ++++++++++++++++++ .../template-parts/post/content-image.php | 86 ++++++++++++++++ .../template-parts/post/content-none.php | 40 ++++++++ .../template-parts/post/content-video.php | 107 ++++++++++++++++++++ .../template-parts/post/content.php | 79 +++++++++++++++ 7 files changed, 565 insertions(+) create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-image.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-none.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-video.php create mode 100644 srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content.php (limited to 'srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post') diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php new file mode 100644 index 0000000..0d094ed --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php @@ -0,0 +1,109 @@ + + +
> + 'thumb-tack' ) ); + } + ?> +
+ '; + if ( is_single() ) { + twentyseventeen_posted_on(); + } else { + echo twentyseventeen_time_link(); + twentyseventeen_edit_link(); + }; + echo ''; + }; + + if ( is_single() ) { + the_title( '

', '

' ); + } elseif ( is_front_page() && is_home() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } + ?> +
+ + + + +
+ + + +
+ + +
+ + '; + echo $audio_html; + echo '
'; + } + }; + + }; + + if ( is_single() || empty( $audio ) ) { + + the_content( + sprintf( + /* translators: %s: Post title. */ + __( 'Continue reading "%s"', 'twentyseventeen' ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) + ); + + }; + ?> + + + + + +
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php new file mode 100644 index 0000000..54a4933 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php @@ -0,0 +1,48 @@ + + +
> + +
+ + + + + + + ', esc_url( get_permalink() ) ), '' ); + } else { + the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); + } + ?> +
+ +
+ +
+ +
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php new file mode 100644 index 0000000..af1eaf4 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php @@ -0,0 +1,96 @@ + + +
> + 'thumb-tack' ) ); + } + ?> +
+ '; + if ( is_single() ) { + twentyseventeen_posted_on(); + } else { + echo twentyseventeen_time_link(); + twentyseventeen_edit_link(); + }; + echo ''; + }; + + if ( is_single() ) { + the_title( '

', '

' ); + } elseif ( is_front_page() && is_home() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } + ?> +
+ + +
+ + + +
+ + +
+ + '; + echo get_post_gallery(); + echo '
'; + }; + + }; + + if ( is_single() || ! get_post_gallery() ) { + + the_content( + sprintf( + /* translators: %s: Post title. */ + __( 'Continue reading "%s"', 'twentyseventeen' ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) + ); + + }; + ?> + + + + + +
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-image.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-image.php new file mode 100644 index 0000000..9062fcd --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-image.php @@ -0,0 +1,86 @@ + + +
> + 'thumb-tack' ) ); + } + ?> +
+ '; + if ( is_single() ) { + twentyseventeen_posted_on(); + } else { + echo twentyseventeen_time_link(); + twentyseventeen_edit_link(); + }; + echo ''; + }; + + if ( is_single() ) { + the_title( '

', '

' ); + } elseif ( is_front_page() && is_home() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } + ?> +
+ + +
+ + + +
+ + +
+ + "%s"', 'twentyseventeen' ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) + ); + + }; + ?> + +
+ + + +
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-none.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-none.php new file mode 100644 index 0000000..50b3fb1 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-none.php @@ -0,0 +1,40 @@ + + +
+ +
+ + +

+ Get started here.', 'twentyseventeen' ), esc_url( admin_url( 'post-new.php' ) ) ); + ?> +

+ + + +

+ +
+
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-video.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-video.php new file mode 100644 index 0000000..c08dda9 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content-video.php @@ -0,0 +1,107 @@ + + +
> + 'thumb-tack' ) ); + } + ?> +
+ '; + if ( is_single() ) { + twentyseventeen_posted_on(); + } else { + echo twentyseventeen_time_link(); + twentyseventeen_edit_link(); + } + echo ''; + }; + + if ( is_single() ) { + the_title( '

', '

' ); + } elseif ( is_front_page() && is_home() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } + ?> +
+ + + + +
+ + + +
+ + +
+ + '; + echo $video_html; + echo '
'; + } + }; + + }; + + if ( is_single() || empty( $video ) ) { + + the_content( + sprintf( + /* translators: %s: Post title. */ + __( 'Continue reading "%s"', 'twentyseventeen' ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) + ); + }; + ?> + + + + + +
diff --git a/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content.php b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content.php new file mode 100644 index 0000000..7571f05 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentyseventeen/template-parts/post/content.php @@ -0,0 +1,79 @@ + + +
> + 'thumb-tack' ) ); + endif; + ?> +
+ '; + if ( is_single() ) { + twentyseventeen_posted_on(); + } else { + echo twentyseventeen_time_link(); + twentyseventeen_edit_link(); + }; + echo ''; + }; + + if ( is_single() ) { + the_title( '

', '

' ); + } elseif ( is_front_page() && is_home() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } + ?> +
+ + +
+ + + +
+ + +
+ "%s"', 'twentyseventeen' ), + get_the_title() + ) + ); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) + ); + ?> +
+ + + +
-- cgit