-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from felixhahnweilheim/v0.5
V0.5.0
- Loading branch information
Showing
69 changed files
with
394 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace humhub\modules\themeOrange; | ||
|
||
use Yii; | ||
use yii\base\Model; | ||
use humhub\modules\ui\view\helpers\ThemeHelper; | ||
use yii\base\Theme; | ||
|
||
class Events | ||
{ | ||
/* | ||
* Callback after Module enabled | ||
* @param ModuleEvent $event | ||
*/ | ||
public static function onModuleEnabled($event) | ||
{ | ||
/*Activate Orange Theme*/ | ||
$theme = ThemeHelper::getThemeByName('themeOrange'); | ||
if ($theme !== null) { | ||
$theme->activate(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
<?php | ||
|
||
use yii\base\Event; | ||
use humhub\components\ModuleManager; | ||
use humhub\modules\themeOrange\Events; | ||
|
||
return [ | ||
'id' => 'theme-orange', | ||
'class' => 'humhub\modules\themeOrange\Module', | ||
'namespace' => 'humhub\modules\themeOrange' | ||
'namespace' => 'humhub\modules\themeOrange', | ||
'events' => [ | ||
[ | ||
'class' => ModuleManager::class, | ||
'event' => ModuleManager::EVENT_AFTER_MODULE_ENABLE, | ||
'callback' => [Events::class, 'onModuleEnabled'] | ||
] | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Configuration options | ||
## Comment and Like Link | ||
**commentLink** | ||
Options: `icon`, `text`, `both` | ||
Default: `icon` | ||
|
||
**likeLink** | ||
Options: `icon`, `text`, `both` | ||
Default: `icon` | ||
|
||
**likeIcon** | ||
Options: `heart`, `star`, `thumbsup` | ||
Default: `heart` | ||
|
||
|
||
|
||
For example, add the following to protected/config/common.php | ||
|
||
'modules' => [ | ||
'theme-orange' => [ | ||
'commentLink' => 'both', | ||
'likeLink' => 'both', | ||
'likeIcon' => 'thumbsup', | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,45 +2,33 @@ | |
|
||
### A child theme for HumHub | ||
|
||
**Version: 0.4.1** | ||
|
||
Corresponding versions (espacially for the CSS file): | ||
|
||
[v0.4](https://github.com/felixhahnweilheim/humhub-themes-orange/releases/tag/v0.4.1) => HumHub 1.13 | ||
|
||
[v0.3](https://github.com/felixhahnweilheim/humhub-themes-orange/releases/tag/v0.3.0) => HumHub 1.12 | ||
|
||
[v0.2](https://github.com/felixhahnweilheim/humhub-themes-orange/releases/tag/v0.2.0) => HumHub 1.11 | ||
|
||
[v0.1](https://github.com/felixhahnweilheim/humhub-themes-orange/releases/tag/v0.1.0) => HumHub 1.10 | ||
**Version: 0.5.0** (for HumHub 1.13) | ||
|
||
This is a child [theme module](https://docs.humhub.org/docs/theme/module#theme-module), the changes compared to the community theme are listed below. | ||
|
||
**Author:** Felix Hahn, [email protected] - self-learned | ||
|
||
## State of development | ||
The theme works fine in my HumHub installations, but I have not tested all possible settings and available modules. | ||
That's why I recommend you to test the module with your settings, modules etc. and/or look through my code before activating it on a production site. | ||
## Changes in comparison to the community theme | ||
### 1. Comment and like icons instead of text (configurable) | ||
|
||
Please give me some feedback how it works for you. | ||
You can decide to show icons instead of the text, both or only the text, see [configuration](CONFIG.md). | ||
As like icon you can choose between heart, star and thumbs up. | ||
|
||
## Changes in comparison to the community theme | ||
### 1. Topic list in spaces and profiles | ||
<img src="../resources/screenshot-social-controls-2.png" width="200"> | ||
|
||
### 2. Topic list in spaces and profiles | ||
**Thanks to @raphaeljolivet** (see https://github.com/humhub/humhub/pull/4785) I was able to add a topic list to the left sidebar of spaces (only shown if there is at least one topic) | ||
|
||
<img src="../resources/screenshot-space-topic-list.png" width="700"> | ||
|
||
### 2. Comment and like icons instead of text | ||
|
||
<img src="../resources/screenshot-social-controls-2.png" width="200"> | ||
|
||
### 3. Colors | ||
- bright topbar (added variable @custom-topbar-background and @custom-topbar-contrast) | ||
|
||
<img src="../resources/screenshot-header-desktop.png" width="700"> | ||
|
||
- bright dropdown menus (background same as topbar), text-color: @text-color-highlight instead of white | ||
- bright dropdown menus, text-color: @text-color-highlight instead of white | ||
- color changes in comparison to the HumHub Community theme are mentioned in the file `less/variables.less` | ||
- added color variables (e.g. color for like icons) | ||
|
||
#### Added hover effects | ||
- see `less/mixins.less` (added color variable @hover) | ||
|
@@ -53,16 +41,11 @@ see `less/button.less` | |
|
||
<img src="../resources/screenshot-people-buttons.png" width="400"> | ||
|
||
### 6. Added Language Switcher in | ||
### 5. Added Language Switcher in | ||
- Login modal window, at the bottom | ||
- Registration page, beneath the title | ||
- dashboard for guests | ||
|
||
### 7. Editor for tasks, wiki, polls etc.: fixed non-floating menubar lead to a lot of scrolling on mobile | ||
see `less/mixins.less` (solved with max-height) | ||
|
||
### 8. Modified Dashboard for guests | ||
does not show the widget "New Spaces" in order not to show internal things to the public | ||
shows the language switcher | ||
### 6. Hide "New Spaces" widget from guest dashboar | ||
|
||
### 9. [Some smaller things ...](DETAILS.md) | ||
### 7. [Some smaller things ...](DETAILS.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
{ | ||
"id": "theme-orange", | ||
"version": "0.5.0", | ||
"name": "Orange Theme", | ||
"description": "A very simple, light theme for HumHub", | ||
"keywords": [ | ||
"child theme", "orange" | ||
], | ||
"version": "0.4.1", | ||
"humhub": { | ||
"minVersion": "1.13" | ||
}, | ||
"screenshots": ["resources/screenshot-header-desktop.png", "screenshot-space-topic-list.png", "resources/screenshot-social-controls-2.png", "resources/screenshot-space-header-buttons.png", "resources/screenshot-create-space-button.png", "resources/screenshot-people-buttons.png"] | ||
"keywords": [ | ||
"child theme", "orange" | ||
], | ||
"screenshots": ["resources/screenshot-header-desktop.png", "screenshot-space-topic-list.png", "resources/screenshot-social-controls-2.png", "resources/screenshot-space-header-buttons.png", "resources/screenshot-create-space-button.png", "resources/screenshot-people-buttons.png"], | ||
"homepage": "https://github.com/felixhahnweilheim/humhub-themes-orange", | ||
"authors": [ | ||
{ | ||
"name": "Felix Hahn", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"icons": [ | ||
{ | ||
"src": "\/android-icon-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image\/png", | ||
"density": "0.75" | ||
}, | ||
{ | ||
"src": "\/android-icon-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image\/png", | ||
"density": "1.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image\/png", | ||
"density": "1.5" | ||
}, | ||
{ | ||
"src": "\/android-icon-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image\/png", | ||
"density": "2.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image\/png", | ||
"density": "3.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image\/png", | ||
"density": "4.0" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
} | ||
} | ||
} | ||
|
||
// Navigation dropdown | ||
|
||
.nav-pills, | ||
|
Oops, something went wrong.