Code Duplication    Length = 21-28 lines in 3 locations

core/libraries/shortcodes/EE_Primary_Registration_Details_Shortcodes.lib.php 1 location

@@ 35-55 (lines=21) @@
32
class EE_Primary_Registration_Details_Shortcodes extends EE_Shortcodes {
33
34
35
	protected function _init_props() {
36
		$this->label = __('Primary_Registration Details Shortcodes', 'event_espresso');
37
		$this->description = __('All shortcodes specific primary registrant data', 'event_espresso');
38
		$this->_shortcodes = array(
39
			'[PRIMARY_REGISTRANT_FNAME]' => __('Parses to the first name of the primary registration for the transaction.', 'event_espresso'),
40
			'[PRIMARY_REGISTRANT_LNAME]' => __('Parses to the last name of the primary registration for the transaction.', 'event_espresso'),
41
			'[PRIMARY_REGISTRANT_EMAIL]' => __('Parses to the email address of the primary registration for the transaction.', 'event_espresso'),
42
			'[PRIMARY_REGISTRANT_REGISTRATION_ID]' => __('Parses to the registration ID of the primary registrant for the transaction.', 'event_espresso'),
43
			'[PRIMARY_REGISTRANT_REGISTRATION_CODE]' => __('Parses to the registration code of the primary registrant for the transaction.', 'event_espresso'),
44
			'[PRIMARY_REGISTRANT_PHONE_NUMBER]' => __('The Phone Number for the primary registrant for the transaction.', 'event_espresso'),
45
			'[PRIMARY_REGISTRANT_ADDRESS]' => __('The Address for the primary registrant for the transaction.', 'event_espresso'),
46
			'[PRIMARY_REGISTRANT_ADDRESS2]' => __('Whatever was in the address 2 field for the primary registrant for the transaction.', 'event_espresso'),
47
			'[PRIMARY_REGISTRANT_CITY]' => __('The city for the primary registrant for the transaction.', 'event_espresso'),
48
			'[PRIMARY_REGISTRANT_ZIP_PC]' => __('The ZIP (or Postal) Code for the primary registrant for the transaction.', 'event_espresso'),
49
			'[PRIMARY_REGISTRANT_ADDRESS_STATE]' => __('The state/province for the primary registrant for the transaction.', 'event_espresso' ),
50
			'[PRIMARY_REGISTRANT_COUNTRY]' => __('The country for the primary registrant for the transaction.', 'event_espresso'),
51
			'[PRIMARY_REGISTRANT_REGISTRATION_DATE]' => __('The date the registration occured for the primary registration.', 'event_espresso'),
52
			'[PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK]' => __('Generates a link for the given registration to edit this registration details on the frontend.', 'event_espresso'),
53
			'[PRIMARY_REGISTRANT_ANSWER_*]' => __('This is a special dynamic shortcode.  After the "*", add the exact text of an existing question, and if there is an answer for that question for this primary registrant, then it will be output in place of this shortcode.', 'event_espresso' )
54
			);
55
	}
56
57
58

core/libraries/shortcodes/EE_Recipient_Details_Shortcodes.lib.php 1 location

@@ 39-59 (lines=21) @@
36
	protected $_registrations_for_recipient;
37
38
39
	protected function _init_props() {
40
		$this->label = esc_html__( 'Recipient Details Shortcodes', 'event_espresso' );
41
		$this->description = esc_html__( 'All shortcodes specific to recipient registration data', 'event_espresso' );
42
		$this->_shortcodes = array(
43
			'[RECIPIENT_FNAME]' => esc_html__( 'Parses to the first name of the recipient for the message.', 'event_espresso' ),
44
			'[RECIPIENT_LNAME]' => esc_html__( 'Parses to the last name of the recipient for the message.', 'event_espresso' ),
45
			'[RECIPIENT_EMAIL]' => esc_html__( 'Parses to the email address of the recipient for the message.', 'event_espresso' ),
46
			'[RECIPIENT_REGISTRATION_ID]' => esc_html__( 'Parses to the registration ID of the recipient for the message.', 'event_espresso' ),
47
			'[RECIPIENT_REGISTRATION_CODE]' => esc_html__( 'Parses to the registration code of the recipient for the message.', 'event_espresso' ),
48
			'[RECIPIENT_EDIT_REGISTRATION_LINK]' => esc_html__( 'Parses to a link for frontend editing of the registration for the recipient.', 'event_espresso' ),
49
			'[RECIPIENT_PHONE_NUMBER]' => esc_html__( 'The Phone Number for the recipient of the message.', 'event_espresso' ),
50
			'[RECIPIENT_ADDRESS]' => esc_html__( 'The Address for the recipient of the message.', 'event_espresso' ),
51
			'[RECIPIENT_ADDRESS2]' => esc_html__( 'Whatever was in the address 2 field for the recipient of the message.', 'event_espresso' ),
52
			'[RECIPIENT_CITY]' => esc_html__( 'The city for the recipient of the message.', 'event_espresso' ),
53
			'[RECIPIENT_ZIP_PC]' => esc_html__( 'The ZIP (or Postal) Code for the recipient of the message.', 'event_espresso' ),
54
			'[RECIPIENT_ADDRESS_STATE]' => esc_html__( 'The state/province for the recipient of the message.', 'event_espresso' ),
55
			'[RECIPIENT_COUNTRY]' => esc_html__( 'The country for the recipient of the message.', 'event_espresso' ),
56
			'[RECIPIENT_ANSWER_*]' => esc_html__( 'This is a special dynamic shortcode.  After the "*", add the exact text of an existing question, and if there is an answer for that question for this recipient, then it will be output in place of this shortcode.', 'event_espresso' ),
57
			'[RECIPIENT_TOTAL_AMOUNT_PAID]' => esc_html__( 'If a single registration related to the recipient is available, that is used to retrieve the total amount that has been paid for this recipient.  Otherwise the value of 0 is printed.', 'event_espresso' )
58
			);
59
	}
60
61
62

core/libraries/shortcodes/EE_Venue_Shortcodes.lib.php 1 location

@@ 30-57 (lines=28) @@
27
    /**
28
     * Initialize properties
29
     */
30
    protected function _init_props()
31
    {
32
        $this->label       = esc_html__('Venue Shortcodes', 'event_espresso');
33
        $this->description = esc_html__('All shortcodes specific to venue related data', 'event_espresso');
34
        $this->_shortcodes = array(
35
            '[VENUE_TITLE]'             => esc_html__('The title for the event venue', 'event_espresso'),
36
            '[VENUE_DESCRIPTION]'       => esc_html__('The description for the event venue', 'event_espresso'),
37
            '[VENUE_URL]'               => esc_html__('A url to a webpage for the venue', 'event_espresso'),
38
            '[VENUE_IMAGE]'             => esc_html__('An image representing the event venue', 'event_espresso'),
39
            '[VENUE_PHONE]'             => esc_html__('The phone number for the venue', 'event_espresso'),
40
            '[VENUE_ADDRESS]'           => esc_html__('The address for the venue', 'event_espresso'),
41
            '[VENUE_ADDRESS2]'          => esc_html__('Address 2 for the venue', 'event_espresso'),
42
            '[VENUE_CITY]'              => esc_html__('The city the venue is in', 'event_espresso'),
43
            '[VENUE_STATE]'             => esc_html__('The state the venue is located in', 'event_espresso'),
44
            '[VENUE_COUNTRY]'           => esc_html__('The country the venue is located in', 'event_espresso'),
45
            '[VENUE_FORMATTED_ADDRESS]' => esc_html__(
46
                'This just outputs the venue address in a semantic address format.',
47
                'event_espresso'
48
            ),
49
            '[VENUE_ZIP]'               => esc_html__('The zip code for the venue address', 'event_espresso'),
50
            '[GOOGLE_MAP_URL]'          => esc_html__(
51
                'URL for the google map associated with the venue.',
52
                'event_espresso'
53
            ),
54
            '[GOOGLE_MAP_LINK]'         => esc_html__('Link to a google map for the venue', 'event_espresso'),
55
            '[GOOGLE_MAP_IMAGE]'        => esc_html__('Google map for venue wrapped in image tags', 'event_espresso'),
56
        );
57
    }
58
59
60
    /**