REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 3.09 KB
Close
/home/jambtst2015/public_html/qasandra.com/wp-content/themes/water-news/single.php
Text
Base64
<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package National News */ get_header(); ?> <main id="primary" class="site-main"> <?php while ( have_posts() ) : the_post(); setPostViews( get_the_ID() ); get_template_part( 'template-parts/content', 'single' ); the_post_navigation( array( 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'national-news' ) . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'national-news' ) . '</span> <span class="nav-title">%title</span>', ) ); if ( is_singular( 'post' ) ) { $args = array( 'posts_per_page' => 3, 'post__not_in' => array( $post->ID ), 'orderby' => 'rand', ); $cat_content_id = get_the_category( $post->ID ); if ( ! empty( $cat_content_id ) ) { $args['cat'] = $cat_content_id[0]->term_id; } $query = new WP_Query( $args ); if ( $query->have_posts() ) : $related_title = get_theme_mod( 'national_news_related_posts_title', __( 'Related Posts', 'national-news' ) ); ?> <div class="related-posts"> <h2><?php echo esc_html( $related_title ); ?></h2> <div class="theme-archive-layout grid-layout grid-column-3"> <?php while ( $query->have_posts() ) : $query->the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post-item post-grid"> <div class="post-item-image"> <?php national_news_post_thumbnail(); ?> </div> <div class="post-item-content"> <div class="entry-cat no-bg"> <?php the_category( '', '', get_the_ID() ); ?> </div> <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?> <ul class="entry-meta"> <li class="post-author"> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo esc_html( get_the_author() ); ?></a></li> <li class="post-date"> <span class="far fa-calendar-alt"></span><?php echo esc_html( get_the_date() ); ?></li> <li class="post-comment"> <span class="far fa-comment"></span><?php echo absint( get_comments_number( get_the_ID() ) ); ?></li> </ul> <div class="post-content"> <?php the_excerpt(); ?> </div><!-- post-content --> </div> </div> </article> <?php endwhile; wp_reset_postdata(); ?> </div> </div> <?php endif; } // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; // End of the loop. ?> </main><!-- #main --> <?php if ( national_news_is_sidebar_enabled() ) { get_sidebar(); } get_footer();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 4 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
assets
DIR
-
drwxr-xr-x
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inc
DIR
-
drwxr-xr-x
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
languages
DIR
-
drwxr-xr-x
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
template-parts
DIR
-
drwxr-xr-x
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
404.php
1.08 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
archive.php
1.72 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
comments.php
2.05 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
footer.php
2.08 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
front-page.php
935 B
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
functions.php
11.28 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
header.php
6.19 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
home.php
1.82 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
1.76 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
page.php
904 B
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.txt
5.70 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
screenshot.png
5 B
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
search.php
1.41 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sidebar.php
372 B
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single.php
3.09 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style.css
97.03 KB
lrw-r--r--
2024-12-06 18:03:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).