dvadf
File manager - Edit - /home/theblueo/www/wp-content/themes/thebos/template_part/content/blog-format-content.php
Back
<?php $hl_post_format = get_post_format(); switch ($hl_post_format): case 'video': $content = apply_filters( 'the_content', get_the_content() ); $video = false; if ( false === strpos( $content, 'wp-playlist-script' ) ) { $video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) ); } if ( ! empty( $video ) ) : foreach ( $video as $video_html ) { echo '<div class="nb-blog-media">'; echo nimbus_validate_data($video_html); echo '</div>'; } endif; break; case 'audio': $content = apply_filters( 'the_content', get_the_content() ); $video = false; if ( false === strpos( $content, 'wp-playlist-script' ) ) { $video = get_media_embedded_in_content( $content, array( 'audio' ) ); } if ( ! empty( $video ) ) : foreach ( $video as $video_html ) { echo '<div class="nb-blog-media">'; echo nimbus_validate_data($video_html); echo '</div>'; } endif; break; case 'gallery': if ( get_post_gallery() ) : echo '<div class="nb-blog-media">'; echo get_post_gallery(); echo '</div>'; endif; break; default: if ( '' !== get_the_post_thumbnail() ) : echo '<div class="nb-blog-media">'; echo '<div class="post-thumbnail">'; echo '<a href="'.get_permalink().'">'; echo get_the_post_thumbnail( get_the_ID(),'nimbus-grid' ); echo '</a>'; echo '</div>'; echo '</div>'; endif; break; endswitch; ?>
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings