summaryrefslogtreecommitdiff
path: root/app/views/extension/index.phtml
blob: d34a84452cb27828edd6bb72f5e0182b49907fc7 (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
<?php $this->partial('aside_configure'); ?>

<div class="post">
	<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.back_to_rss_feeds'); ?></a>

	<h1><?php echo _t('admin.extensions.title'); ?></h1>

	<?php if (!empty($this->extension_list)) { ?>
	<form id="form-extension" method="post" style="display: none"></form>
	<?php foreach ($this->extension_list as $ext) { ?>
	<ul class="horizontal-list">
		<li class="item">
			<?php if ($ext->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) { ?>
			<?php $name_encoded = urlencode($ext->getName()); ?>
			<div class="stick">
				<a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.actions.manage'); ?></a>
				<?php if ($ext->is_enabled()) { ?>
				<button class="btn active" form="form-extension" formaction="<?php echo _url('extension', 'disable', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.disable'); ?></button>
				<?php } else { ?>
				<button class="btn" form="form-extension" formaction="<?php echo _url('extension', 'enable', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.enable'); ?></button>
				<?php } ?>
				<?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
				<button class="btn btn-attention confirm" form="form-extension" formaction="<?php echo _url('extension', 'remove', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.remove'); ?></button>
				<?php } ?>
			</div>
			<?php } else { ?>
			<?php echo _t('admin.extensions.system'); ?>
			<?php } ?>
		</li>
		<li class="item"><?php echo $ext->getName(); ?></li>
	</ul>
	<?php } ?>
	<?php } else { ?>
	<p class="alert alert-warn"><?php echo _t('admin.extensions.empty_list'); ?></p>
	<?php } ?>
</div>

<a href="#" id="close-slider"></a>
<div id="slider"></div>