Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/single.php
Назад
<?php get_header(); ?> <div class="content"> <div class="container"> <div class="row"> <?php $musicnight_theme_option = get_option('musicnight_admin_option', array()); $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 ); } $musicnight_post_option['sidebar'] = 'default-sidebar'; if( empty($musicnight_post_option['sidebar']) || $musicnight_post_option['sidebar'] == 'default-sidebar' ){ $musicnight_sidebar = array( 'type'=>$musicnight_theme_option['post-sidebar-template'], 'left-sidebar'=>$musicnight_theme_option['post-sidebar-left'], 'right-sidebar'=>$musicnight_theme_option['post-sidebar-right'] ); }else{ $musicnight_sidebar = array( 'type'=>$musicnight_post_option['sidebar'], 'left-sidebar'=>$musicnight_post_option['left-sidebar'], 'right-sidebar'=>$musicnight_post_option['right-sidebar'] ); } $musicnight_icon = ''; if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'audio'){ $musicnight_icon = 'fa fa-bullhorn'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'video'){ $musicnight_icon = 'fa fa-video-camera'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'slider'){ $musicnight_icon = 'fa fa-television'; }else{ $musicnight_icon = 'fa fa-picture-o'; } $musicnight_theme_option['single-post-author'] = 'enable'; $format = get_post_format( get_the_ID() ); $musicnight_thumbnail_id = get_post_thumbnail_id( get_the_ID() ); $musicnight_thumbnail = wp_get_attachment_image_src( $musicnight_thumbnail_id , 'full' ); $musicnight_sidebar = musicnight_get_sidebar_class($musicnight_sidebar); if(isset($musicnight_sidebar['center']) && $musicnight_sidebar['center'] == 'col-md-12'){ $musicnight_sidebar['center'] = 'col-md-12 wrapper-margin-auto'; } ?> <div class="kode-center-content-tf kode-content-area col-sm-12 col-xs-12 <?php echo esc_attr($musicnight_sidebar['center'])?>"> <?php while ( have_posts() ){ the_post();global $post; ?> <div class="clearfix clear"></div> <!--church blog detail text end--> <div class="kf_blog_detail"> <div id="post-<?php the_ID(); ?>" <?php post_class('blog-listing-night'); ?>> <article> <div class="detail"> <?php $musicnight_get_image = musicnight_get_image(get_post_thumbnail_id(), 'full', true); if(!empty($musicnight_thumbnail)){ $lawbase_class = ''; if( has_post_thumbnail() ){ ?> <figure> <?php get_template_part('single/thumbnail', get_post_format()); ?> </figure> <?php } // Has Post Thumbnail?> <?php } // Find Thumbnail ID?> <div class="text"> <ul class="church_meta_date meta_2 meta_3 kode-meta-info-complete"> <?php if( is_sticky(get_the_ID()) ){ ?> <li class="blog-info blog-date"><i class="fa fa-bullhorn"></i> <a href="#"> <?php esc_attr_e('Featured','music-night');?></a></li> <?php echo musicnight_get_blog_info(array('date'), false, '','li');?> <?php }else{ ?> <?php echo musicnight_get_blog_info(array('date'), false, '','li');?> <?php }?> <?php echo musicnight_get_blog_info(array('author'), false, '','li');?> <?php echo musicnight_get_blog_info(array('views'), false, '','li');?> </ul> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'music-night' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> </div> </div> </article> </div> </div> <div class="ch_share_meta"> <div class="pull-left"> <?php echo musicnight_get_blog_info(array('category'), false, '','div');?> </div> <div class="ch_social_share pull-right"> <?php echo musicnight_get_social_shares('social_meta'); ?> </div> </div> <div class="clearfix clear"></div> <?php if(get_the_author_meta('description') <> ''){ ?> <!-- Blog Tag Wrap Start --> <div class="kode-author-wrap"> <!-- Kode Comment Form Start --> <div class="kode-author"> <figure> <?php echo get_avatar(get_the_author_meta('ID'), 90); ?> </figure> <div class="kode-author-content"> <div class="kode-author-head"> <h5><?php the_author_posts_link(); ?></h5> </div> <?php if(get_the_author_meta('description') <> ''){ ?> <p><?php echo esc_attr(get_the_author_meta('description')); ?></p> <?php }?> </div> </div> <!-- Kode Comment Form End --> </div> <?php }?> <div class="clearfix clear"></div> <div class="clearfix clear"></div> <?php comments_template() ?> <?php }?> <div class="margin-top-30"> <?php musicnight_related_posts($post->ID);?> </div> </div> <?php if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'left-sidebar'){ ?> <div class="pull-left kode-left-sidebar-area responsive-991-width <?php echo esc_attr($musicnight_sidebar['left'])?>"> <?php get_sidebar('left'); ?> </div> <?php } if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'right-sidebar' && $musicnight_sidebar['right'] != ''){ ?> <div class="pull-right kode-right-sidebar-area responsive-991-width <?php echo esc_attr($musicnight_sidebar['right'])?>"> <?php get_sidebar('right'); ?> </div> <?php } ?> </div><!-- Row --> <div class="kode-post-nav"> <?php previous_post_link('<div class="kode-previous thcolorhover left-nav inner-post">%link</div>', ' <span class="prev-wrap"><i class="fa fa-long-arrow-left"></i> Previous <h6>%title</h6></span>', true); ?> <?php next_post_link('<div class="kode-next thcolorhover next-nav inner-post">%link</div>', '<span class="nxt-wrap">Next <i class="fa fa-long-arrow-right"></i> <h6>%title</h6></span>', true); ?> </div> </div><!-- Container --> </div><!-- content --> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка