File tree Expand file tree Collapse file tree 7 files changed +40
-5
lines changed
plugins/cc-global-network/includes Expand file tree Collapse file tree 7 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 61
61
.status-content {
62
62
display : flex ;
63
63
.status-action {
64
+ display : flex ;
64
65
margin-left : 1rem ;
66
+ .button {
67
+ & :first-child {
68
+ margin-right : .5rem ;
69
+ }
70
+ }
65
71
}
66
72
}
67
73
}
Original file line number Diff line number Diff line change @@ -382,8 +382,10 @@ function ccgn_show_current_application_status($user_id) {
382
382
'title ' => "Let's get started " ,
383
383
'msg ' => 'You should begin your application process ' ,
384
384
'class ' => 'success ' ,
385
- 'link ' => $ link_form ,
386
- 'link_text ' => 'Application form '
385
+ 'link ' => site_url ('sign-up/individual/form ' ),
386
+ 'link_text ' => 'Individual Application ' ,
387
+ 'link2 ' => site_url ('sign-up/institution/form ' ),
388
+ 'link_text2 ' => 'Institutional Application ' ,
387
389
),
388
390
'charter-form ' => array (
389
391
'step ' => 1 ,
Original file line number Diff line number Diff line change @@ -6716,7 +6716,10 @@ a {
6716
6716
.widget .user-status .widget-content .dropdown-pane .status-content {
6717
6717
display : flex; }
6718
6718
.widget .user-status .widget-content .dropdown-pane .status-content .status-action {
6719
+ display : flex;
6719
6720
margin-left : 1rem ; }
6721
+ .widget .user-status .widget-content .dropdown-pane .status-content .status-action .button : first-child {
6722
+ margin-right : .5rem ; }
6720
6723
6721
6724
.widget .big-search {
6722
6725
position : relative;
Original file line number Diff line number Diff line change 97
97
),
98
98
'Logged inactive - Home - second row ' => array (
99
99
'name ' => 'home-logged-inactive-second '
100
+ ),
101
+ 'Logged inactive (no form yet) - Home - second row ' => array (
102
+ 'name ' => 'home-logged-inactive-no-form-second '
100
103
),
101
104
'Logged inactive - Home - third row ' => array (
102
105
'name ' => 'home-logged-inactive-third '
Original file line number Diff line number Diff line change 49
49
if ( is_user_logged_in () ) {
50
50
$ current_user = get_user_by ( 'ID ' , get_current_user_id ());
51
51
$ member_or_applicant = ( bp_commoners::current_user_is_accepted () )? 'member ' : 'applicant ' ;
52
- $ individual_or_institutional = (ccgn_member_is_individual ( get_current_user_id () )) ? 'Individual ' : 'Institutional ' ;
53
- $ user_type = ' ( ' .$ individual_or_institutional .' ' .$ member_or_applicant .' ) ' ;
52
+ //$individual_or_institutional = () ? 'Individual' : 'Institutional';
53
+ $ usert_type = '' ;
54
+ if ( ccgn_user_is_individual_applicant ( get_current_user_id () ) ) {
55
+ $ user_type = ' ( Individual ' .$ member_or_applicant .' ) ' ;
56
+ } else if ( ccgn_user_is_institutional_applicant ( get_current_user_id () ) ) {
57
+ $ user_type = ' ( Insitutional ' .$ member_or_applicant .' ) ' ;
58
+ }
59
+
54
60
echo '<div class="status-bar"> ' ;
55
61
echo '<div class="grid-container"> ' ;
56
62
echo '<div class="grid-x align-justify"> ' ;
Original file line number Diff line number Diff line change 7
7
</div>
8
8
</section>
9
9
<?php endif ; ?>
10
+ <?php if ( is_active_sidebar ( 'home-logged-inactive-no-form-second ' ) && ( !ccgn_user_is_individual_applicant ( get_current_user_id () ) && !ccgn_user_is_institutional_applicant ( get_current_user_id () ) ) ): ?>
11
+ <section class="sidebar sidebar-second no-form inner-space">
12
+ <div class="grid-container">
13
+ <div class="grid-x">
14
+ <?php dynamic_sidebar ( 'home-logged-inactive-no-form-second ' ) ?>
15
+ </div>
16
+ </div>
17
+ </section>
18
+ <?php endif ; ?>
10
19
<?php if ( is_active_sidebar ( 'home-logged-inactive-second ' ) ): ?>
11
20
<section class="sidebar sidebar-second inner-space">
12
21
<div class="grid-container">
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ function widget($args, $instance) {
57
57
echo '<p> ' .$ application_status ['step ' ]['msg ' ].'</p> ' ;
58
58
echo '<div class="status-action"> ' ;
59
59
if ( !empty ( $ application_status ['step ' ]['link ' ] ) ) {
60
- echo '<a href=" ' .$ application_status ['step ' ]['link ' ].'" class="button primary"> ' .$ application_status ['step ' ]['link_text ' ].'</a> ' ;
60
+ echo '<a href=" ' .$ application_status ['step ' ]['link ' ].'" class="button small primary"> ' .$ application_status ['step ' ]['link_text ' ].'</a> ' ;
61
+ }
62
+ if ( !empty ( $ application_status ['step ' ]['link2 ' ] ) ) {
63
+ echo '<a href=" ' .$ application_status ['step ' ]['link2 ' ].'" class="button small primary"> ' .$ application_status ['step ' ]['link_text2 ' ].'</a> ' ;
61
64
}
62
65
echo '</div> ' ;
63
66
echo '</div> ' ;
@@ -71,6 +74,9 @@ function widget($args, $instance) {
71
74
if ( !empty ( $ application_status ['step ' ]['link ' ] ) ) {
72
75
echo '<a href=" ' .$ application_status ['step ' ]['link ' ].'" class="button primary"> ' .$ application_status ['step ' ]['link_text ' ].'</a> ' ;
73
76
}
77
+ if ( !empty ( $ application_status ['step ' ]['link2 ' ] ) ) {
78
+ echo '<a href=" ' .$ application_status ['step ' ]['link2 ' ].'" class="button primary"> ' .$ application_status ['step ' ]['link_text2 ' ].'</a> ' ;
79
+ }
74
80
echo '</div> ' ;
75
81
echo '</div> ' ;
76
82
You can’t perform that action at this time.
0 commit comments