Skip to content

Commit

Permalink
See pewresearch/prc-platform@3f1fcb3 from refs/tags/v1.023
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Dec 17, 2024
1 parent 59dfd01 commit 38053a7
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => 'd485f339a5a8ec1b6688', 'type' => 'module');
<?php return array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => 'ca99b3890d7dc6f14a22', 'type' => 'module');

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion includes/datasets/build/download-block/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// If this dataset is in the ATP then it needs a modal to accept the ATP legal terms. Here we're manually adding the content from the download block... usually a core/button into the trigger of the poopup. Now, the button is still wired to the download block but the download block can handle opening the modal by accessing the modals' action store when running core/button::onButtonClick.
if ( $is_atp ) {
$modal = \PRC\Platform\Blocks\Popup_Controller\create_modal([
'title' => 'Accept ATP Legal Terms and Conditions to Download',
'title' => 'Accept ATP Legal Terms and Conditions to download',
'content' => '<!-- wp:prc-platform/dataset-atp-legal-acceptance {"datasetId": "'.$dataset_id.'", "nonce": "'.$nonce.'"} -->',
'backgroundColor' => 'ui-white',
'trigger' => $content,
Expand All @@ -32,10 +32,16 @@
)),
'data-wp-context' => wp_json_encode(array(
'datasetId' => $dataset_id,
'isProcessing' => false,
'isError' => false,
'isSuccess' => false,
'isATP' => $is_atp,
'NONCE' => $nonce,
)),
'data-wp-bind--data-dataset-id' => 'context.datasetId',
'data-wp-watch--is-processing' => 'callbacks.isProcessing',
'data-wp-watch--is-error' => 'callbacks.isError',
'data-wp-watch--is-success' => 'callbacks.isSuccess',
));

echo wp_sprintf(
Expand Down
2 changes: 1 addition & 1 deletion includes/datasets/build/download-block/style-index-rtl.css

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

2 changes: 1 addition & 1 deletion includes/datasets/build/download-block/style-index.css

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

2 changes: 1 addition & 1 deletion includes/datasets/build/download-block/view.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => '3b059ee10edcad084456', 'type' => 'module');
<?php return array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => '407ce3b6ab894df96365', 'type' => 'module');
2 changes: 1 addition & 1 deletion includes/datasets/build/download-block/view.js

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

2 changes: 1 addition & 1 deletion includes/datasets/build/download-block/view.js.map

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

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

Loading

0 comments on commit 38053a7

Please sign in to comment.