Skip to content

Commit

Permalink
call render_button separately
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Oct 31, 2024
1 parent ed91fc0 commit b3dce8a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion classes/popovers/class-popover.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function render_button() {
*/
public function render() {
?>
<?php $this->render_button(); ?>
<div id="prpl-popover-<?php echo \esc_attr( $this->id ); ?>" class="prpl-popover" popover>
<!-- The content. -->
<?php $this->the_content(); ?>
Expand Down
1 change: 1 addition & 0 deletions views/admin-page-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<span class="dashicons dashicons-lightbulb"></span>
<span class="screen-reader-text"><?php \esc_html_e( 'Start tour', 'progress-planner' ); ?>
</button>
<?php \progress_planner()->get_popovers()->settings->render_button(); ?>
<?php \progress_planner()->get_popovers()->settings->render(); ?>
<div class="prpl-header-select-range">
<label for="prpl-select-range" class="screen-reader-text">
Expand Down
1 change: 1 addition & 0 deletions views/page-widgets/badge-streak.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

<h2 class="prpl-widget-title">
<?php \esc_html_e( 'Your streak badges', 'progress-planner' ); ?>
<?php \progress_planner()->get_popovers()->badges->render_button(); ?>
<?php \progress_planner()->get_popovers()->badges->render(); ?>
</h2>

Expand Down

0 comments on commit b3dce8a

Please sign in to comment.