__( 'Accepted', 'affiliates' ), AFFILIATES_REFERRAL_STATUS_CLOSED => __( 'Closed', 'affiliates' ), AFFILIATES_REFERRAL_STATUS_PENDING => __( 'Pending', 'affiliates' ), AFFILIATES_REFERRAL_STATUS_REJECTED => __( 'Rejected', 'affiliates' ), ); $status_select = ""; echo '
' . '
' . '

' . esc_html__( 'Referral timeout', 'affiliates' ) . '

' . '

' . '' . '

' . '

' . esc_html__( 'This is the number of days since a visitor accessed your site via an affiliate link, for which a suggested referral will be valid.', 'affiliates' ) . '

' . '

' . esc_html__( 'If you enter 0, referrals will only be valid until the visitor closes the browser (session).', 'affiliates' ) . '

' . '

' . sprintf( /* translators: default value, count days */ esc_html__( 'The default value is %1$d. In this case, if a visitor comes to your site via an affiliate link, a suggested referral will be valid until %2$d days after she or he clicked that affiliate link.', 'affiliates' ), esc_html( AFFILIATES_COOKIE_TIMEOUT_DAYS ), esc_html( AFFILIATES_COOKIE_TIMEOUT_DAYS ) ) . '

'; echo '

' . esc_html__( 'Direct referrals', 'affiliates' ) . '

' . '

' . '' . '

' . '

' . esc_html__( 'If this option is enabled, whenever a referral is suggested and no affiliate is attributable to it, the referral will be attributed to Direct.', 'affiliates' ) . '

'; echo '

' . esc_html__( 'Default referral status', 'affiliates' ) . '

' . '

' . $status_select . // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '

'; echo '

' . esc_html__( 'Duplicate referrals', 'affiliates' ) . '

' . '

' . '' . '

' . '

' . esc_html__( 'Allow to record duplicate referrals for the same affiliate (based on amount, currency, internal type and reference).', 'affiliates' ) . '

'; echo '

' . esc_html__( 'Auto-referrals', 'affiliates' ) . '

' . '

' . '' . '

' . '

' . esc_html__( 'If this option is enabled, affiliates are allowed to refer themselves.', 'affiliates' ) . ' ' . esc_html__( 'This option allows an affiliate to earn a commission on a transaction that involves the affiliate as a customer or lead.', 'affiliates' ) . ' ' . esc_html__( 'Auto-referrals are identified as such, when a transaction is processed for the same user or user email as the affiliate’s, or when it involves the use of a coupon assigned to the affiliate.', 'affiliates' ) . '

' . '

' . '' . '

' . '

' . esc_html__( 'Allow affiliates to apply coupons that are assigned to them.', 'affiliates' ) . ' ' . esc_html__( 'Verification is supported for coupons managed through WooCommerce.', 'affiliates' ) . '

'; echo '

' . wp_nonce_field( 'admin', AFFILIATES_ADMIN_SETTINGS_NONCE, true, false ) . // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '' . '

' . '
' . '
'; affiliates_footer(); } }