function addWorkSpaceLink($project) { $permission = fre_access_workspace($project); $project_link = get_permalink($project->ID); if ($permission) { echo '<a style="font-weight:600;" href=' . add_query_arg(array('workspace' => 1), $project_link) . '>' . __("Open Workspace", ET_DOMAIN) . ' <i class="fa fa-arrow-right"></i></a>'; } }
</div> <?php } ?> <?php echo '<script type="json/data" class="postdata" > ' . json_encode($messagedata) . '</script>'; ?> </div> </div> <?php if (!et_load_mobile()) { ?> <div class="col-md-4 col-xs-12 workplace-project-details"> <div class="content-require-project"> <?php if (fre_access_workspace($post)) { $project_link = get_permalink($post->ID); echo '<a style="font-weight:600;" href="' . add_query_arg(array('workspace' => 1), $project_link) . '">' . __("Open workspace", 'project-report') . ' <i class="fa fa-arrow-right"></i> </a>'; } ?> <h4><?php _e('Project description:', 'project-report'); ?> </h4> <?php the_content(); ?> </div> </div>
} } ?> <?php // dispute form if (Fre_ReportForm::AccessReport() && ($post->post_status == 'disputing' || $post->post_status == 'disputed') && !isset($_REQUEST['workspace'])) { get_template_part('template/project', 'report'); ?> <?php } ?> <!-- user message --> <?php if (isset($_REQUEST['workspace']) && $_REQUEST['workspace'] && fre_access_workspace($post)) { ?> <div class="workplace-container"> <div class="info-single-project-wrapper"> <h1 class="title-workspace"><?php _e("Workspace", ET_DOMAIN); ?> </h1> </div> <?php get_template_part('template/project', 'workspaces'); ?> </div> <?php } else { ?>