Location: PHPKode > projects > Habari > system/admin/formcontrols/formcontrol_checkboxes.php
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php
		echo $control->parameter_map(
			array(
				'class', 'id' => 'name'
			)
		); ?>>
	<ul>
	<?php foreach( $options as $key => $text ) : ?>
		<li>
			<label for="<?php echo Utils::slugify( $key ); ?>">
			<input type="checkbox" <?php
			echo $control->parameter_map(
				array(
					'title' => array( 'control_title', 'title' ),
					'tabindex', 'disabled', 'readonly',
				),
				array(
					'name' => $field . '[]',
					'id' => Utils::slugify( $key ),
					'value' => $key,
				)
			);
			?><?php echo ( in_array( $key, (array) $value ) ? ' checked' : '' ); ?>><?php echo Utils::htmlspecialchars( $text ); ?></label>
		</li>
	<?php endforeach; ?>
	</ul>
	<?php
		if ( isset( $helptext ) && !empty( $helptext ) ) {
			?>
				<span class="helptext"><?php echo $helptext; ?></span>
			<?php
		}

	?>
	<input type="hidden" name="<?php echo $field; ?>_submitted" value="1">
	<?php $control->errors_out('<li>%s</li>', '<ul class="error">%s</ul>'); ?>
</div>
Return current item: Habari