Ejemplo n.º 1
0
            
        <!-- end employer info !-->
    <?php 
}
?>
    <!-- Author overview -->
    <div class="content-project-wrapper">
   		<h2 class="title-content">
            <?php 
_e('Overview:', ET_DOMAIN);
?>
        </h2>
        <?php 
echo $convert->post_content;
if (function_exists('et_render_custom_field')) {
    et_render_custom_field($convert);
}
?>
    </div>

    <div class="history-cmt-wrapper">
        <?php 
if (fre_share_role() || $user_role == FREELANCER) {
    get_template_part('mobile/template/bid', 'history');
}
if (fre_share_role() || $user_role != FREELANCER) {
    get_template_part('mobile/template/work', 'history');
}
?>
    </div>
</section>
Ejemplo n.º 2
0
            <?php 
        get_template_part('mobile/template-js/form', 'bid-project');
        ?>
            <?php 
        get_template_part('mobile/template-js/form', 'review-project');
        ?>
        </div>
        <!-- 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>';
            <?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>';
    }
    echo '</ul>';
}
if (function_exists('et_render_custom_field')) {
    et_render_custom_field($project);
}
do_action('after_sidebar_single_project', $project);
?>
            </div>
            
        </div>
    </div>
</div>