Browse Source

tryin to add syndication to view

main
jk 3 years ago
parent
commit
86f73b5879
  1. 4
      views/editor.php

4
views/editor.php

@ -110,9 +110,9 @@
<label for="note_syndicate-to"><a href="javascript:reload_syndications()">Reload</a></label></td> <label for="note_syndicate-to"><a href="javascript:reload_syndications()">Reload</a></label></td>
<td id="syndication-container"> <td id="syndication-container">
<?php <?php
if($this->user->syndication_targets) {
if($this->syndication_targets) {
echo '<ul>'; echo '<ul>';
foreach($this->user->syndication_targets as $syn) {
foreach($this->syndication_targets as $syn) {
echo '<li>' echo '<li>'
. '<button data-syndicate-to="'.(isset($syn['uid']) ? htmlspecialchars($syn['uid']) : htmlspecialchars($syn['target'])).'" class="btn btn-default btn-block">' . '<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"> ' : '') . ($syn['favicon'] ? '<img src="'.htmlspecialchars($syn['favicon']).'" width="16" height="16"> ' : '')

Loading…
Cancel
Save