HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vcz/README.md
## Borealis Wordpress boilerplate

This is the boilerplate setup for stuff we initally do on each project.

## What should you do when creating a new project

1. Fork this project
2. rename the theme folder name in the themes folder of wp-content into your actual theme name
3. edit the theme style.css and update the meta info in there like the Theme name
4. MAKE SURE you edit gitignore to ignore the frontend folder inside your theme. By default thats "wp-content/themes/mytheme/frontend/". so change mytheme to your folder name you setup in step 2
5. edit "html\gulp\config.js" and change the DESTPATH variable to include your theme folder name you setup in step #2. So it's now '../wp-content/themes/mytheme/frontend/', you need to change mytheme to your folder name


## How to run the frontend

1. from the command line go to the html folder
2. Run "npm install" 
3. Run "gulp" to do a single compile
4. Run gulp serve to start a watcher which will autocompile your frontend stuff whenver you save something

## How the frontend works

all the static stuff source (HTML, js, images...) goes into the html folder. We use gulp to compile everything and move it over to the wordpress theme from the html folder.

### styling
We use scss, the structure and code in there is boilerplate to help starting out if you don't like it or don't want it feel free to restructure and delete the files

### js
There are 3 folders

1. core - put all your custom code in .js files in here. Try to break it up into smaller files so it's more managable
2. utility - all your custom helpers and utility funcitons go here
3. vendor - all 3rd party scripts go here


### fonts
Just put stuff into the fonts folder and it gets copied over into the theme folder on compile

### icons
this is for font icons just place whatever you are using here

### img
all your static images go here, feel free to use subfolders

## How should frontend developers create templates

In the theme you have a static-templates folder. Create php templates here that are fully static html. You also have in the theme root your footer-static and header-static where 
you can edit the header and footer. The Wordpress developer will come in later and copy this code into actual dynamic templates and delete your templates when they are no longer needed.