HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/.Trash/khotel/public_html/wp-content/themes/atec/single.php
<?php
get_header(); ?>
    <?php if (have_posts()) :
        // Queue the first post.
        the_post();
?>
   <div class="container-fluid page-top-header">
    <div class="page-top-header-box">
      <div class="row">
          <div class="container-fluid page-top-header">
            <div class="row">
            <img src="<?php echo get_stylesheet_directory_uri() ?>/images/header-img-default.jpg" alt="K Hotel" />
        </div>
         </div>
</div>
</div>
        <div class="container">
            <div class="breadcrumb-text">
                <span>The ultimate luxury</span>
                <h1 class="page-header-title">News</h1>
            </div>
            <div class="breadcrumb-top">
              <ul class="breadcrumb-nav">
                <li><a href="<?php echo home_url(); ?>">Home</a></li>
                    <li>|</li>
                    <li>News</li>
                </ul>
            </div>
        </div>



<div class="container">
    <div class="row content">
        <div class="col-md-12 single-news">
                  <?php
        // Rewind the loop back
        rewind_posts();
        ?>
                  <?php while (have_posts()) : the_post(); ?>
            <?php
             //Get featured image
                if (has_post_thumbnail( $post->ID )) $feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'image-blog' ); 

                //Get feaured image ALT text
                $post_img_id = get_post_thumbnail_id($post->ID);
                $alt_feat_text = get_post_meta( $post_img_id, '_wp_attachment_image_alt', true );
                if(empty( $alt_feat_text )){
                    $alt_feat_text = get_the_title();
                } 
                ?>
                <?php 
                        if (has_post_thumbnail( $post->ID )) { 
                        echo '<img src="'.$feat_image[0].'" alt="'.$alt_feat_text.'" />'; ?>
                    <?php } else { ?>
                        <img src="<?php echo get_stylesheet_directory_uri() ?>/images/blog-placeholder-415-310.jpg" alt="<?php the_title(); ?>" />
                    <?php } ?>
                <h4><?php echo the_title() ?></h4>
            <?php the_content(); ?>
        </div>
    </div>
</div>
<?php endwhile; // end of the loop. ?>
  <?php endif; ?>
    
<?php get_footer(); ?>