summaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-15 03:30:24 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-15 03:30:24 +0100
commit878e96202e8a22e4857b98e29b0a1fce68eccbc9 (patch)
treef9233c3b48a0cd6e0ac2536ddcc1897201595ad4 /app/views/index
parent4af233e1f736eb2256e5e1696418635165467855 (diff)
Grosse refactorisation pour permettre le chargement automatique des classes
C'est parti de changements pour https://github.com/marienfressinaud/FreshRSS/issues/255 et finalement j'ai continué la refactorisation... Ajout de préfixes FreshRSS_ et Minz_ sur le modèle de SimplePie_. Toutes les classes sont maintenant en chargement automatique (devrait améliorer les performances en évitant de charger plein de classes inutilisées, et faciliter la maintenance). Suppression de set_include_path(). Si souhaité, certaines classes de Minz pourraient être déplacées dans un sous-répertoire, par exemple les exceptions. Tests et relecture nécessaires.
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/about.phtml24
-rw-r--r--app/views/index/index.phtml10
-rw-r--r--app/views/index/logs.phtml8
3 files changed, 21 insertions, 21 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml
index fa799154b..b5c00a1ed 100644
--- a/app/views/index/about.phtml
+++ b/app/views/index/about.phtml
@@ -1,24 +1,24 @@
<div class="post content">
- <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
- <h1><?php echo Translate::t ('about_freshrss'); ?></h1>
+ <h1><?php echo Minz_Translate::t ('about_freshrss'); ?></h1>
<dl class="infos">
- <dt><?php echo Translate::t ('project_website'); ?></dt>
+ <dt><?php echo Minz_Translate::t ('project_website'); ?></dt>
<dd><a href="<?php echo FRESHRSS_WEBSITE; ?>"><?php echo FRESHRSS_WEBSITE; ?></a></dd>
- <dt><?php echo Translate::t ('lead_developer'); ?></dt>
- <dd><a href="mailto:contact@marienfressinaud.fr">Marien Fressinaud</a> - <a href="http://marienfressinaud.fr"><?php echo Translate::t ('website'); ?></a></dd>
+ <dt><?php echo Minz_Translate::t ('lead_developer'); ?></dt>
+ <dd><a href="mailto:contact@marienfressinaud.fr">Marien Fressinaud</a> - <a href="http://marienfressinaud.fr"><?php echo Minz_Translate::t ('website'); ?></a></dd>
- <dt><?php echo Translate::t ('bugs_reports'); ?></dt>
- <dd><?php echo Translate::t ('github_or_email'); ?></dd>
+ <dt><?php echo Minz_Translate::t ('bugs_reports'); ?></dt>
+ <dd><?php echo Minz_Translate::t ('github_or_email'); ?></dd>
- <dt><?php echo Translate::t ('license'); ?></dt>
- <dd><?php echo Translate::t ('agpl3'); ?></dd>
+ <dt><?php echo Minz_Translate::t ('license'); ?></dt>
+ <dd><?php echo Minz_Translate::t ('agpl3'); ?></dd>
</dl>
- <p><?php echo Translate::t ('freshrss_description'); ?></p>
+ <p><?php echo Minz_Translate::t ('freshrss_description'); ?></p>
- <h1><?php echo Translate::t ('credits'); ?></h1>
- <p><?php echo Translate::t ('credits_content'); ?></p>
+ <h1><?php echo Minz_Translate::t ('credits'); ?></h1>
+ <p><?php echo Minz_Translate::t ('credits_content'); ?></p>
</div>
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index bd18d2d77..cf98060c4 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,8 +1,8 @@
<?php
-$output = Request::param ('output', 'normal');
+$output = Minz_Request::param ('output', 'normal');
$token = $this->conf->token();
-$token_param = Request::param ('token', '');
+$token_param = Minz_Request::param ('token', '');
$token_is_ok = ($token != '' && $token == $token_param);
if(!login_is_conf ($this->conf) ||
@@ -21,9 +21,9 @@ if(!login_is_conf ($this->conf) ||
} else {
?>
<div class="post content">
- <h1><?php echo Translate::t ('forbidden_access'); ?></h1>
- <p><?php echo Translate::t ('forbidden_access_description'); ?></p>
- <p><a href="<?php echo _url ('index', 'about'); ?>"><?php echo Translate::t ('about_freshrss'); ?></a></p>
+ <h1><?php echo Minz_Translate::t ('forbidden_access'); ?></h1>
+ <p><?php echo Minz_Translate::t ('forbidden_access_description'); ?></p>
+ <p><a href="<?php echo _url ('index', 'about'); ?>"><?php echo Minz_Translate::t ('about_freshrss'); ?></a></p>
</div>
<?php
} \ No newline at end of file
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 178ff8ad3..1b77b39af 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -1,10 +1,10 @@
<div class="post content">
- <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
- <h1><?php echo Translate::t ('logs'); ?></h1>
+ <h1><?php echo Minz_Translate::t ('logs'); ?></h1>
<form method="post" action="<?php echo _url ('index', 'logs'); ?>"><p>
<input type="hidden" name="clearLogs" />
- <button type="submit" class="btn"><?php echo Translate::t ('clear_logs'); ?></button>
+ <button type="submit" class="btn"><?php echo Minz_Translate::t ('clear_logs'); ?></button>
</p></form>
<?php $items = $this->logsPaginator->items (); ?>
@@ -20,6 +20,6 @@
<?php $this->logsPaginator->render ('logs_pagination.phtml','page'); ?>
</div>
<?php } else { ?>
- <p class="alert alert-warn"><?php echo Translate::t ('logs_empty'); ?></p>
+ <p class="alert alert-warn"><?php echo Minz_Translate::t ('logs_empty'); ?></p>
<?php } ?>
</div>