Skip to content

Commit

Permalink
feat: correct linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Jan 9, 2024
1 parent bbd0aa4 commit 9fc9bc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions includes/class-newspack-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ public static function return_demo_content() {
return ob_get_clean();
}

/**
* Append the demo content when the ui-demo query string is used.
* @param string $content The page content.
* @return string Modified $content with demo appended.
*/
public static function load_demo( $content ) {
if ( isset( $_REQUEST['ui-demo'] ) ) {
$content .= self::return_demo_content();
Expand Down
1 change: 0 additions & 1 deletion includes/reader-activation/class-reader-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,6 @@ public static function render_auth_form( $is_inline = false ) {
<div class="<?php echo \esc_attr( $class( 'wrapper' ) ); ?> newspack-ui newspack-ui__modal newspack-ui__modal__small">
<?php if ( ! $is_inline ) : ?>
<header class="newspack-ui__modal__header">
<?php // TODO: replace with dynamic string ?>
<h2><?php _e( 'Sign In', 'newspack-plugin' ); ?></h2>
<button class="<?php echo \esc_attr( $class( 'close' ) ); ?> newspack-ui__modal__close" data-close aria-label="<?php \esc_attr_e( 'Close Authentication Form', 'newspack-plugin' ); ?>">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false">
Expand Down

0 comments on commit 9fc9bc2

Please sign in to comment.