Skip to content

Commit

Permalink
WordCamp Docs: Rename speaker fields from "attendee" to "speaker".
Browse files Browse the repository at this point in the history
This template was copied and pasted from the attendee template, and the fields were not updated at the time.

See #3199
Props casiepa, grapplerulrich

git-svn-id: http://meta.svn.wordpress.org/sites/trunk/wordcamp.org@6053 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
iandunn committed Oct 25, 2017
1 parent 6444539 commit a8d07f5
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
class WordCamp_Docs_Template_Speaker_Visa implements WordCamp_Docs_Template {
public function form( $data ) {
$data = wp_parse_args( $data, array(
'attendee_first_name' => '',
'attendee_last_name' => '',
'speaker_first_name' => '',
'speaker_last_name' => '',
'country_of_residency' => '',
'passport_number' => '',

Expand Down Expand Up @@ -42,12 +42,16 @@ public function form( $data ) {
}
</style>

<h2>
<?php _e( 'Speaker Visa Letter', 'wordcamporg' ); ?>
</h2>

<div class="wcorg-docs-form">
<label><?php _e( 'Speaker First Name:', 'wordcamporg' ); ?></label>
<input name="attendee_first_name" value="<?php echo esc_attr( $data['attendee_first_name'] ); ?>" />
<input name="speaker_first_name" value="<?php echo esc_attr( $data['speaker_first_name'] ); ?>" />

<label><?php _e( 'Speaker Last Name:', 'wordcamporg' ); ?></label>
<input name="attendee_last_name" value="<?php echo esc_attr( $data['attendee_last_name'] ); ?>" />
<input name="speaker_last_name" value="<?php echo esc_attr( $data['speaker_last_name'] ); ?>" />

<label><?php _e( 'Country of Residency:', 'wordcamporg' ); ?></label>
<input name="country_of_residency" value="<?php echo esc_attr( $data['country_of_residency'] ); ?>" />
Expand Down Expand Up @@ -163,15 +167,15 @@ public function render( $data ) {

<p>To Whom It May Concern:</p>

<p>This letter is to confirm that <?php echo esc_html( $data['attendee_first_name'] ); ?> <?php echo esc_html( $data['attendee_last_name'] ); ?>
<p>This letter is to confirm that <?php echo esc_html( $data['speaker_first_name'] ); ?> <?php echo esc_html( $data['speaker_last_name'] ); ?>
<?php echo esc_html( $data['country_of_residency'] ); ?> passport number <?php echo esc_html( $data['passport_number'] ); ?>,
has been invited to speak at <?php echo esc_html( $data['wordcamp_name'] ); ?>, a community-organized event focusing on WordPress
development and technology.</p>

<p>WordPress is a web software you can use to create a beautiful website or blog. The core software is built by hundreds of community
volunteers. The mission of the WordPress open source project is to democratize publishing through Open Source, GPL software.</p>

<p>To fulfill speaking duties at <?php echo esc_html( $data['wordcamp_name'] ); ?>, <?php echo esc_html( $data['attendee_first_name'] ); ?>
<p>To fulfill speaking duties at <?php echo esc_html( $data['wordcamp_name'] ); ?>, <?php echo esc_html( $data['speaker_first_name'] ); ?>
will need to be in <?php echo esc_html( $data['wordcamp_location'] ); ?> from <?php echo esc_html( $data['wordcamp_date_start'] ); ?>
through <?php echo esc_html( $data['wordcamp_date_end'] ); ?>.

Expand All @@ -196,8 +200,8 @@ public function render( $data ) {
public function sanitize( $input ) {
$output = array();
foreach ( array(
'attendee_first_name',
'attendee_last_name',
'speaker_first_name',
'speaker_last_name',
'country_of_residency',
'passport_number',
'wordcamp_name',
Expand Down

0 comments on commit a8d07f5

Please sign in to comment.