fix: address CHRNX editorial review findings
This commit is contained in:
17 files changed
+236
-10
No files matched your search
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "chrnx/journal-link",
|
||||
"version": "0.1.0",
|
||||
"title": "Journal Link",
|
||||
"category": "theme",
|
||||
"description": "Display a translated portable link to the full Journal.",
|
||||
"textdomain": "chrnx",
|
||||
"supports": { "html": false },
|
||||
"render": "file:./render.php"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Journal Link block render.
|
||||
*
|
||||
* @package CHRNX
|
||||
*/
|
||||
?>
|
||||
<p <?php echo get_block_wrapper_attributes( array( 'class' => 'chrnx-journal-link' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>><a href="<?php echo esc_url( chrnx_get_full_journal_url() ); ?>"><?php echo esc_html__( 'Browse the full Journal', 'chrnx' ); ?></a></p>
|
||||
Reference in new issue
Block a user