Changeset 20181 for trunk/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 03/15/2012 05:30:11 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-customize-setting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-setting.php
r20179 r20181 337 337 case 'text': 338 338 ?> 339 <label><?php echo esc_html( $this->label ); ?><br/> 339 <label> 340 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 340 341 <input type="text" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); ?> /> 341 342 </label> … … 345 346 ?> 346 347 <label> 347 <span ><?php echo esc_html( $this->label ); ?></span>348 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 348 349 <div class="color-picker"> 349 350 <input type="hidden" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); ?> /> … … 365 366 ?> 366 367 <label> 367 < input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); checked( $this->value() ); ?> />368 < ?php echo esc_html( $this->label ); ?>368 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 369 <input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); checked( $this->value() ); ?> class="customize-control-content" /> 369 370 </label> 370 371 <?php … … 374 375 return; 375 376 376 echo esc_html( $this->label ) . '<br/>'; 377 ?> 378 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 379 <?php 377 380 foreach ( $this->choices as $value => $label ) : 378 381 ?> … … 389 392 390 393 ?> 391 <label><?php echo esc_html( $this->label ); ?><br/> 392 <select <?php $this->name(); ?>> 393 <?php 394 foreach ( $this->choices as $value => $label ) 395 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>'; 396 ?> 397 </select> 394 <label> 395 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 396 <select <?php $this->name(); ?> class="customize-control-content"> 397 <?php 398 foreach ( $this->choices as $value => $label ) 399 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>'; 400 ?> 401 </select> 402 </label> 398 403 <?php 399 404 break; 400 405 case 'upload': 401 406 ?> 402 <label><?php echo esc_html( $this->label ); ?><br/> 403 <input type="hidden" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); ?> /> 404 <a href="#" class="button-secondary upload"><?php _e( 'Upload' ); ?></a> 405 <a href="#" class="remove"><?php _e( 'Remove' ); ?></a> 407 <label> 408 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 409 <div> 410 <input type="hidden" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->name(); ?> /> 411 <a href="#" class="button-secondary upload"><?php _e( 'Upload' ); ?></a> 412 <a href="#" class="remove"><?php _e( 'Remove' ); ?></a> 413 </div> 406 414 </label> 407 415 <?php
Note: See TracChangeset
for help on using the changeset viewer.