-<div dojoType="dijit.layout.AccordionPane" title="Micropub">
+<div dojoType="dijit.layout.AccordionPane" title="Micropub" id="micropub" <?= $accordionActive ?>>
<div>
<h2>Registered identities</h2>
<table width="100%">
<tr class="title">
<td width="5%">Default</td>
<td>Identity URL</td>
+ <td width="5%"></td>
</tr>
</thead>
<tbody>
<?php foreach ($accounts as $accurl => $account) { ?>
- <tr>
+ <tr data-url="<?= htmlspecialchars($accurl) ?>">
<td align='center'>
<input disabled='1' dojoType="dijit.form.CheckBox" type="checkbox"/>
</td>
<td>
<a href="<?= htmlspecialchars($accurl) ?>"><?= htmlspecialchars($accurl) ?></a>
</td>
+ <td>
+ <a href="#" onclick='javascript:micropubDeleteIdentity(<?= json_encode($accurl) ?>)'>Remove</a>
+ </td>
</tr>
<?php } ?>
</tbody>