aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-08 23:31:38 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-08 23:31:38 +0100
commit9d32d7fe1932504a042fd8b146cdf560be11350b (patch)
treeb30f787d03c9134a8ed1478aea23faf8291a1967 /app/views/javascript
parentd4f636f26ab8642e8c357e75f71868bd73751d23 (diff)
Déplace le fichier main.phtml
app/views/javascript/main.phtml est déplacé vers app/views/helpers/javascript_vars.phtml Il reste à déplacer le fichier actualize.phtml pour se débarrasser de javascriptController
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/main.phtml32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
deleted file mode 100644
index df552527f..000000000
--- a/app/views/javascript/main.phtml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
- echo '"use strict";', "\n";
- $mark = $this->conf->markWhen ();
- echo 'var ',
- 'hide_posts=', ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader') ? 'false' : 'true',
- ',auto_mark_article=', $mark['article'] === 'yes' ? 'true' : 'false',
- ',auto_mark_site=', $mark['site'] === 'yes' ? 'true' : 'false',
- ',auto_mark_scroll=', $mark['scroll'] === 'yes' ? 'true' : 'false',
- ',auto_load_more=', $this->conf->autoLoadMore () === 'yes' ? 'true' : 'false',
- ',full_lazyload=', $this->conf->lazyload () === 'yes' && ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader') ? 'true' : 'false',
- ',does_lazyload=', $this->conf->lazyload() === 'yes' ? 'true' : 'false';
-
- $s = $this->conf->shortcuts ();
- echo ',shortcuts={',
- 'mark_read:"', $s['mark_read'], '",',
- 'mark_favorite:"', $s['mark_favorite'], '",',
- 'go_website:"', $s['go_website'], '",',
- 'prev_entry:"', $s['prev_entry'], '",',
- 'next_entry:"', $s['next_entry'], '"',
- "},";
-
- $mail = Session::param ('mail', 'null');
- if ($mail != 'null') {
- $mail = '"' . $mail . '"';
- }
- echo 'use_persona=', login_is_conf ($this->conf) ? 'true' : 'false',
- ',url_freshrss="', _url ('index', 'index'), '",',
- 'url_login="', _url ('index', 'login'), '",',
- 'url_logout="', _url ('index', 'logout'), '",',
- 'current_user_mail=', $mail, ",\n";
-
- echo 'load_shortcuts=', Request::controllerName () === 'index' && Request::actionName () === 'index' ? 'true' : 'false', ";\n";