Skip to content

Commit

Permalink
add donation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvio Kennecke committed Aug 22, 2020
1 parent 1764ee4 commit 1b52157
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/WpAdmin/Pages/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public function printHeader(string $pageTitle = ''): void {

}

public function printDonationMessage(): void {
?>
<div class="notice-info notice">

<p>Dieses Plugin ist für dich kostenfrei verfügbar. Trotzdem nehmen Wartung und Entwicklung des Plugins Zeit in Anspruch.<br>Daher würde ich mich über eine kleine Anerkennung in Form einer Spende sehr freuen. Nutze dafür einfach den folgenden Link: <a href="https://paypal.me/diginize">https://paypal.me/diginize</a></p>

</div>
<?php
}

/**
* @param string $type success|warning|error|info
* @param string $message
Expand Down
2 changes: 2 additions & 0 deletions src/WpAdmin/Pages/ConfigurePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public function printPage(): void {

<?php $this->printHeader('Konfiguration'); ?>

<?php $this->printDonationMessage(); ?>

<?php $this->printMessages(); ?>

<form action="" method="post">
Expand Down

0 comments on commit 1b52157

Please sign in to comment.