From 016989b79af1f950f449e33c76f368c307c28c19 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Sun, 21 Apr 2013 13:11:14 +0200 Subject: [PATCH] contenu de la page de config --- inc/functions.php | 9 +++++++++ js/poche.js | 1 - tpl/config.html | 6 ++++++ tpl/config.tpl | 0 tpl/home.html | 4 +++- tpl/tools.html | 0 6 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tpl/config.html delete mode 100644 tpl/config.tpl delete mode 100644 tpl/tools.html diff --git a/inc/functions.php b/inc/functions.php index df7e9b17..10005dfe 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -232,6 +232,15 @@ function display_view($view, $id = 0, $full_head = 'yes') switch ($view) { + case 'config': + $tpl->assign('load_all_js', 0); + $tpl->draw('head'); + $tpl->draw('home'); + $tpl->draw('config'); + $tpl->draw('js'); + $tpl->draw('footer'); + logm('config view'); + break; case 'view': $entry = $store->retrieveOneById($id); diff --git a/js/poche.js b/js/poche.js index d27ecbba..97d9911d 100644 --- a/js/poche.js +++ b/js/poche.js @@ -23,7 +23,6 @@ function toggle_archive(element, id, view_article) { } function sort_links(view, sort) { - //$('#content').load('index.php', { view: view, sort: sort, full_head: 'no' } ); $.get('index.php', { view: view, sort: sort, full_head: 'no' }, function(data) { $('#content').html(data); }); diff --git a/tpl/config.html b/tpl/config.html new file mode 100644 index 00000000..a19a84fe --- /dev/null +++ b/tpl/config.html @@ -0,0 +1,6 @@ +
+

Bookmarklet

+

Thanks to the bookmarklet, you will be able to easily add a link to your poche. If you don't know how use a bookmarklet, have a look here.

+

Drag & drop this link to your bookmarks bar and have fun with poche.

+

poche it !

+
\ No newline at end of file diff --git a/tpl/config.tpl b/tpl/config.tpl deleted file mode 100644 index e69de29b..00000000 diff --git a/tpl/home.html b/tpl/home.html index 752a571b..33aec78c 100644 --- a/tpl/home.html +++ b/tpl/home.html @@ -7,10 +7,12 @@
  • home
  • favorites
  • archive
  • -
  • poche it !
  • +
  • config
  • logout
  • + {if condition="isset($entries)"} + {/if} \ No newline at end of file diff --git a/tpl/tools.html b/tpl/tools.html deleted file mode 100644 index e69de29b..00000000 -- 2.41.0