2009-12-02 19:22:30 +09:00
/** Howto: create a StatusNet theme
2009-01-29 04:13:46 +09:00
*
2009-08-26 07:21:37 +09:00
* @package StatusNet
2009-12-02 19:22:30 +09:00
* @author Sarven Capadisli <csarven@status.net>
* @copyright 2009 StatusNet, Inc.
2009-01-29 04:13:46 +09:00
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
2009-12-02 19:22:30 +09:00
* @link http://status.net/
2009-01-29 04:13:46 +09:00
*/
Location of key paths and files under theme/:
./base/css/
./base/css/display.css
./base/images/
./default/css/
./default/css/display.css
./default/images/
./base/display.css contains layout, typography rules:
2009-08-26 07:53:24 +09:00
Only alter this file if you want to change the layout of the site. Please note that, any updates to this in future statusnet releases may not be compatible with your version.
2009-01-29 04:13:46 +09:00
./default/css/display.css contains only the background images and colour rules:
This file is a good basis for creating your own theme.
2009-05-15 05:22:04 +09:00
Let's create a theme:
2009-01-29 04:13:46 +09:00
2009-05-15 05:22:04 +09:00
1. To start off, copy over the default theme:
cp -r default mytheme
2009-01-29 04:13:46 +09:00
2. Edit your mytheme stylesheet:
2009-05-15 05:22:04 +09:00
nano mytheme/css/display.css
2009-01-29 04:13:46 +09:00
2009-05-15 05:22:04 +09:00
a) Search and replace your colours and background images, or
b) Create your own layout either importing a separate stylesheet (e.g., change to @import url(base.css);) or simply place it before the rest of the rules.
2009-02-16 07:30:39 +09:00
4. Set /config.php to load 'mytheme':
$config['site']['theme'] = 'mytheme';