File "alignment.php"

Full path: /home/bud/public_html/swamp/back-end/alignment.php
File size: 1.17 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * View for alignment option of radio or checkbox field
 *
 * @package FormidablePro
 *
 * @var array $field Field data.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

$image_options = FrmField::get_option( $field, 'image_options' );
$classes       = 'frm6 frm_form_field frm_first frm_alignment_' . intval( $field['id'] );
if ( 1 === intval( $image_options ) ) {
	$classes .= ' frm_hidden';
}
?>
<p id="frm_alignment_<?php echo intval( $field['id'] ); ?>" class="<?php echo esc_attr( $classes ); ?>">
	<label for="field_options_align_<?php echo absint( $field['id'] ); ?>">
		<?php esc_html_e( 'Option Layout', 'formidable-pro' ); ?>
	</label>
	<select name="field_options[align_<?php echo absint( $field['id'] ); ?>]" id="field_options_align_<?php echo absint( $field['id'] ); ?>" class="field_options_align" data-changeme="frm_field_id_<?php echo esc_attr( $field['id'] ); ?>" data-changeatt="class">
		<?php foreach ( $columns as $col => $col_label ) { ?>
			<option value="<?php echo esc_attr( $col ); ?>" <?php selected( $field['align'], $col ); ?>>
				<?php echo esc_html( $col_label ); ?>
			</option>
		<?php } ?>
	</select>
</p>