<?php
$readonly = isset($args['readonly']) && $args['readonly'] ? 'readonly' : '';
?>
<div id="titlediv">
    <div id="titlewrap">
        <input type="text" name="<?php echo $args['name']; ?>" size="30" value="<?php echo $args['value']; ?>" id="title" spellcheck="true" autocomplete="off" placeholder="<?php echo $args['label']; ?>" <?php echo $readonly; ?> required>
    </div>
</div>