summaryrefslogtreecommitdiff
path: root/app/views/extension
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:45:37 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:45:37 +0100
commita97bbd9bd54c5fa56d54b3c214cf4e8af96af8b2 (patch)
tree6e83890bc1b3814a12c3b7bedc0d5944f30f507b /app/views/extension
parent42fd539a1b14f883077048a35864b4294b6efe94 (diff)
parente91b72b63cd11ae3c4f59e48439e93955242c673 (diff)
Merge branch 'dev'
Conflicts: CHANGELOG README.fr.md README.md app/Controllers/feedController.php app/Controllers/indexController.php app/i18n/en.php app/i18n/fr.php app/views/helpers/view/normal_view.phtml app/views/stats/index.phtml app/views/stats/repartition.phtml constants.php p/scripts/main.js
Diffstat (limited to 'app/views/extension')
-rw-r--r--app/views/extension/configure.phtml3
-rw-r--r--app/views/extension/index.phtml44
2 files changed, 47 insertions, 0 deletions
diff --git a/app/views/extension/configure.phtml b/app/views/extension/configure.phtml
new file mode 100644
index 000000000..8933eeae5
--- /dev/null
+++ b/app/views/extension/configure.phtml
@@ -0,0 +1,3 @@
+<?php
+
+$this->renderHelper('extension/configure');
diff --git a/app/views/extension/index.phtml b/app/views/extension/index.phtml
new file mode 100644
index 000000000..f2d05028f
--- /dev/null
+++ b/app/views/extension/index.phtml
@@ -0,0 +1,44 @@
+<?php $this->partial('aside_configure'); ?>
+
+<div class="post">
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
+
+ <h1><?php echo _t('admin.extensions.title'); ?></h1>
+
+ <form id="form-extension" method="post" style="display: none"></form>
+ <?php if (!empty($this->extension_list['system'])) { ?>
+ <h2><?php echo _t('admin.extensions.system'); ?></h2>
+ <?php
+ foreach ($this->extension_list['system'] as $ext) {
+ $this->ext_details = $ext;
+ $this->renderHelper('extension/details');
+ }
+ ?>
+ <?php } ?>
+
+ <?php if (!empty($this->extension_list['user'])) { ?>
+ <h2><?php echo _t('admin.extensions.user'); ?></h2>
+ <?php
+ foreach ($this->extension_list['user'] as $ext) {
+ $this->ext_details = $ext;
+ $this->renderHelper('extension/details');
+ }
+ ?>
+ <?php
+ }
+
+ if (empty($this->extension_list['system']) && empty($this->extension_list['user'])) {
+ ?>
+ <p class="alert alert-warn"><?php echo _t('admin.extensions.empty_list'); ?></p>
+ <?php } ?>
+</div>
+
+<?php $class = isset($this->extension) ? ' class="active"' : ''; ?>
+<a href="#" id="close-slider"<?php echo $class; ?>></a>
+<div id="slider"<?php echo $class; ?>>
+<?php
+ if (isset($this->extension)) {
+ $this->renderHelper('extension/configure');
+ }
+?>
+</div>