summaryrefslogtreecommitdiffstats
path: root/templates/part.listfolder.php
blob: 9057a14bab26a2873be5174566b4501580bf5d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

$l = new OC_l10n('news');


$folder = isset($_['folder']) ? $_['folder'] : null;	
$folderId = $folder->getId();
$folderName = $folder->getName();
if($folder->getOpened()){
	$openedClass = 'open';
} else {
	$openedClass = 'collapsed';
}

echo '<li class="folder ' . $openedClass . ' all_read" data-id="' . $folderId . '">';
	echo '<button class="collapsable_trigger" title="' . $l->t('Collapse') . '"></button>';
	echo '<a href="#" class="title">' . htmlspecialchars($folderName, ENT_QUOTES, 'UTF-8') .	'</a>';
	echo '<span class="buttons">';
		echo '<button class="svg action feeds_delete" title="' . $l->t('Delete folder') . '"></button>';
		echo '<button class="svg action feeds_edit" title="' . $l->t('Rename folder') . '"></button>';
		echo '<button class="svg action feeds_markread" title="' . $l->t('Mark all read') . '"></button>';
	echo '</span>';
	echo '<ul data-id="' . $folderId . '">';