LLMS_Meta_Box_Video::output( object $post )
Static output class.
Description Description
Displays MetaBox Calls static class metabox_options Loops through meta-options array and displays appropriate fields based on type.
Parameters Parameters
- $post
-
(object) (Required) [WP post object]
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.video.php
public static function output( $post ) { global $post; wp_nonce_field( 'lifterlms_save_data', 'lifterlms_meta_nonce' ); $video_embed = get_post_meta( $post->ID, '_video_embed', true ); $audio_embed = get_post_meta( $post->ID, '_audio_embed', true ); ?> <table class="form-table"> <tbody> <tr> <th> <?php $label = ''; $label .= '<label for="_video_embed">' . __( 'Video Embed Code', 'lifterlms' ) . '</label> '; echo $label; ?> </th> <td> <?php $html = ''; $html .= '<input type="text" class="code" name="_video_embed" id="_video-embed" value="' . $video_embed . '"/>'; $html .= '<br /><span class="description">' . __( 'Paste the url for your Wistia, Vimeo or Youtube videos.', 'lifterlms' ) . '</span>'; echo $html; ?> </td> </tr> <tr> <th> <?php $label = ''; $label .= '<label for="_audio_embed">' . __( 'Audio Embed Code', 'lifterlms' ) . '</label> '; echo $label; ?> </th> <td> <?php $html = ''; $html .= '<input type="text" class="code" name="_audio_embed" id="_audio-embed" value="' . $audio_embed . '"/>'; $html .= '<br /><span class="description">' . __( 'Paste the embed code for your externally hosted audio.', 'lifterlms' ) . '</span>'; echo $html; ?> </td> </tr> </tbody> </table> <?php }
Expand full source code Collapse full source code View on GitHub