Skip to content

Commit

Permalink
Merge pull request #2262 from Automattic/alpha
Browse files Browse the repository at this point in the history
Release Mar 19
  • Loading branch information
dkoo authored Mar 25, 2024
2 parents 11769f2 + a221b04 commit b16dd67
Show file tree
Hide file tree
Showing 12 changed files with 497 additions and 759 deletions.
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

0 comments on commit b16dd67

Please sign in to comment.