-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Activity Scores Widget. | ||
* | ||
* @package ProgressPlanner | ||
*/ | ||
|
||
namespace ProgressPlanner\Popups; | ||
|
||
/** | ||
* Activity Scores Widget. | ||
*/ | ||
final class Badges extends Popup { | ||
|
||
/** | ||
* The popup ID. | ||
* | ||
* @var string | ||
*/ | ||
protected $id = 'badges-details'; | ||
|
||
/** | ||
* Render the widget content. | ||
*/ | ||
protected function the_content() { | ||
Check failure on line 25 in classes/popups/class-badges.php GitHub Actions / Static Analysis
|
||
?> | ||
Test | ||
<?php | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Activity Scores Widget. | ||
* | ||
* @package ProgressPlanner | ||
*/ | ||
|
||
namespace ProgressPlanner\Popups; | ||
|
||
/** | ||
* Activity Scores Widget. | ||
*/ | ||
abstract class Popup { | ||
|
||
/** | ||
* The popup ID. | ||
* | ||
* @var string | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public function __construct() { | ||
$this->render(); | ||
} | ||
|
||
/** | ||
* Render the widget content. | ||
*/ | ||
public function render() { | ||
Check failure on line 32 in classes/popups/class-popup.php GitHub Actions / Static Analysis
|
||
?> | ||
<div id="prpl-popup-<?php echo \esc_attr( $this->id ); ?>" class="prpl-popup"> | ||
<?php $this->the_content(); ?> | ||
</div> | ||
<?php | ||
} | ||
|
||
/** | ||
* Render the widget content. | ||
*/ | ||
abstract protected function the_content(); | ||
Check failure on line 43 in classes/popups/class-popup.php GitHub Actions / Static Analysis
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters