%s %s

', esc_html__( 'Some SMS were stopped by the safety limit. Check the Sent tab.', '85pl-android-sms-api' ), esc_url( Menu::tab_url( 'sent' ) ), esc_html__( 'Open Sent', '85pl-android-sms-api' ) ); } } /** * The connection was made on another address: explain and offer both ways out. * * @return void */ private static function render_copy_notice(): void { echo '

'; echo esc_html( sprintf( /* translators: 1: address the connection was made on, 2: this site's address. */ __( 'The address of this site changed: the connection was made on %1$s, and this site is %2$s. If this is a copy (e.g. staging), it sends no SMS: the connection is paused. If the site moved, keep the connection.', '85pl-android-sms-api' ), (string) Connection::stored_home(), Connection::current_home() ) ); echo '

'; self::action_button( ConnectController::KEEP_HOME_ACTION, __( 'This is the right site: keep the connection', '85pl-android-sms-api' ), 'button button-primary' ); self::action_button( ConnectController::RECONNECT_ACTION, __( 'Connect again', '85pl-android-sms-api' ), 'button' ); echo '

'; } /** * A one-button admin-post form. * * @param string $action Action (also the nonce action). * @param string $label Button text. * @param string $class Button classes. * @return void */ private static function action_button( string $action, string $label, string $class ): void { printf( '
', esc_url( admin_url( 'admin-post.php' ) ) ); printf( '', esc_attr( $action ) ); wp_nonce_field( $action ); printf( '
', esc_attr( $class ), esc_html( $label ) ); } }