|
5 | 5 | $level = ccgn_current_user_level();
|
6 | 6 | $logged_in = is_user_logged_in();
|
7 | 7 | $user_id = get_current_user_id();
|
| 8 | +$user_status = ccgn_registration_user_get_stage_and_date($user_id); |
8 | 9 | $application_status = ccgn_show_current_application_status($user_id);
|
9 | 10 | $step = array();
|
10 |
| -$step[1] = ($application_status['step']['step'] == 1) ? $application_status['step']['class'] : ''; |
11 |
| -$step[2] = ($application_status['step']['step'] == 2) ? $application_status['step']['class'] : ''; |
12 |
| -$step[3] = ($application_status['step']['step'] == 3) ? $application_status['step']['class'] : ''; |
| 11 | +$step[1] = ($application_status['step']['step'] == 1) ? $application_status['step']['class'] : 'hide-for-small-only'; |
| 12 | +$step[2] = ($application_status['step']['step'] == 2) ? $application_status['step']['class'] : 'hide-for-small-only'; |
| 13 | +$step[3] = ($application_status['step']['step'] == 3) ? $application_status['step']['class'] : 'hide-for-small-only'; |
13 | 14 | ?>
|
14 | 15 | <section class="main-content space-top">
|
15 | 16 | <div class="grid-container">
|
|
22 | 23 | <?php the_content(); ?>
|
23 | 24 | <div class="user-status-container">
|
24 | 25 | <?php if ($logged_in): ?>
|
25 |
| - |
| 26 | + <?php if ($user_status['stage'] == 'accepted'): ?> |
| 27 | + <div class="grid-x grid-padding-x"> |
| 28 | + <div class="cell"> |
| 29 | + <div class="entry-status success auto-height"> |
| 30 | + <span class="icon"><span class="dashicons dashicons-yes-alt"></span></span> |
| 31 | + <span class="subtitle">Application Approved</span> |
| 32 | + <h4 class="entry-title">You're now a member</h4> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + <?php else: ?> |
26 | 37 | <div class="grid-x grid-padding-x large-up-3 medium-up-3 small-up-1">
|
27 | 38 | <div class="cell">
|
28 | 39 | <article class="entry-status <?php echo $step[1] ?>">
|
|
85 | 96 | </article>
|
86 | 97 | </div>
|
87 | 98 | </div>
|
| 99 | + <?php endif; ?> |
88 | 100 | <?php else: ?>
|
89 | 101 | <div class="callout warning">
|
90 | 102 | <h5 class="title">Logged in</h5>
|
|
0 commit comments