14 lines
470 B
PHP
14 lines
470 B
PHP
|
<?php
|
||
|
if (!isset($data['requirement']) || $data['requirement']) {
|
||
|
$input = sprintf(
|
||
|
'<input type="text" class="form-control" placeholder="%s" aria-label="%s" id="liveFilterField">',
|
||
|
empty($data['placeholder']) ? '' : h($data['placeholder']),
|
||
|
empty($data['placeholder']) ? '' : h($data['placeholder'])
|
||
|
);
|
||
|
echo sprintf(
|
||
|
'<div class="input-group">%s</div>',
|
||
|
$input
|
||
|
);
|
||
|
}
|
||
|
?>
|