Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Mar 19 #2262

Merged
merged 17 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.87.0-alpha.1](https://github.com/Automattic/newspack-theme/compare/v1.86.0...v1.87.0-alpha.1) (2024-03-07)


### Features

* add large image size for larger featured images ([#2254](https://github.com/Automattic/newspack-theme/issues/2254)) ([86be097](https://github.com/Automattic/newspack-theme/commit/86be0978fcacbfc4243144ba9c721d766b35789b))

# [1.86.0](https://github.com/Automattic/newspack-theme/compare/v1.85.1...v1.86.0) (2024-03-06)


Expand Down
55 changes: 26 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion newspack-joseph/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Template: newspack-theme
Expand Down
2 changes: 1 addition & 1 deletion newspack-katharine/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Template: newspack-theme
Expand Down
2 changes: 1 addition & 1 deletion newspack-nelson/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Template: newspack-theme
Expand Down
2 changes: 1 addition & 1 deletion newspack-sacha/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Template: newspack-theme
Expand Down
2 changes: 1 addition & 1 deletion newspack-scott/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Template: newspack-theme
Expand Down
1 change: 1 addition & 0 deletions newspack-theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function newspack_setup() {
set_post_thumbnail_size( 1568, 9999 );

add_image_size( 'newspack-featured-image', 1200, 9999 );
add_image_size( 'newspack-featured-image-large', 2000, 9999 );
add_image_size( 'newspack-archive-image', 800, 600, true );
add_image_size( 'newspack-archive-image-large', 1200, 900, true );
add_image_size( 'newspack-footer-logo', 400, 9999 );
Expand Down
2 changes: 1 addition & 1 deletion newspack-theme/sass/theme-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://newspack.com
Description:
Requires at least: WordPress 4.9.6
Version: 1.86.0
Version: 1.87.0-alpha.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: newspack
Expand Down
6 changes: 3 additions & 3 deletions newspack-theme/template-parts/post/large-featured-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>

<div class="featured-image-behind">
<?php newspack_post_thumbnail(); ?>
<?php newspack_post_thumbnail( 'newspack-featured-image-large' ); ?>
<div class="wrapper">
<header class="entry-header">
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
Expand All @@ -30,15 +30,15 @@
</header>
</div><!-- .wrapper -->

<?php newspack_post_thumbnail(); ?>
<?php newspack_post_thumbnail( 'newspack-featured-image-large' ); ?>

<?php newspack_post_thumbnail_caption(); ?>
</div><!-- .featured-image-behind -->

<?php elseif ( 'above' === newspack_featured_image_position() ) : ?>

<div class="featured-image-above">
<?php newspack_post_thumbnail(); ?>
<?php newspack_post_thumbnail( 'newspack-featured-image-large' ); ?>

<header class="entry-header">
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
Expand Down
Loading