diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-05-07 23:19:43 +0200 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-05-07 23:19:43 +0200 |
commit | 29f0c9b0543cdbf7780ce6e45204bd62a4ba4f52 (patch) | |
tree | 6abd8b4e5efba2bc090925cb2e9c8392881b4246 /views/new-bookmark.php | |
parent | c1101c687da661e4489cde2a663a93f094cf2546 (diff) |
fix syndication for bookmarks
Diffstat (limited to 'views/new-bookmark.php')
-rw-r--r-- | views/new-bookmark.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/new-bookmark.php b/views/new-bookmark.php index ca2fd18..6ab0606 100644 --- a/views/new-bookmark.php +++ b/views/new-bookmark.php @@ -39,7 +39,12 @@ if($this->syndication_targets) { echo '<ul>'; foreach($this->syndication_targets as $syn) { - echo '<li><button data-syndication="'.$syn['target'].'" class="btn btn-default btn-block"><img src="'.$syn['favicon'].'" width="16" height="16"> '.$syn['target'].'</button></li>'; + echo '<li>' + . '<button data-syndicate-to="'.(isset($syn['uid']) ? htmlspecialchars($syn['uid']) : htmlspecialchars($syn['target'])).'" class="btn btn-default btn-block">' + . ($syn['favicon'] ? '<img src="'.htmlspecialchars($syn['favicon']).'" width="16" height="16"> ' : '') + . htmlspecialchars($syn['target']) + . '</button>' + . '</li>'; } echo '</ul>'; } else { |