# jetformbuilder/3.6.6/compatibility/jet-engine/blocks/check-mark/block-template.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 36 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/compatibility/jet-engine/blocks/check-mark/block-template.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/compatibility/jet-engine/blocks/check-mark/block-template.php
- Modified: 2024-08-13T13:45:00+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/jetformbuilder/3.6.6/code/compatibility/jet-engine/blocks/check-mark/block-template.php#L10-L20`.

```php
<?php
/**
 * @var $attributes Attributes_Interface The block attributes
 */

use JFB_Compatibility\Jet_Engine\Blocks\Check_Mark\Interfaces\Attributes_Interface;

/**
 * @var \JFB_Compatibility\Jet_Engine\Jet_Engine $module
 * @noinspection PhpUnhandledExceptionInspection
 */
$module = jet_form_builder()->compat( \JFB_Compatibility\Jet_Engine\Jet_Engine::class );

wp_enqueue_script( $module->get_handle( 'check-mark-' . $module->get_option_type() ) );

// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
?>
<div <?php echo $attributes->get_wrapper_attributes(); ?>>
	<?php if ( $attributes->is_image_control() ) : ?>
		<img
				src="<?php echo esc_url( $attributes->get_default_icon_url() ); ?>"
				class="jet-form-builder-check-mark-img"
		/>
		<img
				src="<?php echo esc_url( $attributes->get_checked_icon_url() ); ?>"
				class="jet-form-builder-check-mark-img checked"
		/>
	<?php else : ?>
		<input
				type="<?php echo esc_attr( $module->get_option_type() ); ?>"
				class="check-mark-control"
		>
		<span></span>
	<?php endif; ?>
</div>

```
