Changeset 10467
- Timestamp:
- 11/25/2020 05:27:18 AM (4 years ago)
- Location:
- sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/anon-upload-template.php
r9767 r10467 299 299 <input type="text" id="wptv_language" name="wptv_language" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_language'] ?? '' ) ); ?>" /> 300 300 </p> 301 <p> 302 <label for="wptv_date"><?php esc_html_e( 'Date Recorded' ); ?></label> 303 <input type="date" id="wptv_date" name="wptv_date" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_date'] ?? '' ) ); ?>" /> 304 </p> 301 305 302 306 <div class="cats"> … … 353 357 email = $( '#wptv_email' ), 354 358 file = $( '#wptv_file' ), 359 recorded = $( '#wptv_date' ), 355 360 honey = $( '#wptv_honey' ); 356 361 … … 405 410 }); 406 411 412 // Pre-select the date category. 413 $( '#wptv_date' ).on( 'change', function() { 414 var year = parseInt( this.value.substring( 0, 4 ) ); 415 416 // Blank the year selections. 417 $( '#category-91093 ul.children input' ).prop( 'checked', false ); 418 419 // Check the year 420 $( '#category-91093 ul.children input' ).filter( function() { 421 return parseInt( $(this).parent().text() ) === year; 422 } ).prop( 'checked', true ) 423 } ); 424 407 425 $( '#video-upload-form' ).submit( function( e ) { 408 426 var scroll = false; -
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
r9978 r10467 32 32 'wptv_email', 33 33 'wptv_language', 34 'wptv_date', 34 35 'post_category', // 'wptv_categories', 35 36 'wptv_producer_username', … … 304 305 $language = $this->sanitize_text( $_posted['wptv_language'] ); 305 306 $slides = $this->sanitize_text( $_posted['wptv_slides_url'] ); 307 $recorded = $this->sanitize_tett( $_posted['wptv_date'] ); 306 308 $ip = $_SERVER['REMOTE_ADDR']; 307 309 … … 329 331 'slides' => $slides, 330 332 'ip' => $ip, 333 'recorded' => $recorded, 331 334 ); 332 335 … … 472 475 </p> 473 476 </div> 477 478 <?php if ( !empty( $meta['recorded'] ) ) : ?> 479 <div class="row"> 480 <p class="label">Date Recorded:</p> 481 <p class="data"> 482 <input type="text" value="<?php echo esc_attr( $meta['recorded'] ); ?>"/> 483 </p> 484 </div> 485 <?php endif; ?> 474 486 475 487 <div class="row">
Note: See TracChangeset
for help on using the changeset viewer.