Files

26 lines
786 B
PHP

<?php
function todo_item($todo)
{
$item = '
<div class="todo_item bottom_margin top_padding bottom_padding sm_border">
<div class="row left_margin">
<div class="column center">
<label class="form_checkbox_container no_margin">
<input type="hidden" name="todo_id" value="' . (isset($todo['todo_id']) ? $todo['todo_id'] : '') . '">
<input type="checkbox"' . (!empty($todo) ? ($todo['status'] == 'completed' ? ' checked' : '') : '') . '>
<span class="checkmark no_margin"></span>
</label>
</div>
<div class="column center modal_activation_area">
<small>' . $todo['title'] . '</small>
</div>
</div>
' . todo_modal($todo, null) . '
</div>
';
return $item;
}