├── Assets
├── images
│ └── brand-logo.png
├── js
│ ├── moon.js
│ └── clipboard.min.js
└── css
│ ├── prism.css
│ └── moon.css
├── _config.yml
├── .github
└── FUNDING.yml
├── Makefile
├── config.php
├── LICENSE
├── Template
├── layout
│ └── header
│ │ ├── title.php
│ │ └── customizerTitle.php
├── header.php
└── layout.php
├── Plugin.php
└── README.md
/Assets/images/brand-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kenlog/Moon/HEAD/Assets/images/brand-logo.png
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
2 | title: Kanboard plugin theme
3 | plugins:
4 | - jemoji
5 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | liberapay: kenlog
4 | custom: ['https://paypal.me/kenlog']
5 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | plugin = Moon
2 |
3 | all:
4 | @ echo "Build archive for plugin ${plugin}"
5 | @ git archive HEAD --prefix=${plugin}/ --format=zip -o ${plugin}.zip
--------------------------------------------------------------------------------
/Assets/js/moon.js:
--------------------------------------------------------------------------------
1 | $(window).scroll(function() {
2 | var height = $(window).scrollTop();
3 | if (height > 200) {
4 | $('#backToTop').fadeIn();
5 | } else {
6 | $('#backToTop').fadeOut();
7 | }
8 | });
9 |
10 | $(document).ready(function() {
11 | $("#backToTop").click(function(event) {
12 | event.preventDefault();
13 | $("html, body").animate({ scrollTop: 0 }, "slow");
14 | return false;
15 | });
16 |
17 | });
--------------------------------------------------------------------------------
/config.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | = $this->url->link('KB', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
5 |
6 | = $this->url->link('', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
7 |
8 |
9 |
10 |
14 |
15 | # Moon plugin (modern theme for kanboard)
16 |
17 | This theme allows you to add special features like replacing the logo and adds syntax highlighting for Markdown code.
18 |
19 | # Screenshot
20 | 
21 | 
22 | 
23 | 
24 | 
25 |
26 | Author
27 | ------------
28 | - Valentino Pesce
29 | - License MIT
30 |
31 | Requirements
32 | ------------
33 | Kanboard >= v1.0.48
34 | Kanboard installed at a web server.
35 | You can find the download at [kanboard.org](https://kanboard.org/)
36 |
37 | Installation
38 | ------------
39 | You have the choice between 3 methods:
40 |
41 | 1. Install the plugin from the Kanboard plugin manager in one click
42 | 2. Download the zip file and decompress everything under the directory `plugins/Moon`
43 | 3. Clone this repository into the folder `plugins/Moon`
44 |
45 | Note: Plugin folder is case-sensitive.
46 | **Important: remove all unused themes**
47 |
48 | Add options for the theme
49 | ------------
50 | - Replace the KB logo with your own logo
51 | For more information have a look in the config.php
52 | ### Supports the [Customizer](https://github.com/creecros/Customizer) plugin
53 |
54 | Syntax highlighting for Markdown code
55 | ------------
56 | 151 languages currently supported by Prism, with their corresponding alias, to use in place of xxxx
57 |
58 | ```diff
59 | -```xxxx
60 | class BaseClass {
61 | function __construct() {
62 | print "In BaseClass constructor\n";
63 | }
64 | }
65 | -```
66 | +```php
67 | class BaseClass {
68 | function __construct() {
69 | print "In BaseClass constructor\n";
70 | }
71 | }
72 | +```
73 | ```
74 |
75 | ### :star: If you like it, do not forget to give a star on GitHub!
76 |
77 | :construction_worker: Any contribution will be highly appreciated
78 | ------------
79 | Clone the repository:
80 | ```console
81 | git clone https://github.com/kenlog/Moon.git
82 | ```
83 | :bug: Reporting Issues
84 | ------------
85 | Please [create an issue](https://github.com/kenlog/Moon/issues) for any bugs you've found.
86 |
--------------------------------------------------------------------------------
/Template/layout.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | = $this->asset->colorCss() ?>
16 | = $this->asset->css('assets/css/vendor.min.css') ?>
17 |
18 | = $this->asset->css('assets/css/'.$this->user->getTheme().'.min.css') ?>
19 |
20 | = $this->asset->css('assets/css/light.min.css') ?>
21 |
22 | = $this->asset->css('assets/css/print.min.css', true, 'print') ?>
23 | = $this->asset->customCss() ?>
24 |
25 |
26 | = $this->asset->js('assets/js/vendor.min.js') ?>
27 | = $this->asset->js('assets/js/app.min.js') ?>
28 |
29 |
30 | = $this->hook->asset('css', 'template:layout:css') ?>
31 | = $this->hook->asset('js', 'template:layout:js') ?>
32 | task->customizerFileModel->getByType(2)) : ?>
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |