From 28f0a923f75d96836a2c0515bda2558c732707da Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 30 Oct 2015 11:22:42 +0100 Subject: [PATCH 1/6] Remove useless templates --- templates/disabled.tpl | 15 --------------- templates/maintenance.tpl | 9 --------- 2 files changed, 24 deletions(-) delete mode 100644 templates/disabled.tpl delete mode 100644 templates/maintenance.tpl diff --git a/templates/disabled.tpl b/templates/disabled.tpl deleted file mode 100644 index 34dce16..0000000 --- a/templates/disabled.tpl +++ /dev/null @@ -1,15 +0,0 @@ -
-
-

-
- Due to various technical reasons, - we can no longer host an online version of AllTube.
- However, you are free to - - download the code - and run it on your own server. -
-
-
diff --git a/templates/maintenance.tpl b/templates/maintenance.tpl deleted file mode 100644 index 18ff6ca..0000000 --- a/templates/maintenance.tpl +++ /dev/null @@ -1,9 +0,0 @@ -
-
-

-
Due to some issues with our server, - we have to disable AllTube for a few days. - Sorry for the inconvenience.
-
-
From 32f45084fa2912c3efe7d66c76c527141fd9e055 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 30 Oct 2015 11:22:58 +0100 Subject: [PATCH 2/6] Absolute URL --- templates/index.tpl | 2 +- templates/logo.tpl | 2 +- templates/video.tpl | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/index.tpl b/templates/index.tpl index dfd2e6d..0a5a572 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -1,5 +1,5 @@
-
From ac1eac3cf7e2d99fdfbf0783e8c8b88ce6b93ea4 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 30 Oct 2015 11:44:58 +0100 Subject: [PATCH 4/6] Cleaner bookmarklet URL --- templates/index.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.tpl b/templates/index.tpl index 6bc556f..480cfef 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -23,7 +23,7 @@ See all supported websites

Drag this to your bookmarks bar:

- Bookmarklet + Bookmarklet
From 92035533b81cc00cd9055339fb19e2c4c711cbf5 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 30 Oct 2015 13:06:12 +0100 Subject: [PATCH 5/6] User __DIR__ instead of dirname() --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 0d94974..4557737 100644 --- a/index.php +++ b/index.php @@ -22,7 +22,7 @@ $app = new \Slim\Slim( ); $view = $app->view(); $view->parserExtensions = array( - dirname(__FILE__).'/vendor/slim/views/SmartyPlugins', + __DIR__.'/vendor/slim/views/SmartyPlugins' ); $app->get( '/', From 651ab412a7990026c3b941388cf64834451ae826 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 30 Oct 2015 13:40:36 +0100 Subject: [PATCH 6/6] WIP noscheme modifier --- index.php | 3 ++- smarty/modifier.noscheme.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 smarty/modifier.noscheme.php diff --git a/index.php b/index.php index 4557737..83f92fc 100644 --- a/index.php +++ b/index.php @@ -22,7 +22,8 @@ $app = new \Slim\Slim( ); $view = $app->view(); $view->parserExtensions = array( - __DIR__.'/vendor/slim/views/SmartyPlugins' + __DIR__.'/vendor/slim/views/SmartyPlugins', + __DIR__.'/smarty' ); $app->get( '/', diff --git a/smarty/modifier.noscheme.php b/smarty/modifier.noscheme.php new file mode 100644 index 0000000..b92adc1 --- /dev/null +++ b/smarty/modifier.noscheme.php @@ -0,0 +1,5 @@ +