summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2018-08-01 18:35:13 -0700
committerAaron Parecki <aaron@parecki.com>2018-08-01 18:35:13 -0700
commit57c82d830d04cfc930bcc62bd886b9a96fb57164 (patch)
tree90bbcccec17ada5d90cc817f06548563f86c3ecf /views/new-post.php
parent782780234a4d5eefc692b14b4a620fc24444f2db (diff)
if no syndication targets are found, hide the section
add syndication reload button to the settings screen
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/views/new-post.php b/views/new-post.php
index b31d2be..ec74b28 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -78,11 +78,12 @@
<?php endif ?>
+
+ <?php if($this->syndication_targets): ?>
<div class="form-group" style="margin-top: 1em;">
<label for="note_syndicate-to">Syndicate <a href="javascript:reload_syndications()">(refresh list)</a></label>
<div id="syndication-container">
<?php
- if($this->syndication_targets) {
echo '<ul>';
foreach($this->syndication_targets as $syn) {
echo '<li>'
@@ -93,13 +94,10 @@
. '</li>';
}
echo '</ul>';
- } else {
- ?><div class="bs-callout bs-callout-warning">No syndication targets were found on your site.
- You can provide a <a href="/docs#syndication">list of supported syndication targets</a> that will appear as checkboxes here.</div><?php
- }
?>
</div>
</div>
+ <?php endif ?>
<div class="form-group">
<label for="note_location">Location</label>