Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ Absolutely, the admin dashboard allows you to modify button texts, pricing, colo
3. Customizable PayButton Paywall Settings
4. PayButton Paywall Shortcode
5. Transaction Tracking and Analytics
6. PayButton Generator

== Changelog ==

= 3.0.0 (2025/03/18) =
*
* Enhanced admin wallet address configuration flow.
* Implemented wallet address validation feature using the ecashaddrjs library.
* Refactored all eCash related identifiers (variables, CSS classes, DB fields) to generic terms.
* Improved the styling of the Unlocked Content Indicator with added customization support.
* Added native support for a streamlined PayButton generator that lets WordPress admins easily create and embed custom XEC/BCH donation buttons (e.g., "donate," "buy me a coffee") via shortcode.
* Improved admin dashboard UI/UX.

= 2.3.0 (2025/03/04) =
* Created a new paybutton-admin.css file to centralize admin styles.
Expand Down Expand Up @@ -91,6 +97,6 @@ Absolutely, the admin dashboard allows you to modify button texts, pricing, colo

== Upgrade Notice ==

= 2.2.0+ =
Upgrade to version 2.2.0+ for improved compatibility and reliability.
=======
= 3.0.0+ =
Upgrade to version 3.0.0+ for improved compatibility and reliability.
=======
31 changes: 31 additions & 0 deletions assets/css/paybutton-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@
Dashboard page styles
------------------------------ */

/* Adds a blue top-border below the admin-bar*/
.pb-header {
margin-top: 0 !important;
box-sizing: border-box;
}

.pb-header::before {
content: "";
position: absolute;
top: 0 !important;
left: -20px !important;
right: -0px !important;
height: 5px !important;
background: #0074C2;
}

.paybutton-logo {
max-width: 250px;
height: 40px;
margin-top: 0.8rem;
padding-bottom: 0px;
}

/* Container for the dashboard buttons */
.paybutton-dashboard-buttons {
display: flex;
Expand Down Expand Up @@ -62,6 +85,14 @@
/* ------------------------------
Button Generator Page Styles
------------------------------ */
.pb-menu-new{
color: #FF21D0;
vertical-align: super;
font-size: 9px;
font-weight: 600;
padding-left: 2px;
}

.pb-generator-container {
display: flex;
gap: 2rem;
Expand Down
Binary file added assets/paybutton-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion includes/class-paybutton-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function add_admin_menus() {
add_submenu_page(
'paybutton',
'Button Generator',
'Button Generator',
'Button Generator <span class="pb-menu-new">NEW!</span>',
'manage_options',
'paybutton-generator',
array( $this, 'button_generator_page' )
Expand Down
3 changes: 3 additions & 0 deletions templates/admin/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
?>

<div class="wrap">
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<h1>Content</h1>
<p><strong>Total Content Unlocks: </strong><?php echo esc_html( intval( $total_unlocks ) ); ?></p>
<p><strong>Total Earned:</strong> <?php echo esc_html( number_format( $grand_total_earned, 2 ) ); ?> XEC</p>
Expand Down
6 changes: 6 additions & 0 deletions templates/admin/customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

<div class="wrap">
<?php if ( isset( $user_address ) ): ?>
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<h1>Unlocked Content for: <a href="https://explorer.e.cash/address/<?php echo esc_attr( $user_address ); ?>" target="_blank"><?php echo esc_html( $user_address ); ?></a></h1>
<?php if ( ! empty( $rows ) ): ?>
<table class="widefat fixed striped">
Expand Down Expand Up @@ -61,6 +64,9 @@
<?php endif; ?>
<p><a href="<?php echo esc_url( admin_url( 'admin.php?page=paybutton-paywall-customers' ) ); ?>">← Back to Customers</a></p>
<?php else: ?>
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<h1>Customers</h1>
<p><strong>Total Customers:</strong> <?php echo intval( $total_customers ); ?></p>
<p><strong>Total Earned:</strong> <?php echo number_format( $grand_total_xec, 2 ); ?> XEC</p>
Expand Down
15 changes: 8 additions & 7 deletions templates/admin/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
?>

<div class="wrap">
<h1>PayButton</h1>
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<!-- New heading above the buttons -->
<h2>Monetize your content with custom no-signup paywalls & donation buttons</h2>

Expand All @@ -21,18 +23,17 @@
Paywall Settings
</a>
</div>
<!-- Button 3: PayButton Woocomerce (Coming soon) -->
<!-- Button 3: PayButton WooComerce (Coming soon) -->
<div class="paybutton-dashboard-button disabled">
<p class="paybutton-dashboard-text">
PayButton Woocomerce – Coming soon!
PayButton WooComerce – Coming soon!
</p>
</div>

<p class="pb-paragraph-margin-top">
Sign up for a <a href="https://paybutton.org/signup" target="_blank">FREE PayButton account</a> to get access to advanced payment tracking &amp; business features.
</p>
</div>

<p class="pb-paragraph-margin-top">
Sign up for a <a href="https://paybutton.org/signup" target="_blank">FREE PayButton account</a> to get access to advanced payment tracking &amp; business features.
</p>
<!-- New icon block below the buttons -->
<div class="paybutton-dashboard-icons">
<!-- Home Icon -->
Expand Down
3 changes: 3 additions & 0 deletions templates/admin/paybutton-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
?>

<div class="wrap">
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<h1>Button Generator</h1>
<h2>Build your custom PayButton and begin accepting payments!</h2>

Expand Down
3 changes: 3 additions & 0 deletions templates/admin/paywall-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
?>

<div class="wrap">
<div class="pb-header">
<img class="paybutton-logo" src="<?php echo esc_url( PAYBUTTON_PLUGIN_URL . 'assets/paybutton-logo.png' ); ?>" alt="PayButton Logo">
</div>
<h1>Paywall Settings</h1>
<?php if ( $settings_saved ): ?>
<div class="updated"><p>Settings saved.</p></div>
Expand Down