__( 'Checkout Referrals', 'affiliatewp-checkout-referrals' ), 'type' => 'header', ); $fields['checkout_referrals_checkout_text'] = array( 'name' => __( 'Checkout Text', 'affiliatewp-checkout-referrals' ), 'desc' => '
' . __( 'Enter the field description to be displayed at checkout.', 'affiliatewp-checkout-referrals' ) . '
', 'type' => 'text', 'std' => __( 'Who should be awarded commission for this purchase?', 'affiliatewp-checkout-referrals' ) ); $fields['checkout_referrals_affiliate_selection'] = array( 'name' => __( 'Affiliate Selection Method', 'affiliatewp-checkout-referrals' ), 'desc' => __( 'Choose how the customer will select the affiliate to award commission to.', 'affiliatewp-checkout-referrals' ), 'type' => 'select', 'options' => array( 'select_menu' => __( 'Customer selects affiliate from list', 'affiliatewp-checkout-referrals'), 'input' => __( 'Customer enters affiliate\'s ID or username', 'affiliatewp-checkout-referrals'), ) ); $fields['checkout_referrals_require_affiliate'] = array( 'name' => __( 'Require Affiliate Selection', 'affiliatewp-checkout-referrals' ), 'desc' => __( 'Customer must select an affiliate to award the referral to', 'affiliatewp-checkout-referrals' ), 'type' => 'checkbox' ); $fields['checkout_referrals_affiliate_display'] = array( 'name' => __( 'Affiliate Display', 'affiliatewp-checkout-referrals' ), 'desc' => __( 'How the affiliates will be displayed at checkout', 'affiliatewp-checkout-referrals' ), 'type' => 'radio', 'options' => array( 'user_nicename' => 'User Nicename', 'display_name' => 'Display Name', 'nickname' => 'Nickname' ), 'std' => 'user_nicename' ); return $fields; } } $affiliatewp_admin = new AffiliateWP_Checkout_Referrals_Admin;