} else { $modal->headline('Edit <span>' . $item['title'] . '</span>'); $modal->input_hidden('edit_id'); $modal->value($edit_id); $hidden_output = $modal->paint(); } // Edits based on rel_type if ($item['rel_type'] == 'external') { if ($item['url'] == '') { $item['url'] = 'http://'; } $modal->input_url('url'); } else { $modal->input_path('url'); if ($item['edit_path'] == 0) { $modal->readonly(true); } } if ($item['rel_type'] == 'archive') { $comic = $db->where('id', $item['rel_id'])->getOne('path', 'url'); $modal->prefix($comic['url']); } $modal->value($item['url']); $modal->name('input[url]'); $url_field_output = $modal->paint(); $modal->input_title('title'); $modal->name('input[title]'); $modal->value($item['title']); $title_field_output = $modal->paint(); $modal->contents($hidden_output . $title_field_output . $url_field_output); /*****