-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard-workspace.php
97 lines (73 loc) · 3.34 KB
/
dashboard-workspace.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/**
* Project workspace section template
*
* @package HireBee\Templates
* @since 1.0.0
*/
?>
<h2><i class="icon i-workspace"></i><?php _e( 'Workspace', APP_TD ); ?></h2>
<fieldset class="proposal">
<div class="row single-project-title">
<div class="large-8 small-8 columns">
<legend class="project-title"><span><?php the_hrb_project_title( $project->ID ); ?></span></legend>
</div>
<div class="large-4 small-4 columns">
<span class="label right project-status <?php echo esc_attr( $post->post_status ); ?>"><i class="icon i-status"></i> <?php echo hrb_get_project_statuses_verbiages( $post->post_status ) . ( $escrow_status ? sprintf( ' | <strong>%1$s</strong>', $escrow_status ) : '' ); ?></span>
</div>
</div>
</fieldset>
<div class="workspace-content">
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="large-12 columns">
<?php do_action( 'hrb_before_workspace_project_details' ); ?>
<fieldset>
<legend><?php _e( 'Project Details', APP_TD ) ?></legend>
<p class="project-description-"><?php echo $project->post_content; ?></p>
</fieldset>
<?php the_hrb_project_files( $project->ID, '<fieldset><legend>' . __( 'Files', APP_TD ) . '</legend>', '</fieldset>' ); ?>
<?php do_action( 'hrb_workspace_project_details' ); ?>
<fieldset>
<legend><i class="icon i-notes"></i> <?php _e( 'Notes', APP_TD ) ?></legend>
<p class="workspace-status-notes"><?php the_hrb_workspace_status_notes(); ?></p>
</fieldset>
<?php do_action( 'hrb_after_workspace_project_details' ); ?>
</div>
</div>
</div>
</div>
<div class="row workspace-type-<?php echo esc_attr( $participant->type ); ?>">
<div class="section-container project-trunk auto section-tabs" data-section data-options="deep_linking: true">
<section class="active">
<p class="title" data-section-title><a href="#manage"><?php _e( 'Manage', APP_TD ); ?></a></p>
<div class="content" data-section-content>
<?php appthemes_load_template( "dashboard-workspace-section-manage-".$participant->type.".php" ); ?>
</div>
</section>
<section>
<p class="title" data-section-title><a href="#terms"><?php _e( 'Agreed Terms', APP_TD ); ?></a></p>
<div class="content" data-section-content>
<?php appthemes_load_template( 'dashboard-workspace-section-terms.php', array( 'participants' => ( $dashboard_user->ID == $project->post_author ? $participants : array( $participant ) ) ) ); ?>
</div>
</section>
<?php if ( ! empty( $reviews ) ) { ?>
<section>
<p class="title" data-section-title><a href="#reviews"><?php _e( 'Reviews', APP_TD ); ?></a></p>
<div class="content" data-section-content>
<?php appthemes_load_template('dashboard-workspace-section-reviews.php'); ?>
</div>
</section>
<?php } ?>
<?php if ( ! empty( $disputes ) ) { ?>
<section>
<p class="title" data-section-title="" style="left: 194px;"><a href="#disputes"><?php printf( __( 'Dispute %s', APP_TD ), html( 'small', '('. ( 'publish' == $disputes[0]->post_status ? __( 'Opened', APP_TD ) : __( 'Resolved', APP_TD ) ) .')' ) ); ?></a></p>
<div class="content" data-section-content>
<?php appthemes_load_template('dashboard-workspace-section-disputes.php'); ?>
</div>
</section>
<?php } ?>
</div>
</div>
</div>