Making WordPress.org


Ignore:
Timestamp:
10/25/2017 02:04:18 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Docs: Rename speaker fields from "attendee" to "speaker".

This template was copied and pasted from the attendee template, and the fields were not updated at the time.

See #3199
Props casiepa, grapplerulrich

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-docs/templates/speaker-visa.php

    r6036 r6053  
    66    public function form( $data ) {
    77        $data = wp_parse_args( $data, array(
    8             'attendee_first_name' => '',
    9             'attendee_last_name' => '',
     8            'speaker_first_name'  => '',
     9            'speaker_last_name'    => '',
    1010            'country_of_residency' => '',
    1111            'passport_number' => '',
     
    4343        </style>
    4444
     45        <h2>
     46            <?php _e( 'Speaker Visa Letter', 'wordcamporg' ); ?>
     47        </h2>
     48
    4549        <div class="wcorg-docs-form">
    4650            <label><?php _e( 'Speaker First Name:', 'wordcamporg' ); ?></label>
    47             <input name="attendee_first_name" value="<?php echo esc_attr( $data['attendee_first_name'] ); ?>" />
     51            <input name="speaker_first_name" value="<?php echo esc_attr( $data['speaker_first_name'] ); ?>" />
    4852
    4953            <label><?php _e( 'Speaker Last Name:', 'wordcamporg' ); ?></label>
    50             <input name="attendee_last_name" value="<?php echo esc_attr( $data['attendee_last_name'] ); ?>" />
     54            <input name="speaker_last_name" value="<?php echo esc_attr( $data['speaker_last_name'] ); ?>" />
    5155
    5256            <label><?php _e( 'Country of Residency:', 'wordcamporg' ); ?></label>
     
    164168        <p>To Whom It May Concern:</p>
    165169
    166         <p>This letter is to confirm that <?php echo esc_html( $data['attendee_first_name'] ); ?> <?php echo esc_html( $data['attendee_last_name'] ); ?>
     170        <p>This letter is to confirm that <?php echo esc_html( $data['speaker_first_name'] ); ?> <?php echo esc_html( $data['speaker_last_name'] ); ?>
    167171        <?php echo esc_html( $data['country_of_residency'] ); ?> passport number <?php echo esc_html( $data['passport_number'] ); ?>,
    168172        has been invited to speak at <?php echo esc_html( $data['wordcamp_name'] ); ?>, a community-organized event focusing on WordPress
     
    172176        volunteers. The mission of the WordPress open source project is to democratize publishing through Open Source, GPL software.</p>
    173177
    174         <p>To fulfill speaking duties at <?php echo esc_html( $data['wordcamp_name'] ); ?>, <?php echo esc_html( $data['attendee_first_name'] ); ?>
     178        <p>To fulfill speaking duties at <?php echo esc_html( $data['wordcamp_name'] ); ?>, <?php echo esc_html( $data['speaker_first_name'] ); ?>
    175179        will need to be in <?php echo esc_html( $data['wordcamp_location'] ); ?> from <?php echo esc_html( $data['wordcamp_date_start'] ); ?>
    176180        through <?php echo esc_html( $data['wordcamp_date_end'] ); ?>.
     
    197201        $output = array();
    198202        foreach ( array(
    199             'attendee_first_name',
    200             'attendee_last_name',
     203            'speaker_first_name',
     204            'speaker_last_name',
    201205            'country_of_residency',
    202206            'passport_number',
Note: See TracChangeset for help on using the changeset viewer.