Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/single/thumbnail-image.php
Назад
<?php /** * The template for displaying image post format */ if( !function_exists('musicnight_fetch_post_format_image') ){ function musicnight_fetch_post_format_image(){ $post_format_data = ''; $musicnight_post_settings = ''; $content = trim(get_the_content(esc_html__( 'Read More', 'music-night' ))); if(preg_match('#^<a.+<img.+/></a>|^<img.+/>#', $content, $match)){ $post_format_data = $match[0]; $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else if(preg_match('#^https?://\S+#', $content, $match)){ $post_format_data = musicnight_get_image($match[0], 'full', true); $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else{ $musicnight_post_settings['content'] = $content; } if ( !empty($post_format_data) ){ echo '<div class="kode-blog-thumbnail">'; echo esc_attr($post_format_data); if( !is_single() && is_sticky() ){ echo '<div class="kode-sticky-banner">'; echo '<i class="icon-bullhorn" ></i>'; echo esc_html__('Sticky Post', 'music-night'); echo '</div>'; } echo '</div>'; echo '<figcaption><a href="'.esc_url(get_permalink()).'"><i class="fa fa-plus"></i></a></figcaption>'; } } } musicnight_fetch_post_format_image();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка