# sureforms/0.0.13/inc/blocks/inlinebutton/block.php

SureForms – Contact Form Builder, AI Forms, Payment Form, Survey &amp; Quiz, version 0.0.13. 42 lines.

- Page: https://pluginprobe.com/plugins/sureforms/0.0.13/code/inc/blocks/inlinebutton/block.php
- Raw: https://pluginprobe.com/plugins/sureforms/0.0.13/raw/inc/blocks/inlinebutton/block.php
- Modified: 2024-05-03T15:04:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sureforms/0.0.13/code/inc/blocks/inlinebutton/block.php#L10-L20`.

```php
<?php
/**
 * PHP render form Inline Button Block.
 *
 * @package SureForms.
 */

namespace SRFM\Inc\Blocks\Inlinebutton;

use SRFM\Inc\Blocks\Base;
use SRFM\Inc\Fields\Inlinebutton_Markup;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Inline Button Block.
 */
class Block extends Base {

	/**
	 * Render the block
	 *
	 * @param array<mixed> $attributes Block attributes.
	 * @param string       $content Post content.
	 *
	 * @return string|boolean
	 * @since 0.0.2
	 */
	public function render( $attributes, $content = '' ) {

		if ( ! empty( $attributes ) ) {
			$markup_class = new Inlinebutton_Markup( $attributes );
			ob_start();
			// phpcs:ignore.
			echo $markup_class->markup();
		}
		return ob_get_clean();
	}
}

```
