HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: /home/nepi/pish.nepi.ir/wp-content/themes/ohio/single-ohio_portfolio.php
<?php
/**
 * Ohio WordPress Theme
 *
 * Single project template
 *
 * @author Colabrio
 * @link   https://ohio.clbthemes.com
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Theme header
 */
get_header();

// Get theme options
$project_layout = OhioOptions::get( 'project_layout_type' );

?>

<?php 
	if ( ! in_array( $project_layout, array( 'type_5', 'type_6', 'type_8', NULL ) ) ) {
		get_template_part( 'parts/elements/page_headline' );
	}
?>

<?php if ( ! post_password_required() ) : ?>

	<?php
	switch ( $project_layout ) {
		case 'type_1':
			get_template_part( '/parts/portfolio/layout_type1' );
			break;
		case 'type_2':
			get_template_part( '/parts/portfolio/layout_type2' );
			break;
		case 'type_3':
			get_template_part( '/parts/portfolio/layout_type3' );
			break;
		case 'type_4':
			get_template_part( '/parts/portfolio/layout_type4' );
			break;
		case 'type_5':
			get_template_part( '/parts/portfolio/layout_type5' );
			break;
		case 'type_6':
			get_template_part( '/parts/portfolio/layout_type6' );
			break;
		case 'type_7':
			get_template_part( '/parts/portfolio/layout_type7' );
			break;
		case 'type_8':
			get_template_part( '/parts/portfolio/layout_type8' );
			break;
		case 'type_9':
			get_template_part( '/parts/portfolio/layout_type9' );
			break;
		case 'type_10':
			get_template_part( '/parts/portfolio/layout_type10' );
			break;
		default:
			get_template_part( '/parts/portfolio/layout_type1' );
	}?>

	<?php if ( comments_open() || get_comments_number() ) : ?>

	    <div class="portfolio-comments clb__light_section">
	        <?php comments_template(); ?>
	    </div>

	<?php endif; ?>

	<?php else : ?>

		<div class="page-container bottom-offset">
			<div class="content">
				<?php echo get_the_password_form(); ?>
			</div>
		</div>

	<?php endif; ?>

<?php

/**
 * Theme footer
 */
get_footer();