main.phtml 862 B

12345678910111213141516171819
  1. <?php
  2. echo '"use strict";', "\n";
  3. $mark = $this->conf->markWhen ();
  4. echo 'var ',
  5. 'hide_posts=', ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader') ? 'false' : 'true',
  6. ',auto_mark_article=', $mark['article'] === 'yes' ? 'true' : 'false',
  7. ',auto_mark_site=', $mark['site'] === 'yes' ? 'true' : 'false',
  8. ',auto_mark_scroll=', $mark['scroll'] === 'yes' ? 'true' : 'false',
  9. ',auto_load_more=', $this->conf->autoLoadMore () === 'yes' ? 'true' : 'false',
  10. ',does_lazyload=', $this->conf->lazyload() === 'yes' ? 'true' : 'false', ";\n";
  11. $s = $this->conf->shortcuts ();
  12. echo 'var shortcuts={',
  13. 'mark_read:"', $s['mark_read'], '",',
  14. 'mark_favorite:"', $s['mark_favorite'], '",',
  15. 'go_website:"', $s['go_website'], '",',
  16. 'prev_entry:"', $s['prev_entry'], '",',
  17. 'next_entry:"', $s['next_entry'], '"',
  18. "};\n";