Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@e817c77 from refs/heads/release/5.0-b…
Browse files Browse the repository at this point in the history
…w-templates
  • Loading branch information
prcdevgitbot committed Feb 28, 2024
1 parent 027720e commit 900b8fb
Show file tree
Hide file tree
Showing 11 changed files with 19,794 additions and 18,660 deletions.
4 changes: 4 additions & 0 deletions blocks/logo/build/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
{
"name": "container-aware",
"label": "Container Aware"
},
{
"name": "decoded-only",
"label": "Decoded"
}
],
"example": {},
Expand Down
2 changes: 1 addition & 1 deletion blocks/logo/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('classnames', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '0524ec460768ce378e80');
<?php return array('dependencies' => array('classnames', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'd7a51183438d283557b9');
833 changes: 832 additions & 1 deletion blocks/logo/build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blocks/logo/build/index.js.map

Large diffs are not rendered by default.

83 changes: 82 additions & 1 deletion blocks/logo/build/style-index.css

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

1 change: 1 addition & 0 deletions blocks/logo/build/style-index.css.map

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

7 changes: 7 additions & 0 deletions blocks/logo/logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public function render_block_callback( $attributes, $content, $block ) {
$logo_alt_white->set_attribute('data-browser-theme', 'dark');
}

$decoded = new WP_HTML_Tag_Processor( $this->get_logo( 'decoded.svg' ) );

$site_url = get_site_url();

ob_start();
Expand All @@ -133,6 +135,11 @@ public function render_block_callback( $attributes, $content, $block ) {
echo $logo_alt_white;
?>
</a>
<a class="wp-block-prc-block-logo__inner__decoded" href="<?php echo esc_url($site_url);?>" alt="Return to Home">
<?php
echo $decoded;
?>
</a>
</div>
</div>
<?php
Expand Down
Loading

0 comments on commit 900b8fb

Please sign in to comment.