Skip to content

Commit

Permalink
Merge pull request #1500 from Automattic/alpha
Browse files Browse the repository at this point in the history
Release Jul 17
  • Loading branch information
leogermani authored Jul 17, 2023
2 parents 10b2bb1 + 84b2cc9 commit e8615bf
Show file tree
Hide file tree
Showing 104 changed files with 5,941 additions and 978 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.73.0-alpha.3](https://github.com/Automattic/newspack-blocks/compare/v1.73.0-alpha.2...v1.73.0-alpha.3) (2023-07-17)


### Bug Fixes

* only show Additional Fields panel when using Stripe platform ([#1499](https://github.com/Automattic/newspack-blocks/issues/1499)) ([1a08513](https://github.com/Automattic/newspack-blocks/commit/1a085131f881ac62d2ac4879298c3a47d86df684))

## [1.72.2](https://github.com/Automattic/newspack-blocks/compare/v1.72.1...v1.72.2) (2023-07-17)


Expand Down
29 changes: 19 additions & 10 deletions includes/class-newspack-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,16 +628,17 @@ function ( $acc, $block ) use ( $block_name ) {
if ( current_user_can( 'edit_others_posts' ) && isset( $attributes['includedPostStatuses'] ) ) {
$included_post_statuses = $attributes['includedPostStatuses'];
}
$authors = isset( $attributes['authors'] ) ? $attributes['authors'] : array();
$categories = isset( $attributes['categories'] ) ? $attributes['categories'] : array();
$tags = isset( $attributes['tags'] ) ? $attributes['tags'] : array();
$custom_taxonomies = isset( $attributes['customTaxonomies'] ) ? $attributes['customTaxonomies'] : array();
$tag_exclusions = isset( $attributes['tagExclusions'] ) ? $attributes['tagExclusions'] : array();
$category_exclusions = isset( $attributes['categoryExclusions'] ) ? $attributes['categoryExclusions'] : array();
$specific_posts = isset( $attributes['specificPosts'] ) ? $attributes['specificPosts'] : array();
$posts_to_show = intval( $attributes['postsToShow'] );
$specific_mode = isset( $attributes['specificMode'] ) ? intval( $attributes['specificMode'] ) : false;
$args = array(
$authors = isset( $attributes['authors'] ) ? $attributes['authors'] : array();
$categories = isset( $attributes['categories'] ) ? $attributes['categories'] : array();
$include_subcategories = isset( $attributes['includeSubcategories'] ) ? intval( $attributes['includeSubcategories'] ) : false;
$tags = isset( $attributes['tags'] ) ? $attributes['tags'] : array();
$custom_taxonomies = isset( $attributes['customTaxonomies'] ) ? $attributes['customTaxonomies'] : array();
$tag_exclusions = isset( $attributes['tagExclusions'] ) ? $attributes['tagExclusions'] : array();
$category_exclusions = isset( $attributes['categoryExclusions'] ) ? $attributes['categoryExclusions'] : array();
$specific_posts = isset( $attributes['specificPosts'] ) ? $attributes['specificPosts'] : array();
$posts_to_show = intval( $attributes['postsToShow'] );
$specific_mode = isset( $attributes['specificMode'] ) ? intval( $attributes['specificMode'] ) : false;
$args = array(
'post_type' => $post_type,
'post_status' => $included_post_statuses,
'suppress_filters' => false,
Expand Down Expand Up @@ -666,6 +667,14 @@ function ( $acc, $block ) use ( $block_name ) {
);
}
if ( $categories && count( $categories ) ) {
if ( 1 === $include_subcategories ) {
foreach ( $categories as $parent ) {
$children[] = get_categories( array( 'child_of' => $parent ) );
foreach ( $children[0] as $child ) {
$categories[] = $child->term_id;
}
}
}
$args['category__in'] = $categories;
}
if ( $tags && count( $tags ) ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/setup\/placeholder-blocks.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Ad Unit":[""],"Render an ad unit from your inventory.":[""],"Place ad units inside your page by installing Newspack Ads.":[""],"The \"%s\" block is currently not available.":[""],"Visit Plugin Page":[""],"Remove Block":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/author-list\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"author":[""],"Author List":[""],"profile":[""],"Display a list of author profile cards.":[""],"block style\u0004Default":["Standard"],"block style\u0004Centered":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/author-profile\/single-author.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"More by":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/components\/query-controls.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"(no name)":["(kein Name)"],"(no title)":["(kein Titel)"],"Categories":["Kategorien"],"Choose Specific Posts":[""],"Posts":["Beitr\u00e4ge"],"Begin typing post title, click autocomplete result to select.":[""],"Authors":["Autoren"],"Tags":["Schlagw\u00f6rter"],"Hide Advanced Filters":[""],"Show Advanced Filters":[""],"Excluded Tags":[""],"Excluded Categories":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/author-list\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Error fetching authors.":[""],"Author List Settings":[""],"Author Type":[""],"%s will be displayed.":[""],"Both guest authors and WP users":[""],"%s only":[""],"Guest authors":[""],"WP users":[""],"All authors":[""],"Columns":["Spalten"],"WP User Roles":[""],"Display alphabetical separators":[""],"Chunk authors alphabetically.":[""],"Group authors by alphabet":[""],"Display each alphabetical chunk as a discrete section.":[""],"Exclude authors with 0 posts":[""],"Authors with no published posts will be %s.":[""],"hidden":[""],"displayed":[""],"Search by author name":[""],"Authors selected here will not be displayed.":[""],"(no name)":["(kein Name)"],"author":[""],"authors":[""],"Author Profile Settings":[""],"Text Size":[""],"Avatar Settings":[""],"Display avatar":[""],"Hide default avatar":[""],"Avatar Size":[""],"Avatar border radius":[""],"List":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Author List":[""],"Fetching authors\u2026":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/homepage-articles\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Load more posts":["Mehr Beitr\u00e4ge laden"],"Columns":["Spalten"],"Small":["Klein"],"S":["S"],"Medium":["Mittel"],"M":["M"],"Large":["Gro\u00df"],"L":["L"],"Extra Large":["Extra Gro\u00df"],"XL":["XL"],"Show Date":["Datum anzeigen"],"Show Category":["Kategorie anzeigen"],"Show Author":["Autor anzeigen"],"Show Author Avatar":[""],"Display Settings":["Anzeigeneinstellungen"],"Columns Gap":[""],"This blog is private, therefore the \"Load more posts\" feature is not active.":[""],"Show \"Load more posts\" Button":[""],"Featured Image Settings":["Beitragsbild-Einstellungen"],"Show Featured Image":["Beitragsbild anzeigen"],"Show Featured Image Caption":[""],"Stack on mobile":[""],"Featured Image Size":["Gr\u00f6\u00dfe des Beitragbildes"],"Minimum height":["Mindesth\u00f6he"],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Post Control Settings":[""],"Show Subtitle":[""],"Show Excerpt":["Textauszug anzeigen"],"Max number of words in excerpt":[""],"Add a \"Read More\" link":[""],"\"Read More\" link text":[""],"Type Scale":[""],"Color Settings":["Farbeinstellungen"],"Text Color":["Textfarbe"],"Post Meta Settings":["Post Meta SET"],"List View":[""],"Grid View":[""],"Show media on top":[""],"Show media on left":[""],"Show media on right":[""],"Show media behind":[""],"Landscape Image Shape":[""],"portrait Image Shape":[""],"Square Image Shape":[""],"Uncropped":[""],"Write header\u2026":[""],"Sorry, no posts were found.":["Entschuldigung, wir konnten keine Beitr\u00e4ge finden."]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/iframe\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"An error occured when uploading the iframe archive.":[""],"An error occured when setting the iframe from the archive media.":[""],"Hide iframe preview":[""],"Show iframe preview":[""],"This block will take over the page content.":[""],"Newspack embedded iframe":[""],"Iframe Settings":[""],"Fullscreen":[""],"If enabled, the iframe will be full screen and hide all the post content.":[""],"Width":[""],"Height":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/checkout-button\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Click to change the selected product":[""],"Change the selected product":[""],"Type to search for a product\u2026":[""],"Select a product":[""],"Cancel":[""],"Product":[""],"Allow the reader to select the variation before checkout.":[""],"Variation":[""],"Select the product variation to be added to cart.":[""],"Name Your Price":[""],"This product has \"Name Your Price\" toggled on. You can set the custom price for this checkout.":[""],"Suggested price:":[""],"Minimum price:":[""],"Maximum price:":[""],"Custom Price":[""]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/carousel\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Article Meta Settings":[""],"Show Date":["Datum anzeigen"],"Show Category":["Kategorie anzeigen"],"Show Author":["Autor anzeigen"],"Show Author Avatar":[""]}}}
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/carousel\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Square":[""],"1:1":[""],"4:3":[""],"16:9":[""],"3:4":[""],"9:16":[""],"Slide Aspect Ratio":[""],"Image Fit":[""],"Cover":[""],"Contain":[""],"Article Meta Settings":[""],"Show Title":[""],"Show Date":["Datum anzeigen"],"Show Category":["Kategorie anzeigen"],"Show Author":["Autor anzeigen"],"Show Author Avatar":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/author-profile\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"author":[""],"profile":[""],"block style\u0004Default":["Standard"],"block style\u0004Centered":[""],"Author Profile":[""],"Display an author profile card.":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/iframe\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Support reference":[""],"Iframe":[""],"iframe":[""],"project iframe":[""],"Embed an iframe.":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/shared\/author.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Biographical info":[""],"Social links":[""],"Email address":[""],"Link to author archive":[""],"Display the following fields:":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/shared\/js\/utils.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Draft":[""],"Scheduled":[""],"post author\u0004by":["von"],"post author\u0004 and ":[" und "]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/components\/editor-panels.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Post Types":[""],"Additional Post Statuses":[""],"Selection here has effect only for editors, regular users will only see published posts.":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/carousel\/create-swiper.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Slide %s":[""],"Slide %1$s of %2$s":[""],"Image: %s, ":[""],"Playing":[""],"Paused":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/video-playlist\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"YouTube Video Playlist":[""],"video":[""],"playlist":[""],"youtube":[""],"Embed a playlist of latest YouTube videos.":[""]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/donate\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Donate":["Spenden"],"donate":["Spenden"],"memberships":["Mitgliedschaften"],"subscriptions":["Abonnements"],"Enable donations.":[""]}}}
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/donate\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Donate":["Spenden"],"donate":["Spenden"],"memberships":["Mitgliedschaften"],"subscriptions":["Abonnements"],"Manually place a donation block on any post or page on your site.":[""],"Support reference":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/author-profile\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"(no name)":["(kein Name)"],"author":[""],"authors":[""],"Author Profile Settings":[""],"Text Size":[""],"Avatar Settings":[""],"Display avatar":[""],"Hide default avatar":[""],"Avatar border radius":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Small":["Klein"],"S":["S"],"Medium":["Mittel"],"M":["M"],"Large":["Gro\u00df"],"L":["L"],"Extra Large":["Extra Gro\u00df"],"XL":["XL"],"Extra-large":["Extra Gro\u00df"],"No authors or guest authors found for ID %s.":[""],"Avatar size":[""],"Author Profile":[""],"Fetching author info\u2026":[""],"Search for an author to display":[""],"Begin typing name, click autocomplete result to select.":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/iframe\/iframe-placeholder.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Media Library":[""],"Update from URL":[""],"Embed from URL":[""],"Upload an asset folder (.zip), a document (PDF, Word, Excel sheet, or a PPT), pick one from your media library, or add one with a URL.":[""],"Update":[""],"Upload":[""]}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/video-playlist\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Error":["Fehler"],"No videos found":[""],"(no title)":["(kein Titel)"],"Settings":[""],"Videos":[""],"The maximum number of videos to pull from posts.":[""],"Categories":["Kategorien"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/homepage-articles\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Homepage Posts":[""],"posts":["Beitr\u00e4ge"],"articles":["Artikel"],"latest":["letzten"],"A block for displaying homepage posts.":[""],"block style\u0004Default":["Standard"],"block style\u0004Borders":["Rahmen"]}}}
{"translation-revision-date":"2023-06-26 14:26-0700","generator":"WP-CLI\/2.8.1","source":"src\/blocks\/homepage-articles\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"block style\u0004Default":["Standard"],"Homepage Posts":[""],"posts":["Beitr\u00e4ge"],"articles":["Artikel"],"latest":["letzten"],"A block for displaying homepage posts.":[""],"block style\u0004Borders":["Rahmen"]}}}
Binary file modified languages/newspack-blocks-de_DE.mo
Binary file not shown.
Loading

0 comments on commit e8615bf

Please sign in to comment.