-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard-workspace-section-disputes.php
53 lines (40 loc) · 1.41 KB
/
dashboard-workspace-section-disputes.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
<?php
/**
* Project workspace disputes section template
*
* @package HireBee\Templates
* @since 1.0.0
*/
?>
<div class="disputes">
<div class="row">
<div class="large-12 columns">
<?php foreach ( $disputes as $dispute ) : ?>
<?php
$meta = p2p_get_meta( $dispute->p2p_id );
$disputer = get_the_author_meta( 'display_name', $meta['disputer'][0] );
$disputee = get_the_author_meta( 'display_name', $meta['disputee'][0] );
?>
<fieldset>
<legend><?php _e( 'Opened By', APP_TD ); ?></legend>
<p><?php echo $disputer; ?></p>
</fieldset>
<fieldset>
<legend><?php _e( 'Reason', APP_TD ); ?></legend>
<p><?php echo $dispute->post_content; ?></p>
</fieldset>
<fieldset>
<legend><?php _e( 'Status', APP_TD ); ?></legend>
<p><span class="label dispute-status <?php echo esc_attr( $dispute->post_status . ( get_current_user_id() == $dispute->post_author ? ' disputer' : '' ) ); ?>"><?php echo appthemes_get_disputes_statuses_verbiages( $dispute->post_status ); ?></span></p>
<?php if ( 'publish' != $dispute->post_status ) { ?>
<fieldset>
<legend><?php _e( 'Official Response', APP_TD ); ?></legend>
<div><?php the_hrb_dispute_decision( $dispute->ID ); ?></div>
</fieldset>
<?php } ?>
</fieldset>
<?php appthemes_comments_template( get_post( $dispute->ID ) ); ?>
<?php endforeach; ?>
</div>
</div>
</div>