From 126e61395bd782ffb12ed38d86f8f694c61d36f3 Mon Sep 17 00:00:00 2001
From: Joe Dolson
Date: Sun, 3 Nov 2024 10:34:59 -0600
Subject: [PATCH] Remove caption fields; add ASL video support
---
src/wp-conference-schedule.php | 41 +++++++++++++---------------------
1 file changed, 16 insertions(+), 25 deletions(-)
diff --git a/src/wp-conference-schedule.php b/src/wp-conference-schedule.php
index d52a607..6ff210a 100644
--- a/src/wp-conference-schedule.php
+++ b/src/wp-conference-schedule.php
@@ -297,8 +297,8 @@ public function wpcs_metabox_session_info() {
$session_hours = ( $session_time ) ? gmdate( 'G', $session_time ) : $default_hours;
$session_minutes = ( $session_time ) ? gmdate( 'i', $session_time ) : $default_minutes;
}
- $session_captions = get_post_meta( $post->ID, '_wpcs_caption_url', true );
- $session_youtube = get_post_meta( $post->ID, '_wpcs_youtube_id', true );
+ $session_youtube = get_post_meta( $post->ID, '_wpcs_youtube_id', true );
+ $session_asl = get_post_meta( $post->ID, '_wpcs_asl_id', true );
wp_nonce_field( 'edit-session-info', 'wpcs-meta-session-info' );
?>
@@ -348,26 +348,9 @@ public function wpcs_metabox_session_info() {
-
-
+
+
- $language ) {
- if ( 'en' === $key ) {
- continue;
- }
- $caption = get_post_meta( $post->ID, '_wpcs_caption_url_' . $key, true );
- // translators: Current language (written in English.).
- $caption_label = sprintf( __( '%s Caption URL:', 'wpa-conference' ), $language[0] );
- ?>
-
-
-
-
-
Session Video
-