<?php $attributes_string = ''; if (!empty($options['attributes'])) { $attributes_string = createAttributesString($options['attributes']); } ?> <input type="hidden" name="<?php echo $name; ?> " value="<?php echo $value; ?> "<?php echo $attributes_string; ?> >
<?php $options['attributes'] = !empty($options['attributes']) ? $options['attributes'] : []; $options['attributes']['class'] = !empty($options['attributes']['class']) ? $options['attributes']['class'] : ''; // Add odf_ajax class if this form is an AJAX form. if (!empty($options['ajax'])) { $options['attributes']['class'] .= ' odf_ajax'; } $attributes_string = !empty($options['attributes']) ? createAttributesString($options['attributes']) : ''; if (!empty($options['title'])) { ?> <h2 class="form_title"><?php echo $options['title']; ?> </h2> <?php } ?> <form action="<?php echo $options['action']; ?> " method="<?php echo $options['method']; ?> " <?php echo $attributes_string; ?> > <?php // Output hidden fields. foreach ($fields as $name => $field) {