<?php $register = new Cyarb_RT; $purchase_code_status = trim( get_option( 'cyarb_purchase_code_status' ) ); if ( $purchase_code_status == 'valid' ) { $license_status = 'success'; } elseif ( $purchase_code_status == 'invalid' ) { $license_status = 'failed'; }elseif($purchase_code_status == 'already_registered'){ $license_status = 'failed'; } elseif ( $purchase_code_status == '' ) { $license_status = ''; } ?> <div class="et-dsb-box dt-theme-register-box"> <div class="et-box-head <?php echo esc_attr($license_status) ?>"> <?php $register->messages(); ?> </div><!-- /.lqd-dsd-box-head --> <?php $register->form(); ?> <div class="et-box-foot"> <a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-" target="_blank"> <?php esc_html_e( 'Where can I find purchase code?', 'cyarb' ); ?> </a> </div><!-- /.lqd-dsd-box-foot --> </div><!-- /.lqd-dsd-register-box -->