@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | //validate display_style and float_labels value |
| 81 | 81 | if ( ( $key == 'display_style' && ! in_array( $value, array( 'onpage', 'reveal', 'modal' ) ) ) |
| 82 | - || ( $key == 'float_labels' && ! in_array( $value, array( 'enabled', 'disabled' ) ) ) |
|
| 82 | + || ( $key == 'float_labels' && ! in_array( $value, array( 'enabled', 'disabled' ) ) ) |
|
| 83 | 83 | ) { |
| 84 | 84 | |
| 85 | 85 | $atts[ $key ] = ''; |
@@ -117,8 +117,8 @@ |
||
| 117 | 117 | $shortcode_button_pages = array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ); |
| 118 | 118 | // Only run in admin post/page creation and edit screens |
| 119 | 119 | if ( in_array( $pagenow, $shortcode_button_pages ) |
| 120 | - && apply_filters( 'give_shortcode_button_condition', true ) |
|
| 121 | - && ! empty( self::$shortcodes ) |
|
| 120 | + && apply_filters( 'give_shortcode_button_condition', true ) |
|
| 121 | + && ! empty( self::$shortcodes ) |
|
| 122 | 122 | ) { |
| 123 | 123 | |
| 124 | 124 | $shortcodes = array(); |
@@ -115,8 +115,8 @@ |
||
| 115 | 115 | |
| 116 | 116 | case 'num_purchases' : |
| 117 | 117 | $value = '<a href="' . |
| 118 | - admin_url( '/edit.php?post_type=give_forms&page=give-payment-history&user=' . urlencode( $item['email'] ) |
|
| 119 | - ) . '">' . esc_html( $item['num_purchases'] ) . '</a>'; |
|
| 118 | + admin_url( '/edit.php?post_type=give_forms&page=give-payment-history&user=' . urlencode( $item['email'] ) |
|
| 119 | + ) . '">' . esc_html( $item['num_purchases'] ) . '</a>'; |
|
| 120 | 120 | break; |
| 121 | 121 | |
| 122 | 122 | case 'amount_spent' : |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Email Template |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Emails |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - * @since 1.0 |
|
| 10 | - */ |
|
| 3 | + * Email Template |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Emails |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + * @since 1.0 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Template Functions |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Functions/Templates |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - * @since 1.0 |
|
| 10 | - */ |
|
| 3 | + * Template Functions |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Functions/Templates |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + * @since 1.0 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Customer (Donors) |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Admin/Customers |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - * @since 1.0 |
|
| 10 | - */ |
|
| 3 | + * Customer (Donors) |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Admin/Customers |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + * @since 1.0 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Customer (Donors) |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Admin/Customers |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - * @since 1.0 |
|
| 10 | - */ |
|
| 3 | + * Customer (Donors) |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Admin/Customers |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + * @since 1.0 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The [give_form] Shortcode Generator class |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Admin |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - * @since 1.3.0 |
|
| 10 | - */ |
|
| 3 | + * The [give_form] Shortcode Generator class |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Admin |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + * @since 1.3.0 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | defined( 'ABSPATH' ) or exit; |
| 13 | 13 | |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sales Log View Class |
|
| 4 | - * |
|
| 5 | - * @package Give |
|
| 6 | - * @subpackage Admin/Reports |
|
| 7 | - * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | - */ |
|
| 3 | + * Sales Log View Class |
|
| 4 | + * |
|
| 5 | + * @package Give |
|
| 6 | + * @subpackage Admin/Reports |
|
| 7 | + * @copyright Copyright (c) 2016, WordImpress |
|
| 8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | // Exit if accessed directly |
| 12 | 12 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | case 'user_id' : |
| 73 | 73 | return '<a href="' . |
| 74 | - admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&user=' . ( ! empty( $item['user_id'] ) ? urlencode( $item['user_id'] ) : give_get_payment_user_email( $item['payment_id'] ) ) ) . |
|
| 75 | - '">' . $item['user_name'] . '</a>'; |
|
| 74 | + admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&user=' . ( ! empty( $item['user_id'] ) ? urlencode( $item['user_id'] ) : give_get_payment_user_email( $item['payment_id'] ) ) ) . |
|
| 75 | + '">' . $item['user_name'] . '</a>'; |
|
| 76 | 76 | |
| 77 | 77 | case 'amount' : |
| 78 | 78 | return give_currency_filter( give_format_amount( $item['amount'] ) ); |