<!-- end form bid !--> <h2 class="title-content"><?php _e('Project description:', ET_DOMAIN); ?> </h2> <?php the_content(); if (function_exists('et_render_custom_field')) { et_render_custom_field($post); } ?> <?php list_tax_of_project(get_the_ID(), __('Skills required:', ET_DOMAIN), $tax_name = 'skill'); ?> <?php list_tax_of_project(get_the_ID(), __('Category:', ET_DOMAIN), $tax_name = 'project_category'); ?> <?php // list project attachment $attachment = get_children(array('numberposts' => -1, 'order' => 'ASC', 'post_parent' => $post->ID, 'post_type' => 'attachment'), OBJECT); if (!empty($attachment)) { echo '<div class="project-attachment">'; echo '<h3 class="title-content">' . __("Attachment:", ET_DOMAIN) . '</h3>'; echo '<ul class="list-file-attack-report">'; foreach ($attachment as $key => $att) { $file_type = wp_check_filetype($att->post_title, array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp')); $class = ""; if (isset($file_type['ext']) && $file_type['ext']) { $class = "image-gallery"; }
<?php comments_template('/comments.php', true); ?> </div> <?php } ?> </div> <div class="col-md-4"> <div class="content-require-skill-project"> <?php do_action('before_sidebar_single_project', $project); list_tax_of_project(get_the_ID(), __('Skills required:', 'project-detail-content'), 'skill'); list_tax_of_project(get_the_ID(), __('Category:', 'project-detail-content')); // list project attachment $attachment = get_children(array('numberposts' => -1, 'order' => 'ASC', 'post_parent' => $post->ID, 'post_type' => 'attachment'), OBJECT); if (!empty($attachment)) { echo '<h3 class="title-content">' . __("Attachment:", 'project-detail-content') . '</h3>'; echo '<ul class="list-file-attack-report">'; foreach ($attachment as $key => $att) { $file_type = wp_check_filetype($att->post_title, array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp')); $class = "text-ellipsis"; if (isset($file_type['ext']) && $file_type['ext']) { $class = "image-gallery text-ellipsis"; } echo '<li> <a class="' . $class . '" target="_blank" href="' . $att->guid . '"><i class="fa fa-paperclip"></i>' . $att->post_title . '</a> </li>'; }
<!-- end form bid !--> <h2 class="title-content"><?php _e('Project description:', 'single-project-mobile'); ?> </h2> <?php the_content(); if (function_exists('et_render_custom_field')) { et_render_custom_field($post); } ?> <?php list_tax_of_project(get_the_ID(), __('Skills required:', 'single-project-mobile'), $tax_name = 'skill'); ?> <?php list_tax_of_project(get_the_ID(), __('Category:', 'single-project-mobile'), $tax_name = 'project_category'); ?> <?php // list project attachment $attachment = get_children(array('numberposts' => -1, 'order' => 'ASC', 'post_parent' => $post->ID, 'post_type' => 'attachment'), OBJECT); if (!empty($attachment)) { echo '<div class="project-attachment">'; echo '<h3 class="title-content">' . __("Attachment:", 'single-project-mobile') . '</h3>'; echo '<ul class="list-file-attack-report">'; foreach ($attachment as $key => $att) { $file_type = wp_check_filetype($att->post_title, array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp')); $class = ""; if (isset($file_type['ext']) && $file_type['ext']) { $class = "image-gallery"; } echo '<li>
<?php comments_template('/comments.php', true); ?> </div> <?php } ?> </div> <div class="col-md-4"> <div class="content-require-skill-project"> <?php do_action('before_sidebar_single_project', $project); list_tax_of_project(get_the_ID(), __('Skills required:', ET_DOMAIN), 'skill'); list_tax_of_project(get_the_ID(), __('Category:', ET_DOMAIN)); // list project attachment $attachment = get_children(array('numberposts' => -1, 'order' => 'ASC', 'post_parent' => $post->ID, 'post_type' => 'attachment'), OBJECT); if (!empty($attachment)) { echo '<h3 class="title-content">' . __("Attachments:", ET_DOMAIN) . '</h3>'; echo '<ul class="list-file-attack-report">'; foreach ($attachment as $key => $att) { $file_type = wp_check_filetype($att->post_title, array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp')); $class = "text-ellipsis"; if (isset($file_type['ext']) && $file_type['ext']) { $class = "image-gallery text-ellipsis"; } echo '<li> <a class="' . $class . '" target="_blank" href="' . $att->guid . '"><i class="fa fa-paperclip"></i>' . $att->post_title . '</a> </li>'; }