function task_list_delete_link() { global $the_task_list; if ($the_task_list->canDelete(logged_user())) { action_link($the_task_list->getDeleteUrl(), '/icons/delete.png', 'delete'); } }
function task_complete_link() { global $the_task; if ($the_task->canChangeStatus(logged_user())) { action_link($the_task->getCompleteUrl(), 'icons/check.png', 'mark task as completed'); } }
<h4>Source</h4> <div class="span6"> <strong>Added:</strong> <?php echo $r['Date_Created']; ?> <br> <strong>Source:</strong> <?php echo $r['source_type_category']; ?> <?php echo $r['source_type_subcategory']; ?> <?php if ($r['source_key']) { echo action_link($r['source_type_category'], $r['source_key']); } ?> </div> <div class="span3"> <?php if ($r['source_type_note ']) { ?> <strong>Source Note:</strong> <?php echo $r['source_type_note']; ?> <br><?php } ?>