function ide_creator_profile($project_id, $post_id) { $profile = ide_creator_info($post_id); if (!empty($profile['name'])) { $durl = md_get_durl(); include_once ID_PATH . 'templates/_projectCreatorProfile.php'; } }
<?php global $post; $id = $post->ID; $content = the_project_content($id); $project_id = get_post_meta($id, 'ign_project_id', true); if (function_exists('is_id_pro') && is_id_pro()) { $profile = ide_creator_info($post->ID); } idcf_get_project(); get_header(); ?> <div id="site-description" class="project-single"> <?php echo idcf_get_project_title(); ?> <?php echo idcf_get_short_description(); ?> <span class="product-author-details"> <i class="fa fa-user"></i> <span> <?php if (function_exists('is_id_pro') && is_id_pro()) { echo $profile['name']; } else { the_author(); } ?> </span> <?php