shortcode['title'] = esc_html__( 'Donation Receipt', 'give' ); $this->shortcode['label'] = esc_html__( 'Donation Receipt', 'give' ); parent::__construct( 'give_receipt' ); } /** * Define the shortcode attribute fields * * @return array */ public function define_fields() { return array( array( 'type' => 'container', 'html' => sprintf( '
%s
', esc_html__( 'Optional settings', 'give' ) ), ), array( 'type' => 'listbox', 'name' => 'price', 'label' => esc_html__( 'Show Donation Amount:', 'give' ), 'options' => array( 'false' => esc_html__( 'Hide', 'give' ), ), 'placeholder' => esc_html__( 'Show', 'give' ) ), array( 'type' => 'listbox', 'name' => 'donor', 'label' => esc_html__( 'Show Donor Name:', 'give' ), 'options' => array( '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( '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' ), ), 'placeholder' => esc_html__( 'Hide', 'give' ), ), array( 'type' => 'listbox', 'name' => 'payment_method', 'label' => esc_html__( 'Show Payment Method:', 'give' ), 'options' => array( '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( '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' ) ), ); } } new Give_Shortcode_Donation_Receipt;