HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
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: /var/www/html/wpskycap/wp-content/themes/sway/core/templates/portfolio/content-project.php
<?php
/**
 * Template part for displaying the portfolio page content
 *
 * @package sway
 * by KeyDesign
 */

?>

<?php
	$load_nav = $load_related = $load_comments = '';
	$page_bgcolor = get_post_meta( get_the_ID(), 'keydesign_page_bgcolor', true );
	$page_background_color = ' background-color:'.$page_bgcolor.';';
	$top_padding = get_post_meta( get_the_ID(), 'keydesign_page_top_padding', true );
	$bottom_padding = get_post_meta( get_the_ID(), 'keydesign_page_bottom_padding', true );
	if ( sway_get_option( 'tek-portfolio-single-nav' ) == true ) {
		$load_nav = true;
	}
	if ( sway_get_option( 'tek-portfolio-related-posts' ) == true ) {
		$load_related = true;
	}
	if ( sway_get_option( 'tek-portfolio-comments' ) == true ) {
		$load_comments = true;
	}
?>

<section id="single-page" class="section portfolio-wrapper <?php echo esc_attr( $post->post_name );?>" style="
	<?php echo ( !empty( $page_bgcolor ) ? esc_attr( $page_background_color ) : '' ); ?>
	<?php echo ( !empty( $top_padding ) ? ' padding-top:'. esc_attr( $top_padding ) .';' : '' );?>
	<?php echo ( !empty( $bottom_padding ) ? ' padding-bottom:'. esc_attr( $bottom_padding ) .';' : '' );?> ">
    <div class="container">
			<div class="row single-page-content portfolio-single">
				<?php the_content(); ?>
			</div>
    </div>
</section>
<?php if ( $load_nav ) : ?>
	<?php get_template_part( 'core/templates/portfolio/content', 'project-nav' ); ?>
<?php endif; ?>

<?php if ( $load_related ) : ?>
	<?php get_template_part( 'core/templates/portfolio/content', 'project-related' ); ?>
<?php endif; ?>

<?php
	// If comments are open or we have at least one comment, load up the comment template.
	if ( $load_comments ) :
		if ( comments_open() || get_comments_number() ) : ?>
			<div class="page-content comments-content container">
				<?php comments_template(); ?>
			</div>
		<?php endif;
	endif;
?>