Skip to content

Commit

Permalink
Merge pull request #3364 from WordImpress/issues/3361
Browse files Browse the repository at this point in the history
feat(shortcode): Add Company attribute to give_receipt shortcode #3361
  • Loading branch information
ravinderk committed Jun 14, 2018
2 parents c9321ec + b739fde commit 47388f9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions includes/admin/shortcodes/shortcode-give-receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function define_fields() {
'name' => 'price',
'label' => esc_html__( 'Show Donation Amount:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Show', 'give' )
),
array(
'type' => 'listbox',
Expand All @@ -59,42 +59,52 @@ public function define_fields() {
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Show', 'give' )
),
array(
'type' => 'listbox',
'name' => 'date',
'label' => esc_html__( 'Show Date:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Show', 'give' ),
),
array(
'type' => 'listbox',
'name' => 'payment_key',
'label' => esc_html__( 'Show Payment Key:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Hide', 'give' ),
),
array(
'type' => 'listbox',
'name' => 'payment_method',
'label' => esc_html__( 'Show Payment Method:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Show', 'give' ),
),
array(
'type' => 'listbox',
'name' => 'payment_id',
'label' => esc_html__( 'Show Payment ID:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
'false' => esc_html__( 'Hide', 'give' ),
),
'placeholder' => esc_html__( 'Show', 'give' ),
),
array(
'type' => 'listbox',
'name' => 'company_name',
'label' => esc_html__( 'Company Name:', 'give' ),
'options' => array(
'true' => esc_html__( 'Show', 'give' ),
),
'placeholder' => esc_html__( 'Hide', 'give' )
),
);
}
Expand Down

0 comments on commit 47388f9

Please sign in to comment.