abstract-shortcode-generator.php
6 years ago
admin-shortcodes.js
6 years ago
class-shortcode-button.php
6 years ago
mce-plugin.js
6 years ago
shortcode-give-donation-grid.php
4 years ago
shortcode-give-donation-history.php
6 years ago
shortcode-give-donor-wall.php
4 years ago
shortcode-give-form.php
6 years ago
shortcode-give-goal.php
5 years ago
shortcode-give-login.php
6 years ago
shortcode-give-profile-editor.php
6 years ago
shortcode-give-receipt.php
6 years ago
shortcode-give-register.php
6 years ago
shortcode-give-totals.php
6 years ago
shortcode-give-register.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The [give_register] Shortcode Generator class |
| 4 | * |
| 5 | * @package Give |
| 6 | * @subpackage Admin |
| 7 | * @copyright Copyright (c) 2016, GiveWP |
| 8 | * @license https://opensource.org/licenses/gpl-license GNU Public License |
| 9 | * @since 1.3.0 |
| 10 | */ |
| 11 | |
| 12 | // Exit if accessed directly. |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | class Give_Shortcode_Register extends Give_Shortcode_Generator { |
| 18 | |
| 19 | /** |
| 20 | * Class constructor |
| 21 | */ |
| 22 | public function __construct() { |
| 23 | |
| 24 | $this->shortcode['title'] = esc_html__( 'Register', 'give' ); |
| 25 | $this->shortcode['label'] = esc_html__( 'Register', 'give' ); |
| 26 | |
| 27 | parent::__construct( 'give_register' ); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Define the shortcode attribute fields |
| 32 | * |
| 33 | * @return array |
| 34 | */ |
| 35 | public function define_fields() { |
| 36 | |
| 37 | return array( |
| 38 | array( |
| 39 | 'type' => 'container', |
| 40 | 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Redirect URL (optional):', 'give' ) ), |
| 41 | ), |
| 42 | array( |
| 43 | 'type' => 'textbox', |
| 44 | 'name' => 'redirect', |
| 45 | 'minWidth' => 320, |
| 46 | 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after registering.', 'give' ), |
| 47 | ), |
| 48 | array( |
| 49 | 'type' => 'docs_link', |
| 50 | 'text' => esc_html__( 'Learn more about the Register Shortcode', 'give' ), |
| 51 | 'link' => 'http://docs.givewp.com/shortcode-give-register', |
| 52 | ), |
| 53 | ); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | new Give_Shortcode_Register(); |
| 58 |