Changeset 1603
- Timestamp:
- 05/20/2015 06:03:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php
r169 r1603 112 112 * Outputs the text field input and surrounding markup. 113 113 * 114 * @param string $field_name The field name/key 115 * @param string $field_label The label text 116 * @param boolean $required Is the field a required input? 117 * @param string $type The HTML5 input type. Default is 'text'. 118 * @return string 119 */ 120 function jobswp_text_field( $field_name, $field_label, $required = false, $type = 'text' ) { 114 * @param string $field_name The field name/key. 115 * @param string $field_label The label text. 116 * @param bool $required Is the field a required input? Default false. 117 * @param string $type The HTML5 input type. Default 'text'. 118 * @param string $help_text Help text for the input. Default ''. 119 * @return string 120 */ 121 function jobswp_text_field( $field_name, $field_label, $required = false, $type = 'text', $help_text = '' ) { 121 122 $field_name = esc_attr( $field_name ); 122 123 $field_label = esc_html( $field_label ); … … 136 137 ( $required ? ' required' : '' ) . 137 138 " />\n"; 139 140 if ( $help_text ) { 141 echo '<div class="job-help-text">' . $help_text . "</div>\n"; 142 } 143 138 144 echo "</div>\n"; 139 145 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)