blob: fb1cd69913a79b7412346e2f48b7289a24ccabce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
$folder = isset($_['folder']) ? $_['folder'] : null;
$is_root = ($folder->getId() == 0);
$l = new OC_l10n('news');
echo '<li class="collapsable_container" data-id="' . $folder->getId() . '"' . (($is_root) ? 'style="margin-left: 0px !important;"' : '') . '>' .
'<div class="collapsable" >' .
'<button class="collapsable_trigger" title="' . $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>';
|