From ee711859563d95d038db93649338c0bbd8469293 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Wed, 1 Mar 2017 13:03:42 +0300 Subject: [PATCH] 18.32 [enhancement #664 #291] --- README.md | 5 +- authentic-init.pm | 15 + authentic-lib.pm | 73 +-- authentic.pm | 4 +- extensions/csf/csf.css | 197 +++++++ extensions/csf/csf.js | 489 ++++++++--------- extensions/csf/csf.min.css | 2 +- extensions/csf/csf.min.js | 2 +- images/loader-horizontal_dark.gif | Bin 0 -> 2892 bytes images/palettes/nightRider/sort_asc.png | Bin 0 -> 276 bytes images/palettes/nightRider/sort_desc.png | Bin 0 -> 288 bytes images/staroff.gif | Bin 426 -> 427 bytes images/staron.gif | Bin 3255 -> 425 bytes unauthenticated/css/authentic.css | 514 ++++++++++++++++-- unauthenticated/css/authentic.min.css | 2 +- unauthenticated/css/bundle.min.css | 2 +- unauthenticated/css/palettes/gunmetal.min.css | 5 + .../css/palettes/nightrider.min.css | 1 + .../css/palettes/nightrider_ckeditor.min.css | 1 + .../nightrider_ckeditor_content.min.css | 1 + unauthenticated/css/palettes/noir.min.css | 5 + unauthenticated/css/parent.bundle.min.css | 2 +- unauthenticated/css/select2.min.css | 2 +- unauthenticated/js/ckeditor/contents.css | 1 + .../js/ckeditor/skins/bootstrapck/editor.css | 3 +- .../ckeditor/skins/bootstrapck/icons_dark.png | Bin 0 -> 19972 bytes .../skins/bootstrapck/icons_hidpi_dark.png | Bin 0 -> 65905 bytes unauthenticated/js/content.js | 113 +++- unauthenticated/js/content.min.js | 2 +- unauthenticated/js/jquery.autocomplete.min.js | 2 +- unauthenticated/js/parent.bundle.min.js | 2 +- unauthenticated/js/particles.min.js | 1 + 32 files changed, 1083 insertions(+), 363 deletions(-) create mode 100644 images/loader-horizontal_dark.gif create mode 100644 images/palettes/nightRider/sort_asc.png create mode 100644 images/palettes/nightRider/sort_desc.png create mode 100644 unauthenticated/css/palettes/gunmetal.min.css create mode 100644 unauthenticated/css/palettes/nightrider.min.css create mode 100644 unauthenticated/css/palettes/nightrider_ckeditor.min.css create mode 100644 unauthenticated/css/palettes/nightrider_ckeditor_content.min.css create mode 100644 unauthenticated/css/palettes/noir.min.css create mode 100644 unauthenticated/js/ckeditor/skins/bootstrapck/icons_dark.png create mode 100644 unauthenticated/js/ckeditor/skins/bootstrapck/icons_hidpi_dark.png create mode 100644 unauthenticated/js/particles.min.js diff --git a/README.md b/README.md index 39e61df78..a8aad9883 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ [![ScreenShot](https://raw.githubusercontent.com/qooob/authentic-theme/master/images/screenshot.png)](http://youtu.be/f_oy3qX2GXo) ![](https://rostovtsev.ru/pub/media/screenshots/screenshot-pallets-1710.png) +![](https://rostovtsev.ru/pub/media/screenshots/screenshot-content-page-18.40.png) ####Principles * Make the theme fully support all _Webmin/Usermin_ modules @@ -85,10 +86,6 @@ The theme has inbuilt feature to notify an administrative user to install update ####How do I customize the theme? Theme has configurable options, that are located in `Webmin->Webmin Configuration->Webmin Themes`. There as well, you can upload custom _logos_ and code custom _styles.css_, _scripts.js_ and _scripts.pm_. - -####How do I make user palettes work? -_Authentic_ Theme utilizes built-in, custom color palettes, that a user can define using theme's extensions. It's possible, by using theme's _CSS_ extensions, to pass user custom selector, such as `user-palette-1`, `user-palette-2`, `user-palette-3`, `user-palette-4`, `user-palette-5`, `user-palette-6`, `user-palette-7`, `user-palette-8`, `user-palette-9` and `user-palette-10` to enable a usage of user palettes. For example, in order to use `user-palette-1`, in the theme's settings, you would need to set the option _Navigation Menu Color_ to the value of `User Palette 1`. After that, provide a custom code to the theme's _CSS_ extension, with [a pre-built template](http://codepen.io/qooob/pen/dYaPvj), corresponding with custom theme's identification. - ####How do I execute shell command using search field? Type `!` in search, followed by your command. Example: `! ls -lsaZ /root`. It's required to have _Command Shell_ module available. diff --git a/authentic-init.pm b/authentic-init.pm index 22230333f..778297483 100644 --- a/authentic-init.pm +++ b/authentic-init.pm @@ -105,6 +105,7 @@ sub embed_header { embed_css_bundle(); } + embed_css_content_palette(); embed_styles(); embed_settings(); @@ -309,6 +310,20 @@ sub embed_css_content { . '" rel="stylesheet">' . "\n"; } +sub embed_css_content_palette { + if ( length $__settings{'settings_background_color'} + && $__settings{'settings_background_color'} ne 'gainsboro' ) + { + print '' . "\n"; + } +} + sub embed_js_timeplot { print '