From e405af1049a6abbee717db0d4e289f4cd4862b67 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 11 Mar 2013 20:26:22 +0100 Subject: Màj design + suppression endless_mode + suppression read_mode (reviendra sous une autre forme ?) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/indexController.php | 2 -- app/layout/aside.phtml | 6 +----- app/layout/layout.phtml | 6 +++--- app/views/helpers/pagination.phtml | 39 +++++++++++++++---------------------- app/views/index/index.phtml | 20 +++++++++---------- app/views/javascript/main.phtml | 10 ++++------ 6 files changed, 34 insertions(+), 49 deletions(-) (limited to 'app') diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index 7d42de67a..bd5f31b08 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -5,8 +5,6 @@ class indexController extends ActionController { View::appendScript (Url::display ('/scripts/smoothscroll.js')); View::appendScript (Url::display ('/scripts/shortcut.js')); View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'main'))); - View::appendScript (Url::display ('/scripts/endless_mode.js')); - View::appendScript (Url::display ('/scripts/read_mode.js')); $entryDAO = new EntryDAO (); $catDAO = new CategoryDAO (); diff --git a/app/layout/aside.phtml b/app/layout/aside.phtml index 82bd2b051..1432c10ca 100644 --- a/app/layout/aside.phtml +++ b/app/layout/aside.phtml @@ -17,10 +17,6 @@ -
  • - Mettre les flux à jour -
  • - conf)) { ?>
  • @@ -47,7 +43,7 @@
  • name (); ?> - nbFeed (); ?> flux (nbNotRead (); ?>) + nbNotRead (); ?> non lu
  • diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index de9b76775..5b2adae1e 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -19,9 +19,9 @@ partial ('persona'); ?> notification)) { ?> -
    -notification['content']; ?> -X +
    + notification['content']; ?> + X
    diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml index fe9feb0e8..d116302d0 100755 --- a/app/views/helpers/pagination.phtml +++ b/app/views/helpers/pagination.phtml @@ -4,31 +4,24 @@ $params = Request::params (); ?> -nbPage > 1) { ?> - diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 711ed5b2c..429792b71 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -2,38 +2,38 @@
    - entryPaginator->render ('pagination.phtml', 'page'); ?> -
    • conf) || is_logged ()) { ?> isRead ()) { ?> -   +    -   + --> 
    • feed (true); ?> -
    • name (); ?>
    • +
    • name (); ?>
    • title (); ?>

    • le date (); ?>
    • diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index cb8f0c0c4..7ea16737b 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -20,11 +20,11 @@ function slide (new_active, old_active) { old_active.removeClass ("active"); new_active.addClass ("active"); - if (hide_posts && !read_mode_on ) { + if (hide_posts) { old_active.children (".content").slideUp (500); new_active.children (".content").slideDown (500, function () { $.smoothScroll({ - offset: new_active.position ().top - 50 + offset: new_active.position ().top }); }); } else { @@ -104,7 +104,7 @@ function mark_favorite (active) { } function init_posts () { - if (hide_posts && !read_mode_on) { + if (hide_posts) { $(".post.flux:not(.active) .content").slideUp (); } @@ -212,10 +212,8 @@ $(document).ready (function () { redirect (url, false); }); shortcut.add("", function () { - url = $(".post.flux.active h1.title a").attr ("href"); + url = $(".post.flux.active .link a").attr ("href"); redirect (url, true); }); - - $("#categories").height ($('body').height () - $("#categories").position ().top); }); -- cgit v1.2.3