From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../wp-includes/theme-compat/comments.php | 77 +++++++++++ .../wp-includes/theme-compat/embed-404.php | 36 +++++ .../wp-includes/theme-compat/embed-content.php | 127 ++++++++++++++++++ srcs/wordpress/wp-includes/theme-compat/embed.php | 24 ++++ .../wp-includes/theme-compat/footer-embed.php | 21 +++ srcs/wordpress/wp-includes/theme-compat/footer.php | 40 ++++++ .../wp-includes/theme-compat/header-embed.php | 32 +++++ srcs/wordpress/wp-includes/theme-compat/header.php | 60 +++++++++ .../wordpress/wp-includes/theme-compat/sidebar.php | 149 +++++++++++++++++++++ 9 files changed, 566 insertions(+) create mode 100644 srcs/wordpress/wp-includes/theme-compat/comments.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/embed-404.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/embed-content.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/embed.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/footer-embed.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/footer.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/header-embed.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/header.php create mode 100644 srcs/wordpress/wp-includes/theme-compat/sidebar.php (limited to 'srcs/wordpress/wp-includes/theme-compat') diff --git a/srcs/wordpress/wp-includes/theme-compat/comments.php b/srcs/wordpress/wp-includes/theme-compat/comments.php new file mode 100644 index 0000000..bd58af2 --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/comments.php @@ -0,0 +1,77 @@ + +

+ + + + + +

+ +

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

+ + + + + diff --git a/srcs/wordpress/wp-includes/theme-compat/embed-404.php b/srcs/wordpress/wp-includes/theme-compat/embed-404.php new file mode 100644 index 0000000..29b2b1a --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/embed-404.php @@ -0,0 +1,36 @@ + +
+

+ + + + + + +
diff --git a/srcs/wordpress/wp-includes/theme-compat/embed-content.php b/srcs/wordpress/wp-includes/theme-compat/embed-content.php new file mode 100644 index 0000000..25a45f2 --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/embed-content.php @@ -0,0 +1,127 @@ + +
> + $data ) { + if ( $data['height'] > 0 && $data['width'] / $data['height'] > $aspect_ratio ) { + $aspect_ratio = $data['width'] / $data['height']; + $measurements = array( $data['width'], $data['height'] ); + $image_size = $size; + } + } + } + + /** + * Filters the thumbnail image size for use in the embed template. + * + * @since 4.4.0 + * @since 4.5.0 Added `$thumbnail_id` parameter. + * + * @param string $image_size Thumbnail image size. + * @param int $thumbnail_id Attachment ID. + */ + $image_size = apply_filters( 'embed_thumbnail_image_size', $image_size, $thumbnail_id ); + + $shape = $measurements[0] / $measurements[1] >= 1.75 ? 'rectangular' : 'square'; + + /** + * Filters the thumbnail shape for use in the embed template. + * + * Rectangular images are shown above the title while square images + * are shown next to the content. + * + * @since 4.4.0 + * @since 4.5.0 Added `$thumbnail_id` parameter. + * + * @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'. + * @param int $thumbnail_id Attachment ID. + */ + $shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id ); + } + + if ( $thumbnail_id && 'rectangular' === $shape ) : + ?> + + + +

+ + + +

+ + + + + +
+ + + + +
+ + + diff --git a/srcs/wordpress/wp-includes/theme-compat/footer.php b/srcs/wordpress/wp-includes/theme-compat/footer.php new file mode 100644 index 0000000..833015d --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/footer.php @@ -0,0 +1,40 @@ + + +
+ + + + + + + + + diff --git a/srcs/wordpress/wp-includes/theme-compat/header-embed.php b/srcs/wordpress/wp-includes/theme-compat/header-embed.php new file mode 100644 index 0000000..9c0743a --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/header-embed.php @@ -0,0 +1,32 @@ + + + class="no-js"> + + <?php echo wp_get_document_title(); ?> + + tag. + * + * @since 4.4.0 + */ + do_action( 'embed_head' ); + ?> + +> diff --git a/srcs/wordpress/wp-includes/theme-compat/header.php b/srcs/wordpress/wp-includes/theme-compat/header.php new file mode 100644 index 0000000..461a85a --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/header.php @@ -0,0 +1,60 @@ + + +> + + + + +<?php echo wp_get_document_title(); ?> + + + + + + + + + + + + +> +
+ + +
diff --git a/srcs/wordpress/wp-includes/theme-compat/sidebar.php b/srcs/wordpress/wp-includes/theme-compat/sidebar.php new file mode 100644 index 0000000..da4efaa --- /dev/null +++ b/srcs/wordpress/wp-includes/theme-compat/sidebar.php @@ -0,0 +1,149 @@ + + -- cgit