|
121 | 121 | ?></strong></p> |
122 | 122 | </div> |
123 | 123 | <?php else : ?> |
124 | | - <?php |
125 | | - $message_text = ''; |
126 | | - |
127 | | - if ( $is_pending_affiliate ) { |
128 | | - $message_text = fs_text_inline( "Thank you for applying for our affiliate program, we'll review your details during the next 14 days and will get back to you with further information.", 'affiliate-application-thank-you', $slug ); |
129 | | - $message_container_class = 'updated'; |
130 | | - } else if ( $affiliate->is_suspended() ) { |
131 | | - $message_text = fs_text_inline( 'Your affiliation account was temporarily suspended.', 'affiliate-account-suspended', $slug ); |
132 | | - $message_container_class = 'notice notice-warning'; |
133 | | - } else if ( $affiliate->is_rejected() ) { |
134 | | - $message_text = fs_text_inline( "Thank you for applying for our affiliate program, unfortunately, we've decided at this point to reject your application. Please try again in 30 days.", 'affiliate-application-rejected', $slug ); |
135 | | - $message_container_class = 'error'; |
136 | | - } else if ( $affiliate->is_blocked() ) { |
137 | | - $message_text = fs_text_inline( 'Due to violation of our affiliation terms, we decided to temporarily block your affiliation account. If you have any questions, please contact support.', 'affiliate-account-blocked', $slug ); |
138 | | - $message_container_class = 'error'; |
139 | | - } |
140 | | - ?> |
141 | | - <div class="<?php echo $message_container_class ?>"> |
142 | | - <p><strong><?php echo esc_html( $message_text ) ?></strong></p> |
143 | | - </div> |
144 | | - <?php endif ?> |
| 124 | + <?php |
| 125 | + $message_text = ''; |
| 126 | + $message_container_class = ''; |
| 127 | + |
| 128 | + if ( $is_pending_affiliate ) { |
| 129 | + $message_text = fs_text_inline( "Thank you for applying for our affiliate program, we'll review your details during the next 14 days and will get back to you with further information.", 'affiliate-application-thank-you', $slug ); |
| 130 | + $message_container_class = 'updated'; |
| 131 | + } else if ( $affiliate->is_suspended() ) { |
| 132 | + $message_text = fs_text_inline( 'Your affiliation account was temporarily suspended.', 'affiliate-account-suspended', $slug ); |
| 133 | + $message_container_class = 'notice notice-warning'; |
| 134 | + } else if ( $affiliate->is_rejected() ) { |
| 135 | + $message_text = fs_text_inline( "Thank you for applying for our affiliate program, unfortunately, we've decided at this point to reject your application. Please try again in 30 days.", 'affiliate-application-rejected', $slug ); |
| 136 | + $message_container_class = 'error'; |
| 137 | + } else if ( $affiliate->is_blocked() ) { |
| 138 | + $message_text = fs_text_inline( 'Due to violation of our affiliation terms, we decided to temporarily block your affiliation account. If you have any questions, please contact support.', 'affiliate-account-blocked', $slug ); |
| 139 | + $message_container_class = 'error'; |
| 140 | + } |
| 141 | + ?> |
| 142 | + <div class="<?php echo $message_container_class ?>"> |
| 143 | + <p><strong><?php echo esc_html( $message_text ) ?></strong></p> |
| 144 | + </div> |
145 | 145 | <?php endif ?> |
| 146 | + <?php endif ?> |
146 | 147 | </div> |
147 | 148 | <div class="entry-content"> |
148 | 149 | <?php if ( ! $is_affiliate ) : ?> |
|
0 commit comments