@automattic/newspack-blocks 4.27.1 → 4.28.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/blocks/homepage-articles/block.json +4 -0
- package/dist/editor-rtl.css +3 -3
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +3 -3
- package/dist/editor.js +4 -4
- package/dist/modal.asset.php +1 -1
- package/dist/modal.js +1 -1
- package/includes/class-newspack-blocks-api.php +12 -0
- package/includes/class-newspack-blocks.php +29 -0
- package/languages/newspack-blocks-de_DE-53e2a1d5945b8d2b1c35e81ae1e532f3.json +1 -1
- package/languages/newspack-blocks-de_DE.po +11 -7
- package/languages/newspack-blocks-es_ES-53e2a1d5945b8d2b1c35e81ae1e532f3.json +1 -1
- package/languages/newspack-blocks-es_ES.po +11 -7
- package/languages/newspack-blocks-fr_BE-53e2a1d5945b8d2b1c35e81ae1e532f3.json +1 -1
- package/languages/newspack-blocks-fr_BE.po +11 -7
- package/languages/newspack-blocks-nb_NO-53e2a1d5945b8d2b1c35e81ae1e532f3.json +1 -1
- package/languages/newspack-blocks-nb_NO.po +11 -7
- package/languages/newspack-blocks-pt_PT-53e2a1d5945b8d2b1c35e81ae1e532f3.json +1 -1
- package/languages/newspack-blocks-pt_PT.po +11 -7
- package/languages/newspack-blocks.pot +11 -7
- package/newspack-blocks.php +2 -2
- package/package.json +2 -2
- package/src/blocks/homepage-articles/block.json +4 -0
- package/src/blocks/homepage-articles/edit.tsx +22 -0
- package/src/blocks/homepage-articles/templates/article.php +8 -0
- package/src/modal-checkout/modal.js +20 -1
- package/src/types/index.d.ts +2 -0
- package/vendor/composer/installed.php +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"translation-revision-date":"2024-08-30 08:46-0700","generator":"WP-CLI\/2.12.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nb_NO","plural-forms":"nplurals=2; plural=(n != 1);"},"Cancel":[""],"Draft":[""],"Scheduled":[""],"per %s":[""],"Donate":[""],"Author Profile":[""],"More by %s":[""],"block style\u0004Default":[""],"block style\u0004Centered":[""],"once":["en gang"],"One-time":["En gang"],"Monthly":["M\u00e5nedlig"],"Annually":["\u00c5rlig"],"Donation amount":["Mengde donasjon"],"Other":["Annet"],"Load more posts":["Last flere innlegg"],"Slide %s":[""],"Slide %1$s of %2$s":[""],"Image: %s,":[""],"Playing":[""],"Paused":[""],"Listings":[""],"Post Types":[""],"Additional Post Statuses":[""],"Selection here has effect only for editors, regular users will only see published posts.":[""],"(no title)":[""],"(no name)":[""],"Deleted category":[""],"Deleted tag":[""],"Mode":[""],"The block will display only the specifically selected content.":[""],"The block will display content based on the filtering settings below.":[""],"Dynamic":[""],"Static":[""],"Content":[""],"Begin typing any word in a title. Click on an autocomplete result to select it.":[""],"Category":[""],"is one of":[""],"is all of":[""],"Include subcategories":[""],"Tags":[""],"Authors":[""],"Excluded categories":[""],"Excluded tags":[""],"Excluded %s":[""],"Allow duplicate content":[""],"Exclude this block from the page's deduplication logic.":[""],"The post content.":[""],"The post excerpt.":[""],"Full post content.":[""],"Post Subtitle":[""],"Post Title":[""],"by":[""],"Featured image caption":[""],"Biographical info":[""],"Social links":[""],"Email address":[""],"Link to author archive":[""],"Display the following fields:":[""],"post author\u0004and":[""],"Square":[""],"1:1":[""],"4:3":[""],"16:9":[""],"3:4":[""],"9:16":[""],"Settings":[""],"Display":[""],"Hide Controls":[""],"Remove navigation indicators from view.":[""],"Autoplay":[""],"Automatically advance through slides.":[""],"Transition delay":[""],"Set the waiting time between automatic slide transitions in seconds.":[""],"Slides per view":[""],"Choose how many slides appear on screen simultaneously.":[""],"Featured Image":[""],"Aspect ratio":[""],"All slides will share the same aspect ratio, for consistency.":[""],"Fit":[""],"The image will fill the entire slide and will be cropped if necessary.":[""],"The image will be resized to fit inside the slide without being cropped.":[""],"Cover":[""],"Contain":[""],"Show caption":[""],"Show credit":[""],"Post Meta":[""],"Show title":[""],"Show date":[""],"Show category":[""],"Show author":[""],"Show avatar":[""],"Content Carousel":[""],"posts":[""],"articles":[""],"latest":[""],"query":[""],"An advanced block that displays content in a carousel format with customizable parameters and visual configurations.":[""],"Small":[""],"S":[""],"Medium":[""],"M":[""],"Large":[""],"L":[""],"Extra Large":[""],"XL":[""],"Extra-large":[""],"Select a layout to start with:":[""],"No authors or guest authors found for ID %s.":[""],"Error fetching authors for this post.":[""],"Error fetching byline authors.":[""],"Show authors without bio":[""],"Display author profiles even if their bio is empty.":[""],"Text size":[""],"Avatar":[""],"Display avatar":[""],"Hide default avatar":[""],"Size":[""],"Avatar size":[""],"Border radius":[""],"Avatar border radius":[""],"Fetching authors\u2026":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Select a type:":[""],"Contextual":[""],"Specific":[""],"This block was created with a block theme and is not supported in the current theme. It will render using the classic layout on the frontend.":[""],"Author bio is hidden because Custom Byline is active on this post.":[""],"Search for an author to display":[""],"Begin typing name, click autocomplete result to select.":[""],"author":[""],"authors":[""],"No authors found for this post.":[""],"Preview author":[""],"Previewing 1 of %d authors. All authors display on frontend.":[""],"Post-Checkout Button":[""],"After a successful purchase, a button will be presented to finish the process.":[""],"Close the modal":[""],"Go to a custom URL":[""],"Go to the previous page":[""],"Button Label":[""],"Custom URL":[""],"https:\/\/example.com":[""],"Author List":[""],"profile":[""],"Display a list of author profile cards.":[""],"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":[""],"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.":[""],"Author Profile Settings":[""],"Text Size":[""],"List":[""],"Author Name":[""],"Job Title":[""],"Role":[""],"Employer":[""],"Biography":[""],"Avatar left":[""],"Avatar on the left, content on the right.":[""],"Avatar right":[""],"Content on the left, avatar on the right.":[""],"Centered":[""],"Large centered avatar with center-aligned text.":[""],"Compact":[""],"No avatar, vertical stack.":[""],"Display an author profile card.":[""],"Width":[""],"Could not find a product with ID %s. Please select a different product.":[""],"Product":[""],"Change the selected product":[""],"Edit":[""],"Type to search for a product\u2026":[""],"Allow the reader to select the variation before checkout.":[""],"Variation":[""],"Select the product variation to be added to cart.":[""],"After purchase":[""],"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":[""],"per `Frequency`\u0004per %s":[""],"Frequency":[""],"Tiers":[""],"Heading\u2026":[""],"\u2026":[""],"Button text\u2026":[""],"Description\u2026":[""],"Thank you text\u2026":[""],"Low-tier":[""],"Mid-tier":[""],"High-tier":[""],"donate":[""],"memberships":[""],"subscriptions":[""],"Manually place a donation block on any post or page on your site.":[""],"Support reference":[""],"Error":[""],"Go to checkout & payment settings to troubleshoot.":[""],"The Donate block will not be rendered.":[""],"The Reader Revenue platform is set to \"other\".":[""],"Go to checkout & payment settings to update the platform.":[""],"Grid View":[""],"List View":[""],"Warning: suggested donations should be at least the minimum donation amount (%1$s%2$d).":[""],"Layout":[""],"Tiers layout is disabled if the block is set to render untiered.":[""],"Default Tab":[""],"Suggested Donations":[""],"Configure manually":[""],"Tiered":[""],"Minimum donation":[""],"The Donate Block allows you to collect donations from readers. The fields are automatically defined based on your donation settings.":[""],"Edit donation settings":[""],"Styling":[""],"Button Color":[""],"News Revenue Hub Settings":[""],"Campaign ID":[""],"Alternate":[""],"Minimal":[""],"Modern":[""],"Grid":[""],"Show \"Load more posts\" button":[""],"This site is private, therefore this feature is not active.":[""],"Infinite scroll":[""],"Text":[""],"None":[""],"Excerpt":[""],"Full Post":[""],"Max number of words in excerpt":[""],"Keep reading":[""],"Show featured image":[""],"Stack on mobile":[""],"Minimum height":[""],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Show subtitle":[""],"Color":[""],"Typography":[""],"Type Scale":[""],"Dimensions":[""],"Grid Spacing":[""],"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.":[""],"Content Loop":[""],"homepage":[""],"An advanced block that allows displaying content based on different parameters and visual configurations.":[""],"block style\u0004Borders":[""],"Upload a document file (PDF, Word, Excel sheet, or a PPT), choose one from the media library, %s.":[""],"embed from a URL, or upload a .zip archive containing HTML assets":[""],"or embed from a URL":[""],"Update":[""],"Upload":[""],"Media Library":[""],"Update from URL":[""],"Embed from URL":[""],"Iframe":[""],"iframe":[""],"project iframe":[""],"Embed an iframe.":[""],"Hide iframe preview":[""],"Show iframe preview":[""],"Iframe Settings":[""],"Fullscreen":[""],"If enabled, the iframe will be full screen and hide all the post content.":[""],"Height":[""],"This block will take over the page content.":[""],"Newspack embedded iframe":[""],"An error occured when uploading the iframe archive.":[""],"An error occured when setting the iframe from the archive media.":[""],"No videos found":[""],"Consider using <a href=\"%1$s\">YouTube Playlists<\/a> instead, which can be <a href=\"%2$s\">embedded<\/a> into post or page content.":[""],"YouTube Video Playlist (DEPRECATED)":[""],"video":[""],"playlist":[""],"youtube":[""],"Embed a playlist of latest YouTube videos.":[""]}}}
|
|
1
|
+
{"translation-revision-date":"2024-08-30 08:46-0700","generator":"WP-CLI\/2.12.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nb_NO","plural-forms":"nplurals=2; plural=(n != 1);"},"Cancel":[""],"Draft":[""],"Scheduled":[""],"per %s":[""],"Donate":[""],"Author Profile":[""],"More by %s":[""],"block style\u0004Default":[""],"block style\u0004Centered":[""],"once":["en gang"],"One-time":["En gang"],"Monthly":["M\u00e5nedlig"],"Annually":["\u00c5rlig"],"Donation amount":["Mengde donasjon"],"Other":["Annet"],"Load more posts":["Last flere innlegg"],"Slide %s":[""],"Slide %1$s of %2$s":[""],"Image: %s,":[""],"Playing":[""],"Paused":[""],"Listings":[""],"Post Types":[""],"Additional Post Statuses":[""],"Selection here has effect only for editors, regular users will only see published posts.":[""],"(no title)":[""],"(no name)":[""],"Deleted category":[""],"Deleted tag":[""],"Mode":[""],"The block will display only the specifically selected content.":[""],"The block will display content based on the filtering settings below.":[""],"Dynamic":[""],"Static":[""],"Content":[""],"Begin typing any word in a title. Click on an autocomplete result to select it.":[""],"Category":[""],"is one of":[""],"is all of":[""],"Include subcategories":[""],"Tags":[""],"Authors":[""],"Excluded categories":[""],"Excluded tags":[""],"Excluded %s":[""],"Allow duplicate content":[""],"Exclude this block from the page's deduplication logic.":[""],"The post content.":[""],"The post excerpt.":[""],"Full post content.":[""],"Post Subtitle":[""],"Post Title":[""],"by":[""],"Featured image caption":[""],"Biographical info":[""],"Social links":[""],"Email address":[""],"Link to author archive":[""],"Display the following fields:":[""],"post author\u0004and":[""],"Square":[""],"1:1":[""],"4:3":[""],"16:9":[""],"3:4":[""],"9:16":[""],"Settings":[""],"Display":[""],"Hide Controls":[""],"Remove navigation indicators from view.":[""],"Autoplay":[""],"Automatically advance through slides.":[""],"Transition delay":[""],"Set the waiting time between automatic slide transitions in seconds.":[""],"Slides per view":[""],"Choose how many slides appear on screen simultaneously.":[""],"Featured Image":[""],"Aspect ratio":[""],"All slides will share the same aspect ratio, for consistency.":[""],"Fit":[""],"The image will fill the entire slide and will be cropped if necessary.":[""],"The image will be resized to fit inside the slide without being cropped.":[""],"Cover":[""],"Contain":[""],"Show caption":[""],"Show credit":[""],"Post Meta":[""],"Show title":[""],"Show date":[""],"Show category":[""],"Show author":[""],"Show avatar":[""],"Content Carousel":[""],"posts":[""],"articles":[""],"latest":[""],"query":[""],"An advanced block that displays content in a carousel format with customizable parameters and visual configurations.":[""],"Small":[""],"S":[""],"Medium":[""],"M":[""],"Large":[""],"L":[""],"Extra Large":[""],"XL":[""],"Extra-large":[""],"Select a layout to start with:":[""],"No authors or guest authors found for ID %s.":[""],"Error fetching authors for this post.":[""],"Error fetching byline authors.":[""],"Show authors without bio":[""],"Display author profiles even if their bio is empty.":[""],"Text size":[""],"Avatar":[""],"Display avatar":[""],"Hide default avatar":[""],"Size":[""],"Avatar size":[""],"Border radius":[""],"Avatar border radius":[""],"Fetching authors\u2026":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Select a type:":[""],"Contextual":[""],"Specific":[""],"This block was created with a block theme and is not supported in the current theme. It will render using the classic layout on the frontend.":[""],"Author bio is hidden because Custom Byline is active on this post.":[""],"Search for an author to display":[""],"Begin typing name, click autocomplete result to select.":[""],"author":[""],"authors":[""],"No authors found for this post.":[""],"Preview author":[""],"Previewing 1 of %d authors. All authors display on frontend.":[""],"Post-Checkout Button":[""],"After a successful purchase, a button will be presented to finish the process.":[""],"Close the modal":[""],"Go to a custom URL":[""],"Go to the previous page":[""],"Button Label":[""],"Custom URL":[""],"https:\/\/example.com":[""],"Author List":[""],"profile":[""],"Display a list of author profile cards.":[""],"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":[""],"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.":[""],"Author Profile Settings":[""],"Text Size":[""],"List":[""],"Author Name":[""],"Job Title":[""],"Role":[""],"Employer":[""],"Biography":[""],"Avatar left":[""],"Avatar on the left, content on the right.":[""],"Avatar right":[""],"Content on the left, avatar on the right.":[""],"Centered":[""],"Large centered avatar with center-aligned text.":[""],"Compact":[""],"No avatar, vertical stack.":[""],"Display an author profile card.":[""],"Width":[""],"Could not find a product with ID %s. Please select a different product.":[""],"Product":[""],"Change the selected product":[""],"Edit":[""],"Type to search for a product\u2026":[""],"Allow the reader to select the variation before checkout.":[""],"Variation":[""],"Select the product variation to be added to cart.":[""],"After purchase":[""],"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":[""],"per `Frequency`\u0004per %s":[""],"Frequency":[""],"Tiers":[""],"Heading\u2026":[""],"\u2026":[""],"Button text\u2026":[""],"Description\u2026":[""],"Thank you text\u2026":[""],"Low-tier":[""],"Mid-tier":[""],"High-tier":[""],"donate":[""],"memberships":[""],"subscriptions":[""],"Manually place a donation block on any post or page on your site.":[""],"Support reference":[""],"Error":[""],"Go to checkout & payment settings to troubleshoot.":[""],"The Donate block will not be rendered.":[""],"The Reader Revenue platform is set to \"other\".":[""],"Go to checkout & payment settings to update the platform.":[""],"Grid View":[""],"List View":[""],"Warning: suggested donations should be at least the minimum donation amount (%1$s%2$d).":[""],"Layout":[""],"Tiers layout is disabled if the block is set to render untiered.":[""],"Default Tab":[""],"Suggested Donations":[""],"Configure manually":[""],"Tiered":[""],"Minimum donation":[""],"The Donate Block allows you to collect donations from readers. The fields are automatically defined based on your donation settings.":[""],"Edit donation settings":[""],"Styling":[""],"Button Color":[""],"News Revenue Hub Settings":[""],"Campaign ID":[""],"Alternate":[""],"Minimal":[""],"Modern":[""],"Grid":[""],"Show \"Load more posts\" button":[""],"This site is private, therefore this feature is not active.":[""],"Infinite scroll":[""],"Text":[""],"None":[""],"Excerpt":[""],"Full Post":[""],"Max number of words in excerpt":[""],"Keep reading":[""],"Show featured image":[""],"Stack on mobile":[""],"Minimum height":[""],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Show tag labels":[""],"Show subtitle":[""],"Color":[""],"Typography":[""],"Type Scale":[""],"Dimensions":[""],"Grid Spacing":[""],"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.":[""],"Content Loop":[""],"homepage":[""],"An advanced block that allows displaying content based on different parameters and visual configurations.":[""],"block style\u0004Borders":[""],"Upload a document file (PDF, Word, Excel sheet, or a PPT), choose one from the media library, %s.":[""],"embed from a URL, or upload a .zip archive containing HTML assets":[""],"or embed from a URL":[""],"Update":[""],"Upload":[""],"Media Library":[""],"Update from URL":[""],"Embed from URL":[""],"Iframe":[""],"iframe":[""],"project iframe":[""],"Embed an iframe.":[""],"Hide iframe preview":[""],"Show iframe preview":[""],"Iframe Settings":[""],"Fullscreen":[""],"If enabled, the iframe will be full screen and hide all the post content.":[""],"Height":[""],"This block will take over the page content.":[""],"Newspack embedded iframe":[""],"An error occured when uploading the iframe archive.":[""],"An error occured when setting the iframe from the archive media.":[""],"No videos found":[""],"Consider using <a href=\"%1$s\">YouTube Playlists<\/a> instead, which can be <a href=\"%2$s\">embedded<\/a> into post or page content.":[""],"YouTube Video Playlist (DEPRECATED)":[""],"video":[""],"playlist":[""],"youtube":[""],"Embed a playlist of latest YouTube videos.":[""]}}}
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-
|
|
5
|
+
"POT-Creation-Date: 2026-06-25T00:38:06+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -281,31 +281,31 @@ msgstr " og "
|
|
|
281
281
|
msgid ", "
|
|
282
282
|
msgstr ""
|
|
283
283
|
|
|
284
|
-
#: includes/class-newspack-blocks.php:
|
|
284
|
+
#: includes/class-newspack-blocks.php:1343
|
|
285
285
|
msgid "Jetpack donations is disabled in favour of Newspack donations."
|
|
286
286
|
msgstr ""
|
|
287
287
|
|
|
288
|
-
#: includes/class-newspack-blocks.php:
|
|
288
|
+
#: includes/class-newspack-blocks.php:1376 dist/editor.js:5
|
|
289
289
|
#: src/shared/js/utils.js:48
|
|
290
290
|
msgid "Draft"
|
|
291
291
|
msgstr ""
|
|
292
292
|
|
|
293
|
-
#: includes/class-newspack-blocks.php:
|
|
293
|
+
#: includes/class-newspack-blocks.php:1377 dist/editor.js:5
|
|
294
294
|
#: src/shared/js/utils.js:48
|
|
295
295
|
msgid "Scheduled"
|
|
296
296
|
msgstr ""
|
|
297
297
|
|
|
298
298
|
#. Translators: %s is the %s is the frequency.
|
|
299
|
-
#: includes/class-newspack-blocks.php:
|
|
299
|
+
#: includes/class-newspack-blocks.php:1535 dist/editor.js:39
|
|
300
300
|
#, php-format
|
|
301
301
|
msgid "per %s"
|
|
302
302
|
msgstr ""
|
|
303
303
|
|
|
304
|
-
#: includes/class-newspack-blocks.php:
|
|
304
|
+
#: includes/class-newspack-blocks.php:1566
|
|
305
305
|
msgid " once"
|
|
306
306
|
msgstr ""
|
|
307
307
|
|
|
308
|
-
#: includes/class-newspack-blocks.php:
|
|
308
|
+
#: includes/class-newspack-blocks.php:1569
|
|
309
309
|
msgid " per "
|
|
310
310
|
msgstr ""
|
|
311
311
|
|
|
@@ -1798,6 +1798,10 @@ msgid ""
|
|
|
1798
1798
|
"current height."
|
|
1799
1799
|
msgstr ""
|
|
1800
1800
|
|
|
1801
|
+
#: dist/editor.js:51
|
|
1802
|
+
msgid "Show tag labels"
|
|
1803
|
+
msgstr ""
|
|
1804
|
+
|
|
1801
1805
|
#: dist/editor.js:51
|
|
1802
1806
|
msgid "Show subtitle"
|
|
1803
1807
|
msgstr ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"translation-revision-date":"2024-08-30 08:46-0700","generator":"WP-CLI\/2.12.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=(n > 1);"},"Cancel":[""],"Draft":[""],"Scheduled":[""],"per %s":[""],"Donate":["Doa\u00e7\u00e3o"],"Author Profile":[""],"More by %s":[""],"block style\u0004Default":["Padr\u00e3o"],"block style\u0004Centered":[""],"once":[""],"One-time":["Uma vez"],"Monthly":["Mensal"],"Annually":["Anualmente"],"Donation amount":["Valor da Doa\u00e7\u00e3o"],"Other":["Outro"],"Load more posts":["Carregar mais posts"],"Slide %s":[""],"Slide %1$s of %2$s":[""],"Image: %s,":[""],"Playing":[""],"Paused":[""],"Listings":[""],"Post Types":[""],"Additional Post Statuses":[""],"Selection here has effect only for editors, regular users will only see published posts.":[""],"(no title)":["(sem t\u00edtulo)"],"(no name)":["(sem nome)"],"Deleted category":[""],"Deleted tag":[""],"Mode":[""],"The block will display only the specifically selected content.":[""],"The block will display content based on the filtering settings below.":[""],"Dynamic":[""],"Static":[""],"Content":[""],"Begin typing any word in a title. Click on an autocomplete result to select it.":[""],"Category":[""],"is one of":[""],"is all of":[""],"Include subcategories":[""],"Tags":["Tags"],"Authors":["Autores"],"Excluded categories":[""],"Excluded tags":[""],"Excluded %s":[""],"Allow duplicate content":[""],"Exclude this block from the page's deduplication logic.":[""],"The post content.":[""],"The post excerpt.":[""],"Full post content.":[""],"Post Subtitle":[""],"Post Title":[""],"by":[""],"Featured image caption":[""],"Biographical info":[""],"Social links":[""],"Email address":[""],"Link to author archive":[""],"Display the following fields:":[""],"post author\u0004and":[""],"Square":[""],"1:1":[""],"4:3":[""],"16:9":[""],"3:4":[""],"9:16":[""],"Settings":[""],"Display":[""],"Hide Controls":[""],"Remove navigation indicators from view.":[""],"Autoplay":[""],"Automatically advance through slides.":[""],"Transition delay":[""],"Set the waiting time between automatic slide transitions in seconds.":[""],"Slides per view":[""],"Choose how many slides appear on screen simultaneously.":[""],"Featured Image":[""],"Aspect ratio":[""],"All slides will share the same aspect ratio, for consistency.":[""],"Fit":[""],"The image will fill the entire slide and will be cropped if necessary.":[""],"The image will be resized to fit inside the slide without being cropped.":[""],"Cover":[""],"Contain":[""],"Show caption":[""],"Show credit":[""],"Post Meta":[""],"Show title":[""],"Show date":[""],"Show category":[""],"Show author":[""],"Show avatar":[""],"Content Carousel":[""],"posts":[""],"articles":["artigos"],"latest":["mais recente"],"query":[""],"An advanced block that displays content in a carousel format with customizable parameters and visual configurations.":[""],"Small":["Pequeno"],"S":["S"],"Medium":["M\u00e9dio"],"M":["M"],"Large":["Amplo"],"L":["L"],"Extra Large":["Extra grande"],"XL":["XL"],"Extra-large":["Extra grande"],"Select a layout to start with:":[""],"No authors or guest authors found for ID %s.":[""],"Error fetching authors for this post.":[""],"Error fetching byline authors.":[""],"Show authors without bio":[""],"Display author profiles even if their bio is empty.":[""],"Text size":[""],"Avatar":[""],"Display avatar":[""],"Hide default avatar":[""],"Size":[""],"Avatar size":[""],"Border radius":[""],"Avatar border radius":[""],"Fetching authors\u2026":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Select a type:":[""],"Contextual":[""],"Specific":[""],"This block was created with a block theme and is not supported in the current theme. It will render using the classic layout on the frontend.":[""],"Author bio is hidden because Custom Byline is active on this post.":[""],"Search for an author to display":[""],"Begin typing name, click autocomplete result to select.":[""],"author":[""],"authors":[""],"No authors found for this post.":[""],"Preview author":[""],"Previewing 1 of %d authors. All authors display on frontend.":[""],"Post-Checkout Button":[""],"After a successful purchase, a button will be presented to finish the process.":[""],"Close the modal":[""],"Go to a custom URL":[""],"Go to the previous page":[""],"Button Label":[""],"Custom URL":[""],"https:\/\/example.com":[""],"Author List":[""],"profile":[""],"Display a list of author profile cards.":[""],"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":["Colunas"],"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.":[""],"Author Profile Settings":[""],"Text Size":[""],"List":[""],"Author Name":[""],"Job Title":[""],"Role":[""],"Employer":[""],"Biography":[""],"Avatar left":[""],"Avatar on the left, content on the right.":[""],"Avatar right":[""],"Content on the left, avatar on the right.":[""],"Centered":[""],"Large centered avatar with center-aligned text.":[""],"Compact":[""],"No avatar, vertical stack.":[""],"Display an author profile card.":[""],"Width":[""],"Could not find a product with ID %s. Please select a different product.":[""],"Product":[""],"Change the selected product":[""],"Edit":[""],"Type to search for a product\u2026":[""],"Allow the reader to select the variation before checkout.":[""],"Variation":[""],"Select the product variation to be added to cart.":[""],"After purchase":[""],"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":[""],"per `Frequency`\u0004per %s":[""],"Frequency":[""],"Tiers":[""],"Heading\u2026":[""],"\u2026":[""],"Button text\u2026":[""],"Description\u2026":[""],"Thank you text\u2026":[""],"Low-tier":[""],"Mid-tier":[""],"High-tier":[""],"donate":[""],"memberships":["Associa\u00e7\u00f5es"],"subscriptions":["assinaturas"],"Manually place a donation block on any post or page on your site.":[""],"Support reference":[""],"Error":["Erro"],"Go to checkout & payment settings to troubleshoot.":[""],"The Donate block will not be rendered.":[""],"The Reader Revenue platform is set to \"other\".":[""],"Go to checkout & payment settings to update the platform.":[""],"Grid View":["Ver em Grade"],"List View":["Exibi\u00e7\u00e3o de lista"],"Warning: suggested donations should be at least the minimum donation amount (%1$s%2$d).":[""],"Layout":[""],"Tiers layout is disabled if the block is set to render untiered.":[""],"Default Tab":[""],"Suggested Donations":[""],"Configure manually":[""],"Tiered":[""],"Minimum donation":[""],"The Donate Block allows you to collect donations from readers. The fields are automatically defined based on your donation settings.":[""],"Edit donation settings":[""],"Styling":[""],"Button Color":[""],"News Revenue Hub Settings":[""],"Campaign ID":["ID de campanha"],"Alternate":[""],"Minimal":[""],"Modern":[""],"Grid":[""],"Show \"Load more posts\" button":[""],"This site is private, therefore this feature is not active.":[""],"Infinite scroll":[""],"Text":[""],"None":[""],"Excerpt":[""],"Full Post":[""],"Max number of words in excerpt":[""],"Keep reading":[""],"Show featured image":[""],"Stack on mobile":["Pilha no m\u00f3bil"],"Minimum height":["Altura m\u00ednima"],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Show subtitle":[""],"Color":[""],"Typography":[""],"Type Scale":[""],"Dimensions":[""],"Grid Spacing":[""],"List view":[""],"Grid view":[""],"Show media on top":[""],"Show media on left":["Mostrar m\u00eddia na esquerda"],"Show media on right":[""],"Show media behind":[""],"Landscape image shape":[""],"portrait image shape":[""],"Square image shape":[""],"Uncropped":["N\u00e3o Cortado"],"Write header\u2026":[""],"Sorry, no posts were found.":["Desculpe, nada foi encontrado."],"Content Loop":[""],"homepage":[""],"An advanced block that allows displaying content based on different parameters and visual configurations.":[""],"block style\u0004Borders":["Bordas"],"Upload a document file (PDF, Word, Excel sheet, or a PPT), choose one from the media library, %s.":[""],"embed from a URL, or upload a .zip archive containing HTML assets":[""],"or embed from a URL":[""],"Update":[""],"Upload":[""],"Media Library":[""],"Update from URL":[""],"Embed from URL":[""],"Iframe":[""],"iframe":[""],"project iframe":[""],"Embed an iframe.":[""],"Hide iframe preview":[""],"Show iframe preview":[""],"Iframe Settings":[""],"Fullscreen":[""],"If enabled, the iframe will be full screen and hide all the post content.":[""],"Height":[""],"This block will take over the page content.":[""],"Newspack embedded iframe":[""],"An error occured when uploading the iframe archive.":[""],"An error occured when setting the iframe from the archive media.":[""],"No videos found":[""],"Consider using <a href=\"%1$s\">YouTube Playlists<\/a> instead, which can be <a href=\"%2$s\">embedded<\/a> into post or page content.":[""],"YouTube Video Playlist (DEPRECATED)":[""],"video":[""],"playlist":[""],"youtube":[""],"Embed a playlist of latest YouTube videos.":[""]}}}
|
|
1
|
+
{"translation-revision-date":"2024-08-30 08:46-0700","generator":"WP-CLI\/2.12.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=(n > 1);"},"Cancel":[""],"Draft":[""],"Scheduled":[""],"per %s":[""],"Donate":["Doa\u00e7\u00e3o"],"Author Profile":[""],"More by %s":[""],"block style\u0004Default":["Padr\u00e3o"],"block style\u0004Centered":[""],"once":[""],"One-time":["Uma vez"],"Monthly":["Mensal"],"Annually":["Anualmente"],"Donation amount":["Valor da Doa\u00e7\u00e3o"],"Other":["Outro"],"Load more posts":["Carregar mais posts"],"Slide %s":[""],"Slide %1$s of %2$s":[""],"Image: %s,":[""],"Playing":[""],"Paused":[""],"Listings":[""],"Post Types":[""],"Additional Post Statuses":[""],"Selection here has effect only for editors, regular users will only see published posts.":[""],"(no title)":["(sem t\u00edtulo)"],"(no name)":["(sem nome)"],"Deleted category":[""],"Deleted tag":[""],"Mode":[""],"The block will display only the specifically selected content.":[""],"The block will display content based on the filtering settings below.":[""],"Dynamic":[""],"Static":[""],"Content":[""],"Begin typing any word in a title. Click on an autocomplete result to select it.":[""],"Category":[""],"is one of":[""],"is all of":[""],"Include subcategories":[""],"Tags":["Tags"],"Authors":["Autores"],"Excluded categories":[""],"Excluded tags":[""],"Excluded %s":[""],"Allow duplicate content":[""],"Exclude this block from the page's deduplication logic.":[""],"The post content.":[""],"The post excerpt.":[""],"Full post content.":[""],"Post Subtitle":[""],"Post Title":[""],"by":[""],"Featured image caption":[""],"Biographical info":[""],"Social links":[""],"Email address":[""],"Link to author archive":[""],"Display the following fields:":[""],"post author\u0004and":[""],"Square":[""],"1:1":[""],"4:3":[""],"16:9":[""],"3:4":[""],"9:16":[""],"Settings":[""],"Display":[""],"Hide Controls":[""],"Remove navigation indicators from view.":[""],"Autoplay":[""],"Automatically advance through slides.":[""],"Transition delay":[""],"Set the waiting time between automatic slide transitions in seconds.":[""],"Slides per view":[""],"Choose how many slides appear on screen simultaneously.":[""],"Featured Image":[""],"Aspect ratio":[""],"All slides will share the same aspect ratio, for consistency.":[""],"Fit":[""],"The image will fill the entire slide and will be cropped if necessary.":[""],"The image will be resized to fit inside the slide without being cropped.":[""],"Cover":[""],"Contain":[""],"Show caption":[""],"Show credit":[""],"Post Meta":[""],"Show title":[""],"Show date":[""],"Show category":[""],"Show author":[""],"Show avatar":[""],"Content Carousel":[""],"posts":[""],"articles":["artigos"],"latest":["mais recente"],"query":[""],"An advanced block that displays content in a carousel format with customizable parameters and visual configurations.":[""],"Small":["Pequeno"],"S":["S"],"Medium":["M\u00e9dio"],"M":["M"],"Large":["Amplo"],"L":["L"],"Extra Large":["Extra grande"],"XL":["XL"],"Extra-large":["Extra grande"],"Select a layout to start with:":[""],"No authors or guest authors found for ID %s.":[""],"Error fetching authors for this post.":[""],"Error fetching byline authors.":[""],"Show authors without bio":[""],"Display author profiles even if their bio is empty.":[""],"Text size":[""],"Avatar":[""],"Display avatar":[""],"Hide default avatar":[""],"Size":[""],"Avatar size":[""],"Border radius":[""],"Avatar border radius":[""],"Fetching authors\u2026":[""],"Show avatar on left":[""],"Show avatar on right":[""],"Edit selection":[""],"Select a type:":[""],"Contextual":[""],"Specific":[""],"This block was created with a block theme and is not supported in the current theme. It will render using the classic layout on the frontend.":[""],"Author bio is hidden because Custom Byline is active on this post.":[""],"Search for an author to display":[""],"Begin typing name, click autocomplete result to select.":[""],"author":[""],"authors":[""],"No authors found for this post.":[""],"Preview author":[""],"Previewing 1 of %d authors. All authors display on frontend.":[""],"Post-Checkout Button":[""],"After a successful purchase, a button will be presented to finish the process.":[""],"Close the modal":[""],"Go to a custom URL":[""],"Go to the previous page":[""],"Button Label":[""],"Custom URL":[""],"https:\/\/example.com":[""],"Author List":[""],"profile":[""],"Display a list of author profile cards.":[""],"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":["Colunas"],"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.":[""],"Author Profile Settings":[""],"Text Size":[""],"List":[""],"Author Name":[""],"Job Title":[""],"Role":[""],"Employer":[""],"Biography":[""],"Avatar left":[""],"Avatar on the left, content on the right.":[""],"Avatar right":[""],"Content on the left, avatar on the right.":[""],"Centered":[""],"Large centered avatar with center-aligned text.":[""],"Compact":[""],"No avatar, vertical stack.":[""],"Display an author profile card.":[""],"Width":[""],"Could not find a product with ID %s. Please select a different product.":[""],"Product":[""],"Change the selected product":[""],"Edit":[""],"Type to search for a product\u2026":[""],"Allow the reader to select the variation before checkout.":[""],"Variation":[""],"Select the product variation to be added to cart.":[""],"After purchase":[""],"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":[""],"per `Frequency`\u0004per %s":[""],"Frequency":[""],"Tiers":[""],"Heading\u2026":[""],"\u2026":[""],"Button text\u2026":[""],"Description\u2026":[""],"Thank you text\u2026":[""],"Low-tier":[""],"Mid-tier":[""],"High-tier":[""],"donate":[""],"memberships":["Associa\u00e7\u00f5es"],"subscriptions":["assinaturas"],"Manually place a donation block on any post or page on your site.":[""],"Support reference":[""],"Error":["Erro"],"Go to checkout & payment settings to troubleshoot.":[""],"The Donate block will not be rendered.":[""],"The Reader Revenue platform is set to \"other\".":[""],"Go to checkout & payment settings to update the platform.":[""],"Grid View":["Ver em Grade"],"List View":["Exibi\u00e7\u00e3o de lista"],"Warning: suggested donations should be at least the minimum donation amount (%1$s%2$d).":[""],"Layout":[""],"Tiers layout is disabled if the block is set to render untiered.":[""],"Default Tab":[""],"Suggested Donations":[""],"Configure manually":[""],"Tiered":[""],"Minimum donation":[""],"The Donate Block allows you to collect donations from readers. The fields are automatically defined based on your donation settings.":[""],"Edit donation settings":[""],"Styling":[""],"Button Color":[""],"News Revenue Hub Settings":[""],"Campaign ID":["ID de campanha"],"Alternate":[""],"Minimal":[""],"Modern":[""],"Grid":[""],"Show \"Load more posts\" button":[""],"This site is private, therefore this feature is not active.":[""],"Infinite scroll":[""],"Text":[""],"None":[""],"Excerpt":[""],"Full Post":[""],"Max number of words in excerpt":[""],"Keep reading":[""],"Show featured image":[""],"Stack on mobile":["Pilha no m\u00f3bil"],"Minimum height":["Altura m\u00ednima"],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Show tag labels":[""],"Show subtitle":[""],"Color":[""],"Typography":[""],"Type Scale":[""],"Dimensions":[""],"Grid Spacing":[""],"List view":[""],"Grid view":[""],"Show media on top":[""],"Show media on left":["Mostrar m\u00eddia na esquerda"],"Show media on right":[""],"Show media behind":[""],"Landscape image shape":[""],"portrait image shape":[""],"Square image shape":[""],"Uncropped":["N\u00e3o Cortado"],"Write header\u2026":[""],"Sorry, no posts were found.":["Desculpe, nada foi encontrado."],"Content Loop":[""],"homepage":[""],"An advanced block that allows displaying content based on different parameters and visual configurations.":[""],"block style\u0004Borders":["Bordas"],"Upload a document file (PDF, Word, Excel sheet, or a PPT), choose one from the media library, %s.":[""],"embed from a URL, or upload a .zip archive containing HTML assets":[""],"or embed from a URL":[""],"Update":[""],"Upload":[""],"Media Library":[""],"Update from URL":[""],"Embed from URL":[""],"Iframe":[""],"iframe":[""],"project iframe":[""],"Embed an iframe.":[""],"Hide iframe preview":[""],"Show iframe preview":[""],"Iframe Settings":[""],"Fullscreen":[""],"If enabled, the iframe will be full screen and hide all the post content.":[""],"Height":[""],"This block will take over the page content.":[""],"Newspack embedded iframe":[""],"An error occured when uploading the iframe archive.":[""],"An error occured when setting the iframe from the archive media.":[""],"No videos found":[""],"Consider using <a href=\"%1$s\">YouTube Playlists<\/a> instead, which can be <a href=\"%2$s\">embedded<\/a> into post or page content.":[""],"YouTube Video Playlist (DEPRECATED)":[""],"video":[""],"playlist":[""],"youtube":[""],"Embed a playlist of latest YouTube videos.":[""]}}}
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-
|
|
5
|
+
"POT-Creation-Date: 2026-06-25T00:38:06+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -281,31 +281,31 @@ msgstr " e "
|
|
|
281
281
|
msgid ", "
|
|
282
282
|
msgstr ""
|
|
283
283
|
|
|
284
|
-
#: includes/class-newspack-blocks.php:
|
|
284
|
+
#: includes/class-newspack-blocks.php:1343
|
|
285
285
|
msgid "Jetpack donations is disabled in favour of Newspack donations."
|
|
286
286
|
msgstr ""
|
|
287
287
|
|
|
288
|
-
#: includes/class-newspack-blocks.php:
|
|
288
|
+
#: includes/class-newspack-blocks.php:1376 dist/editor.js:5
|
|
289
289
|
#: src/shared/js/utils.js:48
|
|
290
290
|
msgid "Draft"
|
|
291
291
|
msgstr ""
|
|
292
292
|
|
|
293
|
-
#: includes/class-newspack-blocks.php:
|
|
293
|
+
#: includes/class-newspack-blocks.php:1377 dist/editor.js:5
|
|
294
294
|
#: src/shared/js/utils.js:48
|
|
295
295
|
msgid "Scheduled"
|
|
296
296
|
msgstr ""
|
|
297
297
|
|
|
298
298
|
#. Translators: %s is the %s is the frequency.
|
|
299
|
-
#: includes/class-newspack-blocks.php:
|
|
299
|
+
#: includes/class-newspack-blocks.php:1535 dist/editor.js:39
|
|
300
300
|
#, php-format
|
|
301
301
|
msgid "per %s"
|
|
302
302
|
msgstr ""
|
|
303
303
|
|
|
304
|
-
#: includes/class-newspack-blocks.php:
|
|
304
|
+
#: includes/class-newspack-blocks.php:1566
|
|
305
305
|
msgid " once"
|
|
306
306
|
msgstr ""
|
|
307
307
|
|
|
308
|
-
#: includes/class-newspack-blocks.php:
|
|
308
|
+
#: includes/class-newspack-blocks.php:1569
|
|
309
309
|
msgid " per "
|
|
310
310
|
msgstr ""
|
|
311
311
|
|
|
@@ -1798,6 +1798,10 @@ msgid ""
|
|
|
1798
1798
|
"current height."
|
|
1799
1799
|
msgstr ""
|
|
1800
1800
|
|
|
1801
|
+
#: dist/editor.js:51
|
|
1802
|
+
msgid "Show tag labels"
|
|
1803
|
+
msgstr ""
|
|
1804
|
+
|
|
1801
1805
|
#: dist/editor.js:51
|
|
1802
1806
|
msgid "Show subtitle"
|
|
1803
1807
|
msgstr ""
|
|
@@ -9,7 +9,7 @@ msgstr ""
|
|
|
9
9
|
"MIME-Version: 1.0\n"
|
|
10
10
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
11
11
|
"Content-Transfer-Encoding: 8bit\n"
|
|
12
|
-
"POT-Creation-Date: 2026-
|
|
12
|
+
"POT-Creation-Date: 2026-06-25T00:38:06+00:00\n"
|
|
13
13
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
14
|
"X-Generator: WP-CLI 2.12.0\n"
|
|
15
15
|
"X-Domain: newspack-blocks\n"
|
|
@@ -271,34 +271,34 @@ msgstr ""
|
|
|
271
271
|
msgid ", "
|
|
272
272
|
msgstr ""
|
|
273
273
|
|
|
274
|
-
#: includes/class-newspack-blocks.php:
|
|
274
|
+
#: includes/class-newspack-blocks.php:1343
|
|
275
275
|
msgid "Jetpack donations is disabled in favour of Newspack donations."
|
|
276
276
|
msgstr ""
|
|
277
277
|
|
|
278
|
-
#: includes/class-newspack-blocks.php:
|
|
278
|
+
#: includes/class-newspack-blocks.php:1376
|
|
279
279
|
#: dist/editor.js:5
|
|
280
280
|
#: src/shared/js/utils.js:48
|
|
281
281
|
msgid "Draft"
|
|
282
282
|
msgstr ""
|
|
283
283
|
|
|
284
|
-
#: includes/class-newspack-blocks.php:
|
|
284
|
+
#: includes/class-newspack-blocks.php:1377
|
|
285
285
|
#: dist/editor.js:5
|
|
286
286
|
#: src/shared/js/utils.js:48
|
|
287
287
|
msgid "Scheduled"
|
|
288
288
|
msgstr ""
|
|
289
289
|
|
|
290
290
|
#. Translators: %s is the %s is the frequency.
|
|
291
|
-
#: includes/class-newspack-blocks.php:
|
|
291
|
+
#: includes/class-newspack-blocks.php:1535
|
|
292
292
|
#: dist/editor.js:39
|
|
293
293
|
#, php-format,js-format
|
|
294
294
|
msgid "per %s"
|
|
295
295
|
msgstr ""
|
|
296
296
|
|
|
297
|
-
#: includes/class-newspack-blocks.php:
|
|
297
|
+
#: includes/class-newspack-blocks.php:1566
|
|
298
298
|
msgid " once"
|
|
299
299
|
msgstr ""
|
|
300
300
|
|
|
301
|
-
#: includes/class-newspack-blocks.php:
|
|
301
|
+
#: includes/class-newspack-blocks.php:1569
|
|
302
302
|
msgid " per "
|
|
303
303
|
msgstr ""
|
|
304
304
|
|
|
@@ -2046,6 +2046,10 @@ msgstr ""
|
|
|
2046
2046
|
msgid "Sets a minimum height for the block, using a percentage of the screen's current height."
|
|
2047
2047
|
msgstr ""
|
|
2048
2048
|
|
|
2049
|
+
#: dist/editor.js:51
|
|
2050
|
+
msgid "Show tag labels"
|
|
2051
|
+
msgstr ""
|
|
2052
|
+
|
|
2049
2053
|
#: dist/editor.js:51
|
|
2050
2054
|
msgid "Show subtitle"
|
|
2051
2055
|
msgstr ""
|
package/newspack-blocks.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Author URI: https://newspack.com/
|
|
8
8
|
* Text Domain: newspack-blocks
|
|
9
9
|
* Domain Path: /languages
|
|
10
|
-
* Version: 4.
|
|
10
|
+
* Version: 4.28.0-alpha.2
|
|
11
11
|
*
|
|
12
12
|
* @package Newspack_Blocks
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
|
|
16
16
|
define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
|
|
17
17
|
define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
|
|
18
|
-
define( 'NEWSPACK_BLOCKS__VERSION', '4.
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '4.28.0-alpha.2' );
|
|
19
19
|
|
|
20
20
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
|
|
21
21
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/newspack-blocks",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.28.0-alpha.2",
|
|
4
4
|
"author": "Automattic",
|
|
5
5
|
"description": "=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/lodash": "^4.17.23",
|
|
58
|
-
"newspack-components": "4.
|
|
58
|
+
"newspack-components": "4.5.0-alpha.1",
|
|
59
59
|
"newspack-scripts": "5.9.8"
|
|
60
60
|
},
|
|
61
61
|
"overrides": {
|
|
@@ -66,6 +66,7 @@ class Edit extends Component< HomepageArticlesProps > {
|
|
|
66
66
|
showAvatar,
|
|
67
67
|
showDate,
|
|
68
68
|
showCategory,
|
|
69
|
+
showTagLabels,
|
|
69
70
|
sectionHeader,
|
|
70
71
|
} = attributes;
|
|
71
72
|
|
|
@@ -112,6 +113,21 @@ class Edit extends Component< HomepageArticlesProps > {
|
|
|
112
113
|
<RawHTML>{ decodeEntities( post.newspack_category_info ) }</RawHTML>
|
|
113
114
|
) }
|
|
114
115
|
</div>
|
|
116
|
+
) }{ ' ' }
|
|
117
|
+
{ showTagLabels && post.newspack_tag_labels && (
|
|
118
|
+
<div className="cat-links tag-labels">
|
|
119
|
+
{ post.newspack_tag_labels.map( ( newspack_tag_label, index ) => {
|
|
120
|
+
return newspack_tag_label.link ? (
|
|
121
|
+
<a key={ index } href="#" className="tag-label flag">
|
|
122
|
+
{ newspack_tag_label.flag }
|
|
123
|
+
</a>
|
|
124
|
+
) : (
|
|
125
|
+
<span key={ index } className="tag-label flag">
|
|
126
|
+
{ newspack_tag_label.flag }
|
|
127
|
+
</span>
|
|
128
|
+
);
|
|
129
|
+
} ) }
|
|
130
|
+
</div>
|
|
115
131
|
) }
|
|
116
132
|
{ RichText.isEmpty( sectionHeader ) ? (
|
|
117
133
|
<h2 className="entry-title" key="title">
|
|
@@ -208,6 +224,7 @@ class Edit extends Component< HomepageArticlesProps > {
|
|
|
208
224
|
showAuthor,
|
|
209
225
|
showAvatar,
|
|
210
226
|
showCategory,
|
|
227
|
+
showTagLabels,
|
|
211
228
|
postLayout,
|
|
212
229
|
mediaPosition,
|
|
213
230
|
specificMode,
|
|
@@ -445,6 +462,11 @@ class Edit extends Component< HomepageArticlesProps > {
|
|
|
445
462
|
checked={ showCategory }
|
|
446
463
|
onChange={ () => setAttributes( { showCategory: ! showCategory } ) }
|
|
447
464
|
/>
|
|
465
|
+
<ToggleControl
|
|
466
|
+
label={ __( 'Show tag labels', 'newspack-blocks' ) }
|
|
467
|
+
checked={ showTagLabels }
|
|
468
|
+
onChange={ () => setAttributes( { showTagLabels: ! showTagLabels } ) }
|
|
469
|
+
/>
|
|
448
470
|
{ IS_SUBTITLE_SUPPORTED_IN_THEME && (
|
|
449
471
|
<ToggleControl
|
|
450
472
|
label={ __( 'Show subtitle', 'newspack-blocks' ) }
|
|
@@ -17,6 +17,10 @@ call_user_func(
|
|
|
17
17
|
// Get sponsors for this post.
|
|
18
18
|
$sponsors = Newspack_Blocks::get_all_sponsors( $post_id );
|
|
19
19
|
|
|
20
|
+
// Get tag labels for this post, but only when the block is set to show them
|
|
21
|
+
// (avoids a per-post taxonomy lookup when tag labels are disabled).
|
|
22
|
+
$tag_labels = ( $attributes['showTagLabels'] ?? true ) ? Newspack_Blocks::get_tag_labels( $post_id ) : null;
|
|
23
|
+
|
|
20
24
|
// Add classes based on the post's assigned categories and tags.
|
|
21
25
|
$classes[] = Newspack_Blocks::get_term_classes( $post_id );
|
|
22
26
|
|
|
@@ -113,6 +117,10 @@ call_user_func(
|
|
|
113
117
|
<?php
|
|
114
118
|
endif;
|
|
115
119
|
|
|
120
|
+
if ( ! empty( $tag_labels ) ) {
|
|
121
|
+
Newspack_Blocks::display_tag_labels( $tag_labels );
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
if ( '' === $attributes['sectionHeader'] ) {
|
|
117
125
|
// Don't link the title if the post lacks a valid URL.
|
|
118
126
|
if ( ! $post_link ) {
|
|
@@ -609,7 +609,26 @@ domReady( () => {
|
|
|
609
609
|
if ( 'custom' === afterSuccessBehavior ) {
|
|
610
610
|
window.location.href = afterSuccessUrl;
|
|
611
611
|
} else if ( 'referrer' === afterSuccessBehavior ) {
|
|
612
|
-
window.history.back()
|
|
612
|
+
// window.history.back() is a no-op when there's no in-session
|
|
613
|
+
// history entry (reader landed directly, opened in a new tab, or
|
|
614
|
+
// the previous entry is cross-origin), stranding the reader with no
|
|
615
|
+
// feedback. Prefer the same-origin document.referrer when we have
|
|
616
|
+
// one, and fall back to history.back() otherwise.
|
|
617
|
+
const referrer = document.referrer;
|
|
618
|
+
let navigated = false;
|
|
619
|
+
if ( referrer ) {
|
|
620
|
+
try {
|
|
621
|
+
if ( new URL( referrer ).origin === window.location.origin ) {
|
|
622
|
+
window.location.href = referrer;
|
|
623
|
+
navigated = true;
|
|
624
|
+
}
|
|
625
|
+
} catch ( e ) {
|
|
626
|
+
// Malformed referrer — fall through to history.back().
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
if ( ! navigated ) {
|
|
630
|
+
window.history.back();
|
|
631
|
+
}
|
|
613
632
|
}
|
|
614
633
|
}
|
|
615
634
|
window?.newspackReaderActivation?.setPendingCheckout?.();
|
package/src/types/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ declare global {
|
|
|
90
90
|
flag: string;
|
|
91
91
|
}[]
|
|
92
92
|
| false;
|
|
93
|
+
newspack_tag_labels?: { flag: string; link: string }[] | false;
|
|
93
94
|
newspack_listings_hide_author?: boolean;
|
|
94
95
|
newspack_listings_hide_publish_date?: boolean;
|
|
95
96
|
};
|
|
@@ -130,6 +131,7 @@ declare global {
|
|
|
130
131
|
showAuthor: boolean;
|
|
131
132
|
showAvatar: boolean;
|
|
132
133
|
showCategory: boolean;
|
|
134
|
+
showTagLabels: boolean;
|
|
133
135
|
postLayout: string;
|
|
134
136
|
columns: integer;
|
|
135
137
|
colGap: integer;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
'name' => 'automattic/newspack-blocks',
|
|
4
4
|
'pretty_version' => 'dev-main',
|
|
5
5
|
'version' => 'dev-main',
|
|
6
|
-
'reference' => '
|
|
6
|
+
'reference' => '2f93be95742dd767b39b811608d05fab0d2955fb',
|
|
7
7
|
'type' => 'wordpress-plugin',
|
|
8
8
|
'install_path' => __DIR__ . '/../../',
|
|
9
9
|
'aliases' => array(),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
'automattic/newspack-blocks' => array(
|
|
14
14
|
'pretty_version' => 'dev-main',
|
|
15
15
|
'version' => 'dev-main',
|
|
16
|
-
'reference' => '
|
|
16
|
+
'reference' => '2f93be95742dd767b39b811608d05fab0d2955fb',
|
|
17
17
|
'type' => 'wordpress-plugin',
|
|
18
18
|
'install_path' => __DIR__ . '/../../',
|
|
19
19
|
'aliases' => array(),
|