blob: 5cd962ae4819dab00fed12dfee5e41b608838ca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?php $this->partial('aside_feed'); ?>
<div class="post">
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
<h2><?php echo _t('categories_management'); ?></h2>
<p class="alert alert-warn">
<?php echo _t('feeds_moved_category_deleted', $this->defaultCategory->name()); ?>
</p>
<div class="box">
<div class="box-title"><label for="new-category"><?php echo _t('add_category'); ?></label></div>
<div class="box-content">
<form action="<?php echo _url('category', 'create'); ?>" method="post">
<input type="text" id="new-category" name="new-category" placeholder="<?php echo _t('new_category'); ?>" />
<input type="submit" value="<?php echo _t('submit'); ?>" />
</form>
</div>
</div>
<form id="controller-category" method="post" style="display: none;"></form>
<?php
foreach ($this->categories as $cat) {
$feeds = $cat->feeds();
?>
<div class="box">
<div class="box-title stick">
<input type="text" value="<?php echo $cat->name(); ?>" />
<div class="dropdown">
<div id="dropdown-cat-<?php echo $cat->id(); ?>" class="dropdown-target"></div>
<a class="dropdown-toggle btn" href="#dropdown-cat-<?php echo $cat->id(); ?>"><?php echo _i('down'); ?></a>
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li>
<li class="item">
<button class="as-link confirm"
data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>"
type="submit"
form="controller-category"
formaction="<?php echo _url('category', 'empty', 'id', $cat->id()); ?>">
<?php echo _t('ask_empty'); ?></button>
</li>
<li class="item"><a href=""><?php echo _t('delete'); ?></a></li>
</ul>
</div>
</div>
<ul class="box-content">
<?php if (!empty($feeds)) { ?>
<?php
foreach ($feeds as $feed) {
$error = $feed->inError() ? ' error' : '';
$empty = $feed->nbEntries() == 0 ? ' empty' : '';
?>
<li id="f_<?php echo $feed->id(); ?>" class="item<?php echo $error, $empty; ?>">
<a href="<?php echo _url('configure', 'feed', 'id', $feed->id()); ?>"><?php echo _i('configure'); ?></a>
<img class="favicon" src="<?php echo $feed->favicon(); ?>" alt="✇" /> <?php echo $feed->name(); ?>
</li>
<?php
}
} else {
?>
<li>Empty</li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
|