From 041d7ce7940d63e8bf5edc7ef3d7bf9b1774d82e Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Fri, 17 Mar 2017 16:08:30 +0100 Subject: [PATCH] [FEATURE] Ignore "custom" theme folder Support the creation of custom themes: let Git ignore the theme if it is named "custom". This way the admin may keep the jirafau git repo and force an update without conflicts. --- .gitignore | 1 + README.md | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b83b750..cbcc532 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ lib/config.local.php lib/tos.local.txt +media/custom/ var-* *._* /vendor \ No newline at end of file diff --git a/README.md b/README.md index de1a54c..2e7127d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Next Release [![Build Status Next Release](https://gitlab.com/mojo42/Jirafeau/ba - Basic, adaptable »Terms Of Service« page - Basic API - Bash script to upload files via command line -- Skins +- Themes Jirafeau is a fork of the original project [Jyraphe](http://home.gna.org/jyraphe/) based on the 0.5 (stable version) with a **lot** of modifications. @@ -86,8 +86,8 @@ Installation steps: 1. The download URL changed * Add a rewrite rule in your web server configuration to rename ```file.php``` to ```f.php``` to make older, still existing links work again -1. The default skin changed - * Optionally change the skin in ```lib/config.local.php``` to »courgette« +1. The default theme changed + * Optionally change the theme in ```lib/config.local.php``` to »courgette« ### From version 1.2.0 to 2.0.0 @@ -209,6 +209,14 @@ If you have some strange behavior with IE, you may configure [compatibility mode Anyway I would recommend you to use another web browser. :) +### How can I change the theme? + +You may change the default theme to any of the existing ones or a custom. + +Open your ```lib/config.local.php``` and change setting in the »`style`« key to the name of any folder in the ```/media``` directory. + +Hint: To create a custom theme just copy the »courgette« folder and name your theme »custom« (this way it will be ignored by git and not overwritten during updates). You are invited to enhance the existing themes and send pull requests however. + ### I found a bug, what should I do? Feel free to open a bug in the [GitLab's issues](https://gitlab.com/mojo42/Jirafeau/issues). -- 2.34.1