WordPress theme used on bij1.org
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Kiara Grouwstra bebdc65486 don't pair program items side by side from chapter 12 1 month ago
fontello footer: add code (#17) 10 months ago
logo-sjablonen init 1 year ago
src don't pair program items side by side from chapter 12 1 month ago
.gitignore init 1 year ago
.gitlab-ci.yml init 1 year ago
.woodpecker.yml ci: steps (#24) 4 months ago
LICENSE init 1 year ago
LICENSE.fontello.txt footer: add code (#17) 10 months ago
LICENSE.mastodon-icon.txt footer: add code (#17) 10 months ago
README.md deploy: add missing servers 8 months ago
sync.sh init 1 year ago
test.sh init 1 year ago

README.md

BIJ1 WordPress theme

This is a WordPress theme used at bij1.org, based on a theme called Okaia, and previously maintained by Multitude. Changes are initially tested on wp-staging.bij1.net.

There are a couple of theme settings that you can define as constants:

  • LOGO_BIG_PATH: url of the big/wide logo
  • LOGO_SMALL_PATH: url of the small/mobile logo
  • IS_MAIN_SITE: whether this is bij1.org, used to toggle donation form
  • NEWS_GRID_VIEW: whether to show the news page as a grid (default = false)

Todo

Reproducing

Deployment

Test

./test.sh

Backup

First back up actual server content to separate branches:

./sync.sh

Staging

HOST=wp-staging.bij1.net
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/wordpress/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/amsterdam/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/amersfoort/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/denhaag/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/haarlem/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/hilversum/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/leiden/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/rotterdam/wp-content/themes/BIJ1/

Production

HOST=wp.bij1.net
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/wordpress/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/almere/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/arnij/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/delft/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/denhaag/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/utrecht/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/zaanstreek/wp-content/themes/BIJ1/