Untitled
4 years ago in Plain Text
function render_field($field){
?>
<div class="code_field_container">
<div class="code_field_textarea_edit">
<div>
<textarea name='<?=$field['name'];?>[value]' rows="8"><?=$field['value']["value"];?></textarea>
</div>
</div>
<div class="code_field_textarea_mode">
<?php
$options = [""=>"Default","html"=>"HTML","php"=>"PHP"];
?>
<select name='<?=$field['name'];?>[mode]'>
<?php
foreach($options as $key=>$value){
?> <option value="<?=$key;?>" <?=$key==$field['value']['mode']?"selected":"";?>><?=$value;?></option> <?php
}
?>
</select>
</div>
</div>
<?php
}