���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/righteousmag.com/wp-content__a986334/themes/caster/template-parts/blog/content-video.php
���ѧ٧ѧ�
<?php /** * Template part for displaying video posts * */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post-wrap"> <?php $video = false; $video_url = false; $video_url = caster_get_post_meta( 'post_video_url' ); if( empty( $video_url ) ) { $content = apply_filters( 'the_content', get_the_content() ); // Only get video from the content if a playlist isn't present. if ( false === strpos( $content, 'wp-playlist-script' ) ) { $video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) ); } } ?> <?php if ( !post_password_required() ) { ?> <div class="post-media"> <?php if ( '' !== get_the_post_thumbnail() && empty( $video_url ) && empty( $video ) ) { caster_get_post_thumbnail(); } ?> <?php if( ! empty( $video_url ) ) { echo '<div class="entry-video">'; echo wp_oembed_get( esc_url( $video_url ) ); echo '</div>'; } elseif ( ! is_single() && ! empty( $video ) ) { // If not a single post, highlight the video file. foreach ( $video as $video_html ) { echo '<div class="entry-video">'; echo wp_kses( $video_html, array( 'iframe' => array( 'width' => array(), 'height' => array(), 'src' => array(), 'frameborder' => array(), 'allow' => array(), 'allowfullscreen' => array() ) ) ); echo '</div>'; } } ?> </div> <?php } ?> <div class="post-content"> <header class="entry-header"> <?php echo '<div class="entry-meta">'; caster_posted_on(); echo '</div><!-- .entry-meta -->'; if ( is_single() ) { the_title( '<h1 class="entry-title">', '</h1>' ); } else { the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); } ?> </header><!-- .entry-header --> <div class="entry-content"> <?php if ( ! is_single() && empty( $video ) && has_excerpt() ) { the_excerpt(); caster_excerpt_more(); } elseif ( is_single() || empty( $video ) ) { the_content(); wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'caster' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); } ?> </div><!-- .entry-content --> <?php if ( is_single() ) { caster_entry_footer(); } ?> </div> </div> </article><!-- #post-## -->
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�