array( 'name' => 'video_url', 'type' => 'textarea', 'title' => __( 'Embed Video, Quotes', 'andrina-lite' ), 'description' => __( 'Enter the video Embed or quotes according to post format selected', 'andrina-lite' ), 'id' => 'video_url' ), ); $image_meta = array( 'Image1' => array( 'name' => '_meta_audio', 'title' => __( 'Upload Your Own Audio of mp3', 'andrina-lite' ), 'description' => __( 'Upload Your Own Audio of mp3', 'andrina-lite' ), 'id' =>'andrina-lite' . '_meta_image1', 'upload_id' =>'andrina-lite' . '_meta_upload_image_button1', 'type' => 'upload' ) ); /** * Function for create meta box * @global string $key */ function andrina_create_meta_box() { global $key; if ( function_exists( 'add_meta_box' ) ) add_meta_box( 'meta-boxes', __( 'Enter Video Embed Code or Quotes', 'andrina-lite' ), 'andrina_meta_box', 'post', 'normal', 'high' ); add_meta_box( 'image-meta-boxes', __( 'Upload Your Own Audio', 'andrina-lite' ), 'andrina_image_meta', 'post', 'normal', 'high' ); } /** * Function for creating UI Meta box * @global type $post * @global array $meta_boxes * @global string $key */ function andrina_meta_box() { global $post, $meta_boxes, $key; ?>
' . __( 'Post is not yet published', 'andrina-lite' ) . '
'; else : $date = $data; if ( !$data ) { // Date is 30 days after publish date (this is for backwards compatibility) $date = strtotime( '+30 day', strtotime( $post->post_date ) ); } ?>