diff --git a/src/wp-content/themes/twentytwentyone/image.php b/src/wp-content/themes/twentytwentyone/image.php new file mode 100644 index 0000000000..a30fdd4522 --- /dev/null +++ b/src/wp-content/themes/twentytwentyone/image.php @@ -0,0 +1,110 @@ + +
> +
+ ', '' ); ?> +
+ +
+
+ + + +
+ +
+ + '', + /* translators: There is a space after page. */ + 'pagelink' => esc_html__( 'Page ', 'twentytwentyone' ) . '%', + ) + ); + ?> +
+ +
+ '; + printf( + /* translators: %s: parent post. */ + esc_html__( 'Published in %s', 'twentytwentyone' ), + '' . esc_html( get_the_title( wp_get_post_parent_id( $post ) ) ) . '' + ); + echo ''; + } else { + // Edit post link. + edit_post_link( + sprintf( + /* translators: %s: Name of current post. Only visible to screen readers. */ + esc_html__( 'Edit %s', 'twentytwentyone' ), + '' . get_the_title() . '' + ), + '', + '' + ); + } + + // Retrieve attachment metadata. + $metadata = wp_get_attachment_metadata(); + if ( $metadata ) { + printf( + '%1$s%3$s × %4$s', + esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentytwentyone' ), // phpcs:ignore WordPress.Security.EscapeOutput + esc_url( wp_get_attachment_url() ), + absint( $metadata['width'] ), + absint( $metadata['height'] ) + ); + } + + if ( wp_get_post_parent_id( $post ) ) { + // Edit post link. + edit_post_link( + sprintf( + /* translators: %s: Name of current post. Only visible to screen readers. */ + esc_html__( 'Edit %s', 'twentytwentyone' ), + '' . get_the_title() . '' + ), + '', + '
' + ); + } + ?> +
+
+

'; + printf( + /* translators: %s: WordPress Version. */ + esc_html__( 'This theme requires at least WordPress version 5.3. You are running version %s. Please upgrade and try again.', 'twentytwentyone' ), + esc_html( $GLOBALS['wp_version'] ) + ); + echo '