Making WordPress.org


Ignore:
Timestamp:
02/25/2016 12:46:24 AM (9 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Mark most Sponsor fields as required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/views/sponsors/metabox-sponsor-info.php

    r2458 r2602  
    1515            name="_wcpt_sponsor_company_name"
    1616            value="<?php echo esc_attr( $company_name ); ?>"
    17         />
     17            required
     18        />
     19
     20        <?php $this->render_form_field_required_indicator(); ?>
    1821    </li>
    1922
     
    2932            name="_wcpt_sponsor_website"
    3033            value="<?php echo esc_url( $website ); ?>"
    31         />
     34            required
     35        />
     36
     37        <?php $this->render_form_field_required_indicator(); ?>
    3238    </li>
    3339
     
    4652        />
    4753
    48         &nbsp; <span class="description"><?php _e( '(required)', 'wordcamporg' ); ?></span>
     54        <?php $this->render_form_field_required_indicator(); ?>
    4955    </li>
    5056
     
    6369        />
    6470
    65         &nbsp; <span class="description"><?php _e( '(required)', 'wordcamporg' ); ?></span>
     71        <?php $this->render_form_field_required_indicator(); ?>
    6672    </li>
    6773
     
    8086        />
    8187
    82         &nbsp; <span class="description"><?php _e( '(required)', 'wordcamporg' ); ?></span>
     88        <?php $this->render_form_field_required_indicator(); ?>
    8389    </li>
    8490
     
    94100            name="_wcpt_sponsor_phone_number"
    95101            value="<?php echo esc_attr( $phone_number ); ?>"
    96         />
     102            required
     103        />
     104
     105        <?php $this->render_form_field_required_indicator(); ?>
    97106    </li>
    98107</ul>
     
    114123            name="_wcpt_sponsor_street_address1"
    115124            value="<?php echo esc_attr( $street_address1 ); ?>"
    116         />
     125            required
     126        />
     127
     128        <?php $this->render_form_field_required_indicator(); ?>
    117129    </li>
    118130
     
    142154            name="_wcpt_sponsor_city"
    143155            value="<?php echo esc_attr( $city ); ?>"
    144         />
     156            required
     157        />
     158
     159        <?php $this->render_form_field_required_indicator(); ?>
    145160    </li>
    146161
     
    156171            name="_wcpt_sponsor_state"
    157172            value="<?php echo esc_attr( $state ); ?>"
    158         />
     173            required
     174        />
     175
     176        <?php $this->render_form_field_required_indicator(); ?>
    159177    </li>
    160178
     
    170188            name="_wcpt_sponsor_zip_code"
    171189            value="<?php echo esc_attr( $zip_code ); ?>"
    172         />
     190            required
     191        />
     192
     193        <?php $this->render_form_field_required_indicator(); ?>
    173194    </li>
    174195
     
    178199        </label>
    179200
     201        <?php // todo add selected attribute to select and change first option value to empty string ?>
    180202        <select id="_wcpt_sponsor_country" name="_wcpt_sponsor_country">
    181203            <option value="null" <?php selected( $country, 'null' ); ?>>
     
    189211            <?php endforeach; ?>
    190212        </select>
     213
     214        <?php $this->render_form_field_required_indicator(); ?>
    191215    </li>
    192216</ul>
     217
     218<span class="wcpt-form-required">
     219    <?php _e( '* required', 'wordcamporg' ); ?>
     220</span>
Note: See TracChangeset for help on using the changeset viewer.