HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/advokat/single-portfolios.php
<?php
/**
 * @author  rs-theme
 * @since   1.0
 * @version 1.0 
 */

get_header();
global $advokat_option;
?>
<div class="container"> 
    <div id="content">
      <!-- Blog Detail Start -->
      <div class="case-result-single">
        <?php
            while ( have_posts() ) : the_post(); 
            $case_subtitle   = get_post_meta( get_the_ID(), 'case_subtitle', true );        
            $charges_content = get_post_meta( get_the_ID(), 'charges_content', true );        
            $awarded_content = get_post_meta( get_the_ID(), 'awarded_content', true ); 
            $image           = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
            $image_bg        = $image[0]; 

            $full_class = empty($image_bg) ? 'col-lg-12' : 'col-lg-4';     
                
        ?>
           <div class="row">
            <?php if( !empty($image_bg)): ?>
                <div class="col-lg-8">
                    
                    <div class="case-result-imge image-one hidden-md-up" style="background-image: url(<?php echo esc_url($image_bg); ?>)"></div>
                    <div class="hidden-md-down"><img  src="<?php echo esc_url($image_bg); ?>" alt="<?php the_title_attribute() ?>"/> </div>
               
                    
                </div>
                <?php endif; ?>
                <div class="<?php echo esc_attr( $full_class);?>">
                    <div class="case-item content-inner">
                        <div class="case-content">
                            <h4><?php echo esc_html__('The Charges', 'advokat')?></h4>
                            <div class="des">
                                <p><?php echo wp_kses_post($charges_content); ?></p>
                            </div>
                        </div>
                        <div class="case-content">
                            <h4><?php echo esc_html__('Awarded', 'advokat')?></h4>
                            <div class="des">
                                <p><?php echo wp_kses_post($awarded_content); ?></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="case-result-content">
                <?php the_content(); ?>
            </div>
 
        <?php endwhile ?>
        </div>

        <div class="clear-fix"></div>
      <!-- Blog Detail End --> 
    </div>
</div>
<!-- .container -->
<?php
get_footer();