diff --git a/inc/functions.php b/inc/functions.php index df7e9b1..10005df 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 d27ecbb..97d9911 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 0000000..a19a84f --- /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 e69de29..0000000 diff --git a/tpl/home.html b/tpl/home.html index 752a571..33aec78 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 e69de29..0000000