diff options
author | Gregor Tätzner <gregor@freenet.de> | 2012-08-02 23:00:14 +0200 |
---|---|---|
committer | Gregor Tätzner <gregor@freenet.de> | 2012-08-02 23:00:14 +0200 |
commit | 1117a19bb67188e555e6dcf10a583188c702c3dc (patch) | |
tree | ced423e0d3f99440a2bdd9f90f43ca8c30921e73 | |
parent | bdc51593245f6495bbd7e198c5dcda8072497e12 (diff) |
Commit missing files
-rw-r--r-- | templates/part.listfeed.php | 18 | ||||
-rw-r--r-- | templates/part.listfolder.php | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php new file mode 100644 index 000000000..1ee7f168e --- /dev/null +++ b/templates/part.listfeed.php @@ -0,0 +1,18 @@ +<?php + +// FIXME: somehow gets included twice +include_once("part.itemcounter.php"); + +$child = isset($_['child']) ? $_['child'] : null; +$favicon = $child->getFavicon(); +if ($favicon == null) { + $favicon = OCP\Util::imagePath('news', 'rss.svg'); +} + +echo '<li class="feeds_list" data-id="' . $child->getId() . '"><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>'; +countUnreadItems($child->getId()); +echo '<button class="svg action" id="feeds_delete" onClick="(News.Feed.delete(' . $child->getId(). '))" title="' . $l->t('Delete feed') . '"></button>'; +echo '<button class="svg action" id="feeds_edit" title="' . $l->t('Edit feed') . '"></button>'; +echo '</li>'; + +?>
\ No newline at end of file diff --git a/templates/part.listfolder.php b/templates/part.listfolder.php new file mode 100644 index 000000000..fafbdb8fa --- /dev/null +++ b/templates/part.listfolder.php @@ -0,0 +1,13 @@ +<?php + +echo '<ul class="folders"' . (($depth == 0) ? 'style="margin-left: 0px !important;"' : '') .'> <li class="folder_list" >' . + '<div class="collapsable_container" data-id="' . $folder->getId() . '">' . + '<div class="collapsable" >' . strtoupper($folder->getName()) . + ( ($depth != 0) ? + '<button class="svg action" id="feeds_delete" onClick="(News.Folder.delete(' . $folder->getId(). '))" title="' . $l->t('Delete folder') . '"></button>' . + '<button class="svg action" id="feeds_edit" title="' . $l->t('Rename folder') . '"></button>' + : '' ) . + '</div>' . + '<ul>'; + +?>
\ No newline at end of file |