Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/single/thumbnail-gallery.php
Назад
<?php /** * The template for displaying video post format */ if( !function_exists('musicnight_fetch_post_format_gallery') ){ function musicnight_fetch_post_format_gallery(){ global $post, $musicnight_post_settings,$musicnight_theme_option; $musicnight_theme_option = get_option('musicnight_admin_option', array()); $post_format_data = ''; $content = trim($post->post_content); if(preg_match('#\[gallery[^\]]+]#', $content, $match)){ if( is_single() ){ $post_format_data = do_shortcode(get_post_gallery()); }else{ preg_match('#\[gallery.+columns\s?=\s?\"([^\"]+).+]#', $match[0], $match2); if(empty($match2)){ preg_match('#\[gallery.+ids\s?=\s?\"([^\"]+).+]#', $match[0], $match2); } if(is_numeric($match2[1])){ $post_format_data = ''; }else{ $post_format_data = musicnight_get_bx_slider(explode(',', $match2[1]), array('size'=>$musicnight_post_settings['thumbnail-size'])); } } $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 kode-gallery">' . $post_format_data . '</div>'; }else{ $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta(get_the_ID(), 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['musicforest-post-thumbnail-size']: $musicnight_post_settings['thumbnail-size']; // Get Slider Images $musicnight_post_option['slider'] = (empty($musicnight_post_option['slider']))? ' ': $musicnight_post_option['slider']; $raw_slider_data = musicnight_decode_stopbackslashes($musicnight_post_option['slider']); $filter_slider_data = json_decode(musicnight_stripslashes($raw_slider_data), true); if(isset($filter_slider_data) && $filter_slider_data != ''){ echo '<div class="kode-blog-thumbnail">'; echo musicnight_get_slider( $filter_slider_data, $thumbnail_size, 'bxslider' ); echo '</div>'; } } } } musicnight_fetch_post_format_gallery();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка