Skip to content

verdigado/sunflower

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Jul 12, 2024
Jul 12, 2024
Jul 12, 2024
May 14, 2024
Apr 19, 2024
Jul 17, 2024
Apr 25, 2024
Jul 12, 2024
Jul 12, 2024
Jul 12, 2024
May 29, 2024
May 6, 2024
Apr 29, 2024
Apr 17, 2024
Nov 3, 2023
Nov 1, 2023
Apr 29, 2024
Jan 3, 2021
Nov 6, 2023
Apr 25, 2024
May 10, 2024
May 3, 2024
Jun 20, 2024
Apr 29, 2024
Apr 25, 2024
Apr 25, 2024
May 6, 2024
Nov 3, 2023
Apr 29, 2024
May 7, 2024
May 8, 2024
May 7, 2024
May 6, 2024
Dec 19, 2022
Jun 17, 2024
May 10, 2024
May 6, 2024
May 6, 2024
Apr 17, 2024
Apr 29, 2024
Nov 3, 2023
May 3, 2024
Apr 29, 2024
May 10, 2024
May 6, 2024
May 3, 2024

Repository files navigation

sunflower WordPress Theme

This is sunflower, a WordPress-Theme for the german green party. It is based on the starter theme _s.

This repo is for development only, it is not usable out of the box within WordPress. See Installation -> Setup for the required steps to start developing.

Demo and Download

Chat-Channel

There is also a chat-channel (access for green party members only) https://chatbegruenung.de/channel/sunflower-wordpress

Installation

Requirements

sunflower requires the following dependencies:

Setup

  • Clone this repo into wp-content/themes
  • install the Node.js and Composer dependencies in sunflowers theme folder:
    composer install
    npm install
  • compile the theme with the following commands:
    npm run compile:css
    npm run composer-lib
    npm run copy-node-modules
    npm run build
  • activate sunflower in WordPress-Backend

Available CLI commands

  • composer lint:wpcs : checks all PHP files against PHP Coding Standards.
  • composer lint:php : checks all PHP files for syntax errors.
  • composer make-pot : generates a .pot file in the languages/ directory.
  • vendor/bin/rector: run rector with provided rector.php.
  • vendor/bin/ecs: run ecs with provided ecs.php.
  • npm run compile:css : compiles SASS files to css.
  • npm run compile:rtl : generates an RTL stylesheet.
  • npm run watch : watches all SASS files and recompiles them to css when they change.
  • npm run lint:scss : checks all SASS files against CSS Coding Standards.
  • npm run lint:js : checks all JavaScript files against JavaScript Coding Standards.
  • npm run bundle : generates a .zip archive for distribution, excluding development and system files.
  • npm run start : start watcher for js-files
  • npm run build : build javascript

Deployment

see Makefile for tasks

Publishing

see Documentation in mkdocs/docs for more details

Contributing

see Documentation in mkdocs/docs for more details