-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformcontrol_tokens.php
14 lines (14 loc) · 1.09 KB
/
formcontrol_tokens.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
namespace Habari;
if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); }
?>
<div<?php echo isset( $class ) ? " class=\"$class\"" : ''; ?><?php echo isset( $id ) ? " id=\"$id\"" : ''; ?>>
<label<?php if ( isset( $label_title ) ) { ?> title="<?php echo $label_title; ?>"<?php } else { echo ( isset( $title ) ? " title=\"$title\"" : '' ); } ?> for="<?php echo $field; ?>"><?php echo $this->caption; ?></label>
<input<?php if ( isset( $control_title ) ) { ?> title="<?php echo $control_title; ?>"<?php } else { echo ( isset( $title ) ? " title=\"$title\"" : '' ); } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } if ( isset( $size ) ) { ?> size="<?php echo $size; ?>"<?php } if( isset( $maxlength ) ) { ?> maxlength="<?php echo $maxlength; ?>"<?php } ?> type="text" id="<?php echo $field; ?>" name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars( $value ); ?>">
<?php $control->errors_out( '<li>%s</li>', '<ul class="error">%s</ul>' ); ?>
<script type="text/javascript">
$(document).ready(function() {
<?php echo $ready_function; ?>
});
</script>
</div>