Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/singular.php
 <?php
/**
 * The template for displaying all single posts and attachments
 *
 * @package Apper WordPress theme
 */

get_header();

//get theme settings
$settings = acmthemes_settings();

//get post id
$post_id = acmthemes_post_id();

//get post format
$get_post_format = get_post_format( $post_id );

//get date format
$blog_date_format = get_option('date_format');

?>

	<?php do_action( 'before_content_wrap' ); ?>

	<div id="content-wrap" class="main-content-wrap blog-wrap blog-single-wrap container clr">

		<?php do_action( 'before_primary' ); ?>

		<div id="primary" class="<?php echo acmthemes_singular_content_area_class(); ?> clr">

			<?php do_action( 'before_content' ); ?>

			<div id="content" class="site-content clr">

				<?php do_action( 'before_content_inner' ); ?>

        <?php while ( have_posts() ) : the_post(); ?>

            <?php do_action( 'before_single_article' ); ?>

            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

              <header class="entry-header">

                <span class="post-categories">
        					<?php
        					$categories = get_the_category();
        					if ( ! empty( $categories ) ) {
        						 echo '<a href="' . esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>';
        					}
        					?>
        				</span>

                <span class="post-meta">
                  <?php if( ! empty( get_the_date() ) ) { ?> <span class="post-meta-sep">|</span> <span class="post-date"><?php echo get_the_date(); ?></span> <?php } ?>
                </span>

                <?php
                  if( $get_post_format != 'quote' ) :
                      if ( is_single() ) :
                        the_title( '<h1 class="entry-title">', '</h1>' );
                      else :
                        the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
                      endif;
                  endif;
                      ?>

                </header><!-- .entry-header -->

                <?php if( has_post_thumbnail() ) : ?>
                <div class="featured-media">
                  <div class="featured-image">
                <?php
                    the_post_thumbnail('full', array('class' => 'img-responsive post-full-image post-thumbnail'));
                ?>
                  </div>
                </div>
              <?php endif; ?>

                <div class="entry-content clr">
                    <div class="post-content">
                      <?php
                         the_content();
                          wp_link_pages( array(
                                  'before'      => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'apper' ) . '</span>',
                                  'after'       => '</div>',
                                  'link_before' => '<span>',
                                  'link_after'  => '</span>',
                                  'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'apper' ) . ' </span>%',
                                  'separator'   => '<span class="screen-reader-text">, </span>',
                          ) );
                        ?>
                    </div>
                </div><!-- .entry-content -->

                <?php if(!is_attachment()) { ?>
                <footer class="entry-footer clr">

                  <div class="adjac-posts border-top clr">
                    <div class="prev-post-link">
                      <?php acmthemes_prev_post(true); //if true post title will be shown ?>
                    </div>
                    <div class="next-post-link">
                      <?php acmthemes_next_post(true); //if true post title will be shown ?>
                    </div>
                  </div>
                </footer>
              <?php } ?>


            </article><!-- #post-## -->

            <?php do_action( 'after_single_article' ); ?>

				    <?php do_action( 'after_content_inner' ); ?>

			</div><!-- #content -->

			<?php do_action( 'after_content' ); ?>

		</div><!-- #primary -->

    <?php get_sidebar(); ?>

		<?php do_action( 'after_single_sidebar' ); ?>

	</div><!-- #content-wrap -->

  <?php
  // If comments are open or we have at least one comment, load up the comment template
  if ( comments_open() || '0' != get_comments_number() )
          comments_template();
  ?>
  <?php endwhile; // end of the loop. ?>

  <?php get_template_part( 'partials/single/related-posts' ); ?>

	<?php do_action( 'after_content_wrap' ); ?>

<?php get_footer(); ?>

Spamworldpro Mini