__( 'General', 'loyaltyspin' ), 'coins' => __( 'Coins', 'loyaltyspin' ), 'tiers' => __( 'Tiers & Discounts', 'loyaltyspin' ), 'gifts' => __( 'Gifts', 'loyaltyspin' ), 'spin' => __( 'Spin & Win', 'loyaltyspin' ), 'emails' => __( 'Emails', 'loyaltyspin' ), 'appearance' => __( 'Appearance', 'loyaltyspin' ), ); if ( ! Settings::is_pro() ) { unset( $tabs['gifts'], $tabs['spin'] ); } return $tabs; } /** * Render. */ public static function render() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended $tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : 'general'; $tabs = self::tabs(); if ( ! isset( $tabs[ $tab ] ) ) { $tab = 'general'; } $s = Settings::all(); ?>

?'; } /** * Row wrapper. * * @param string $label Label. * @param string $html Field HTML (already escaped). * @param string $tip Text for the (?) bubble. * @param string $help Short line under the field. */ private static function row( $label, $html, $tip = '', $help = '' ) { $html = self::label_controls( $html, $label ); \LoyaltyPress\Html::out( '' . esc_html( $label ) . self::tip( $tip ) . '' . $html . ( $help ? '

' . esc_html( $help ) . '

' : '' ) . '' ); } /** * Give every form control that has no visible