Sid Gifari File Manager
🏠 Root
/
home2
/
iuywvcmy
/
public_html
/
argonautisbc
/
wp-content
/
themes
/
splash
/
Editing: single.php
<?php get_header();?> <?php $post_types = splash_sportspress_side_posts(); $post_type = get_post_type(); ?> <?php if(!empty($post_types[$post_type])): $current = $post_types[$post_type]; ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="<?php echo esc_attr($current['class']) ?>"> <div class="container"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part('partials/global/sportspress/' . $current['template']); endwhile; endif; ?> </div> </div> </div> <?php else: ?> <!--SINGLE POST--> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="stm-single-post stm-default-page <?php if(splash_is_layout('magazine_one')) echo 'stm-single-post-magazine'?>"> <div class="container"> <?php if ( have_posts() ) : if(splash_is_layout('magazine_one') || splash_is_layout('magazine_two') || splash_is_layout('soccer_news')) { $template = 'partials/global/post-content-magazine'; } elseif (splash_is_layout('esport')){ $template = 'partials/global/post-content-esport'; } else { $template = 'partials/global/post-content'; } while ( have_posts() ) : the_post(); get_template_part($template); endwhile; endif; ?> </div> </div> </div> <?php endif; ?> <?php get_footer();?>
Save
Cancel