summaryrefslogtreecommitdiffstats
path: root/templates/part.feeds.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-02 18:39:13 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-02 18:39:13 -0400
commit9e1b6c31a8818f665ac58307931c6fd308e6c353 (patch)
treeda25e792b2326b2fc5e09e7495ed38d165a1fc96 /templates/part.feeds.php
parent1117a19bb67188e555e6dcf10a583188c702c3dc (diff)
moves back the content of templates/listfolder.php
Diffstat (limited to 'templates/part.feeds.php')
-rw-r--r--templates/part.feeds.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index fbf702387..ac57da384 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -1,7 +1,17 @@
<?php
+
function print_folder(OC_News_Folder $folder, $depth){
$l = new OC_l10n('news');
- include("part.listfolder.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>';
$children = $folder->getChildren();
foreach($children as $child) {