aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml4
-rwxr-xr-xapp/views/helpers/logs_pagination.phtml8
-rw-r--r--app/views/helpers/view/global_view.phtml (renamed from app/views/helpers/global_view.phtml)0
-rw-r--r--app/views/helpers/view/normal_view.phtml (renamed from app/views/helpers/normal_view.phtml)0
-rw-r--r--app/views/helpers/view/reader_view.phtml (renamed from app/views/helpers/reader_view.phtml)0
-rwxr-xr-xapp/views/helpers/view/rss_view.phtml (renamed from app/views/helpers/rss_view.phtml)0
-rw-r--r--app/views/index/index.phtml25
7 files changed, 26 insertions, 11 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 7ed5989e2..f8e94c0f2 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -31,6 +31,10 @@
<div class="group-controls">
<input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" />
<noscript><b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript>
+ <label class="checkbox" for="anon_access">
+ <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess () == 'yes' ? ' checked="checked"' : ''; ?> />
+ <?php echo Translate::t ('allow_anonymous'); ?>
+ </label>
</div>
</div>
diff --git a/app/views/helpers/logs_pagination.phtml b/app/views/helpers/logs_pagination.phtml
index 0088dabc6..9f1d6cb23 100755
--- a/app/views/helpers/logs_pagination.phtml
+++ b/app/views/helpers/logs_pagination.phtml
@@ -9,14 +9,14 @@
<?php $params[$getteur] = 1; ?>
<li class="item pager-first">
<?php if ($this->currentPage > 1) { ?>
- <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">« Début</a>
+ <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">« <?php echo Translate::t('first'); ?></a>
<?php } ?>
</li>
<?php $params[$getteur] = $this->currentPage - 1; ?>
<li class="item pager-previous">
<?php if ($this->currentPage > 1) { ?>
- <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ Précédent</a>
+ <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ <?php echo Translate::t('previous'); ?></a>
<?php } ?>
</li>
@@ -34,13 +34,13 @@
<?php $params[$getteur] = $this->currentPage + 1; ?>
<li class="item pager-next">
<?php if ($this->currentPage < $this->nbPage) { ?>
- <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">Suivant ›</a>
+ <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Translate::t('next'); ?> ›</a>
<?php } ?>
</li>
<?php $params[$getteur] = $this->nbPage; ?>
<li class="item pager-last">
<?php if ($this->currentPage < $this->nbPage) { ?>
- <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">Fin »</a>
+ <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Translate::t('last'); ?> »</a>
<?php } ?>
</li>
</ul>
diff --git a/app/views/helpers/global_view.phtml b/app/views/helpers/view/global_view.phtml
index fff391cba..fff391cba 100644
--- a/app/views/helpers/global_view.phtml
+++ b/app/views/helpers/view/global_view.phtml
diff --git a/app/views/helpers/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index 4f08bea7f..4f08bea7f 100644
--- a/app/views/helpers/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
diff --git a/app/views/helpers/reader_view.phtml b/app/views/helpers/view/reader_view.phtml
index 46a65a4e3..46a65a4e3 100644
--- a/app/views/helpers/reader_view.phtml
+++ b/app/views/helpers/view/reader_view.phtml
diff --git a/app/views/helpers/rss_view.phtml b/app/views/helpers/view/rss_view.phtml
index 83de6de2e..83de6de2e 100755
--- a/app/views/helpers/rss_view.phtml
+++ b/app/views/helpers/view/rss_view.phtml
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 46ff33b3a..4bf82f9b4 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -2,12 +2,23 @@
$output = Request::param ('output', 'normal');
-if ($output == 'rss') {
- $this->renderHelper ('rss_view');
-} elseif($output == 'reader') {
- $this->renderHelper ('reader_view');
-} elseif($output == 'global') {
- $this->renderHelper ('global_view');
+if(!login_is_conf ($this->conf) ||
+ is_logged() ||
+ $this->conf->anonAccess() == 'yes') {
+ if($output == 'rss') {
+ $this->renderHelper ('view/rss_view');
+ } elseif($output == 'reader') {
+ $this->renderHelper ('view/reader_view');
+ } elseif($output == 'global') {
+ $this->renderHelper ('view/global_view');
+ } else {
+ $this->renderHelper ('view/normal_view');
+ }
} else {
- $this->renderHelper ('normal_view');
+?>
+<div class="post content">
+ <h1><?php echo Translate::t ('forbidden_access'); ?></h1>
+ <p><?php echo Translate::t ('forbidden_access_description'); ?></p>
+</div>
+<?php
} \ No newline at end of file