inc/user.css
. This file allows to override rules defined in the main inc/shaarli.css
(only add changed rules), or define a whole new theme.inc/shaarli.css
! Your changes would be overriden when updating Shaarli.See also:
WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.
tpl/
directory, run git clone https://url/of/my-template/
or unpack the zip archive.
my-template/
directory under the tpl/
dir, containing directly all the template files.Edit data/config.php
to have Shaarli use this template, e.g.
$GLOBALS['config'['theme'] = 'tpl/my-template/';]('theme']-=-'tpl/my-template/';.html)
With the following configuration:
/home/user/public_html/somedir
is served as http://localhost/~user/somedir
http
is the name of the Apache user$ cd ~/public_html
# clone repositories
$ git clone https://github.com/shaarli/Shaarli.git shaarli
$ pushd shaarli/tpl
$ git clone https://github.com/alexisju/albinomouse-template.git
$ popd
# set access rights for Apache
$ chgrp -R http shaarli
$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
Get config written:
Edit Shaarli's configuration|Shaarli configuration:
# the file should be owned by Apache, thus not writeable => sudo
$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php