From 14f15d8589ad03cac535f87215c3f91e19c80499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 23 Sep 2017 20:03:34 +0200 Subject: [PATCH] Lightbox, Login design --- config.ini | 8 +- index.php | 42 ++- static/images/close.png | Bin 0 -> 280 bytes static/images/loading.gif | Bin 0 -> 8476 bytes static/images/next.png | Bin 0 -> 1350 bytes static/images/prev.png | Bin 0 -> 1360 bytes static/scripts/app.js | 17 +- static/scripts/lightbox.js | 508 +++++++++++++++++++++++++++++++++++++ static/styles/design.css | 32 +++ static/styles/lightbox.css | 213 ++++++++++++++++ 10 files changed, 810 insertions(+), 10 deletions(-) create mode 100644 static/images/close.png create mode 100644 static/images/loading.gif create mode 100644 static/images/next.png create mode 100644 static/images/prev.png create mode 100644 static/scripts/lightbox.js create mode 100644 static/styles/lightbox.css diff --git a/config.ini b/config.ini index 2278d68..09d507f 100644 --- a/config.ini +++ b/config.ini @@ -15,8 +15,14 @@ pic_big = static/images/profile_big.jpg [language] lang = en +[components] highlight = true +[custom] +;styles[] = static/styles/custom1.css +;styles[] = static/styles/custom2.css +;scripts = static/styles/scripts.css + [login] force_login = true nick = demo @@ -24,6 +30,6 @@ pass = demo [system] system_name = blog -version = 1.04 +version = 1.041 debug = true logs = false \ No newline at end of file diff --git a/index.php b/index.php index 5e58286..9ff86dc 100644 --- a/index.php +++ b/index.php @@ -47,6 +47,30 @@ $header = ''; } +// Translate styles into html +$styles = Config::get_safe("styles", []); +$styles_html = ''; +if(!empty($styles)){ + if(!is_array($styles)){ + $styles = [$styles]; + } + + $styles = array_unique($styles); + $styles_html = ''.PHP_EOL.''.PHP_EOL; +} + +// Translate script urls into html +$scripts = Config::get_safe("scripts", []); +$scripts_html = ''; +if(!empty($scripts)){ + if(!is_array($styles)){ + $styles = [$styles]; + } + + $scripts = array_unique($scripts); + $scripts_html = ''.PHP_EOL.''.PHP_EOL; +} + ?> @@ -63,7 +87,10 @@ + ' : ''; ?> + +
@@ -79,20 +106,21 @@