blob: 0ee5fa8c54861687acaf612c0bc130c94f5572ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
$folder = isset($_['folder']) ? $_['folder'] : null;
$is_root = ($folder->getId() == 0);
$l = new OC_l10n('news');
echo '<ul class="folders"' . (($is_root) ? 'style="margin-left: 0px !important;"' : '') .'> <li class="folder_list" >' .
'<div class="collapsable_container" data-id="' . $folder->getId() . '">' .
'<div class="collapsable" >' .
'<button class="collapsable_trigger" title="' . $l->t($folder->getName()) . '"></button>' .
'<span class="collapsable_title">' .
$folder->getName() .
'</span>' .
( ($is_root) ?
''
:
'<button class="svg action" id="feeds_edit" title="' . $l->t('Rename folder') . '"></button>' .
'<button class="svg action" id="feeds_delete" onClick="(News.Folder.delete(' . $folder->getId(). '))" title="' . $l->t('Delete folder') . '"></button>' ) .
'</div>' .
'<ul>';
|