File tree 3 files changed +16
-1
lines changed
plugins/cc-global-network
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,13 @@ table.ccgn-profile tr td.title {
207
207
}
208
208
.applicant-columns .ccgn-box .applicant {
209
209
text-align : center;
210
+ max-width : 15% ;
211
+ }
212
+ .applicant-columns .ccgn-box .applicant .reason-text {
213
+ max-height : 10rem ;
214
+ overflow : auto;
215
+ padding : .5rem ;
216
+ border : 1px solid # f0f0f0 ;
210
217
}
211
218
.applicant-columns .ccgn-box .icon .dashicons {
212
219
font-size : 3rem ;
Original file line number Diff line number Diff line change @@ -53,14 +53,21 @@ function ccgn_application_users_page_vote_responses ( $applicant_id ) {
53
53
$ votes = ccgn_application_votes ( $ applicant_id );
54
54
foreach ($ votes as $ vote ) {
55
55
$ voter = get_user_by ('ID ' , $ vote ['created_by ' ]);
56
+ $ reason = $ vote [ CCGN_GF_VOTE_APPROVE_MEMBERSHIP_APPLICATION_REASON ];
56
57
$ result .= '<div class="ccgn-box applicant"> ' ;
57
58
$ result .= '<h4> ' . $ voter ->display_name . '</h4> '
58
59
.'<p><strong>Voted:</strong> '
59
60
. $ vote [
60
61
CCGN_GF_VOTE_APPROVE_MEMBERSHIP_APPLICATION
61
62
]
62
63
. '</p> ' ;
63
- $ result .= '</div> ' ;
64
+ if ( is_admin () && !empty ($ reason ) ) {
65
+ $ result .= '<div class="reason"> '
66
+ . '<strong>Reason:</strong><br /> '
67
+ . '<p class="reason-text"> ' .$ reason .'</p> '
68
+ .'</div> ' ;
69
+ }
70
+ $ result .= '</div> ' ;
64
71
}
65
72
return $ result ;
66
73
}
Original file line number Diff line number Diff line change 180
180
define ('CCGN_GF_PRE_APPROVAL_APPLICANT_MUST_UPDATE_DETAILS ' , '5 ' );
181
181
182
182
define ('CCGN_GF_VOTE_APPROVE_MEMBERSHIP_APPLICATION ' , '2 ' );
183
+ define ('CCGN_GF_VOTE_APPROVE_MEMBERSHIP_APPLICATION_REASON ' , '5 ' );
183
184
define ('CCGN_GF_VOTE_APPLICANT_ID_PARAMETER ' , 'applicant_id ' );
184
185
define ('CCGN_GF_VOTE_APPLICANT_ID ' , '4 ' );
185
186
You can’t perform that action at this time.
0 commit comments