media_markup( 'audio' ); } /** * Video markup. */ public function video_markup() { $this->media_markup( 'video' ); } /** * Media markup. * * @param string $markup The type markup. */ public function media_markup( $markup ) { $url = get_post_meta( get_the_ID(), 'powerkit_post_format_' . $markup, true ); ?>
wp_oembed_get( $url ); // XSS. ?>
wp_oembed_get( $url ); // XSS. die(); } /** * Get oembed. * * @param string $url The url media. * @param int $width The width media. * @param int $height The height media. */ public function wp_oembed_get( $url = '', $width = 640, $height = 390 ) { $embed = @wp_oembed_get( $url, array( 'width' => $width, 'height' => $height, ) ); return $embed; } /** * Gallery markup. */ public function gallery_markup() { $attachments = get_post_meta( get_the_ID(), 'powerkit_post_format_gallery', true ); ?>
thumbnail
<?php echo esc_attr( $attachment['alt'] ); ?>

admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'nonce' ), ) ); } } }