Skip to content

Commit

Permalink
v3.0.0: merges donation + payment plugin into one: DePay for Wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Dec 1, 2024
1 parent ea0d0fb commit c3d5dde
Show file tree
Hide file tree
Showing 38 changed files with 457 additions and 365 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

custom: https://tip.depay.com/6KFBECVsokSt0UKOAug8CI
custom: https://link.depay.com/6KFBECVsokSt0UKOAug8CI
27 changes: 26 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
/node_modules
# ignore everything in the root except the "wp-content" directory.
!wp-content/

# ignore everything in the "wp-content" directory, except:
# "mu-plugins", "plugins", "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/

# ignore these plugins
wp-content/plugins/hello.php

# ignore specific themes
wp-content/themes/twenty*/

# ignore node dependency directories
node_modules/

# ignore log files and databases
*.log
*.sql
*.sqlite

phpcs-report.txt
lint/vendor
Binary file modified .wordpress-org/_icon-128x128.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 .wordpress-org/_icon-256x256.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 .wordpress-org/banner-1544x500.jpg
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 .wordpress-org/banner-772x250.jpg
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 .wordpress-org/icon-128x128.gif
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 .wordpress-org/icon-256x256.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-1.gif
Binary file not shown.
Binary file added .wordpress-org/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-2.gif
Binary file not shown.
Binary file added .wordpress-org/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-3.gif
Binary file not shown.
Binary file added .wordpress-org/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-4.gif
Binary file not shown.
Binary file added .wordpress-org/screenshot-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-5.gif
Binary file not shown.
Binary file removed .wordpress-org/screenshot-6.gif
Binary file not shown.
Binary file removed .wordpress-org/screenshot-7.gif
Binary file not shown.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
## DePay Payments
## DePay for Wordpress

The Wordpress Web3 Payments plugin allows you to accept cryptocurrency payments directly into your wallet.
The Wordpress Web3 Payments plugin allows you to accept web3 crypto payments directly into your wallet.

![Wordpress Web3 Payments](/.wordpress-org/screenshot-1.gif)
![Wordpress Web3 Payments](/.wordpress-org/screenshot-1.jpg)

### Demo

Visit our demo wordpress installation and scroll to the buttom to find the "Pay" button:

https://web3wordpress.xyz/

### Installation

1. [Download the latest plugin](https://github.com/DePayFi/web3-wordpress-depay-payments/releases/latest/download/wp-depay-payments-plugin.zip)
1. [Download the latest plugin](https://github.com/DePayFi/web3-payments-depay/releases/latest/download/wp-depay-payments-plugin.zip)

2. Install the the plugin from within your wordpress admin section: "Plugins" -> "Upload Plugin" -> Choose the plugin zip you've downloaded in step 1

### Release
## Development

In order to release the plugins simply push a git tag:
### Update Version

```
git commit
yarn update:version
```

### Release

```
git push
git tag v2.5.1
git push origin v2.5.1
yarn release
```
8 changes: 4 additions & 4 deletions block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "depay-payments/block",
"title": "DePay Payments",
"title": "DePay",
"category": "widgets",
"description": "Accept Web3 Payments, supporting various cryptocurrency tokens and wallets: MetaMask, Phantom, USDC, USDT, ETH, SOL, BSC, POL...",
"keywords": [ "payments", "cryptocurrency", "web3", "DePay", "USDC" ],
"version": "2.5.1",
"description": "Accept Web3 Crypto Payments & Donations. Supports various tokens, blockchains and wallets. MetaMask, Phantom, USDC, USDT, ETH, SOL, BSC, POL, xDAI…",
"keywords": [ "payments", "crypto", "web3", "DePay", "USDC" ],
"version": "3.0.0",
"textdomain": "depay-payments",
"example": {},
"editorScript": "depay-payments-script",
Expand Down
4 changes: 2 additions & 2 deletions core/class-depay-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class DePay_Payments {
* @return void
*/
public function __clone() {
_doing_it_wrong( __FUNCTION__, __( 'You are not allowed to clone this class.', 'depay-payments' ), '1.0.0' );
_doing_it_wrong( __FUNCTION__, __( 'You are not allowed to clone this class.', 'depay-payments' ), DEPAYPAYMENTS_VERSION );
}

/**
Expand All @@ -62,7 +62,7 @@ public function __clone() {
* @return void
*/
public function __wakeup() {
_doing_it_wrong( __FUNCTION__, __( 'You are not allowed to unserialize this class.', 'depay-payments' ), '1.0.0' );
_doing_it_wrong( __FUNCTION__, __( 'You are not allowed to unserialize this class.', 'depay-payments' ), DEPAYPAYMENTS_VERSION );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions core/includes/assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
height: 48px;
}
.widget-example .DialogHeaderActionRight .Icon {
position: relative;
top: -2px;
position: relative;
top: 0;
}
.widget-example .DialogHeaderActionLeft {
position: absolute;
Expand Down
14 changes: 13 additions & 1 deletion core/includes/assets/css/frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
float: left;
}

.wp-block-depay-payments-block-settings {
.wp-block-depay-payments-block-settings-amount {
position: absolute;
top: -4px;
right: -4px;
Expand All @@ -25,3 +25,15 @@
color: white;
font-size: 12px;
}

.wp-block-depay-payments-block-settings-label {
position: absolute;
top: -4px;
left: -4px;
background: black;
box-shadow: 0 0 8px rgba(0,0,0,0.2);
border-radius: 5px;
padding: 4px;
color: white;
font-size: 12px;
}
2 changes: 1 addition & 1 deletion core/includes/assets/js/admin.js

Large diffs are not rendered by default.

171 changes: 1 addition & 170 deletions core/includes/assets/js/block.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions core/includes/classes/class-depay-payments-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class DePay_Payments_Admin{

public static function add_admin_menu() {
add_menu_page(
'Payments',
'Payments',
'DePay',
'DePay',
'manage_options',
'depay-payments',
array( 'DePay_Payments_Admin', 'admin_page_contents' ),
Expand Down
Loading

0 comments on commit c3d5dde

Please sign in to comment.