Skyscrapers profile templates (v2)
CSS JavaScript PHP
Permalink
Failed to load latest commit information.
fields Initial commit Oct 28, 2016
includes Initial commit Oct 28, 2016
scripts Initial commit Oct 28, 2016
styles Initial commit Oct 28, 2016
uikit Initial commit Oct 28, 2016
README.md Convert the README file from .txt to .md Oct 28, 2016
_func.php Initial commit Oct 28, 2016
_init.php Initial commit Oct 28, 2016
_main.php Initial commit Oct 28, 2016
admin.php Initial commit Oct 28, 2016
architect.php Initial commit Oct 28, 2016
architects.php Initial commit Oct 28, 2016
basic-page.php Initial commit Oct 28, 2016
browse.php Initial commit Oct 28, 2016
cities.php Initial commit Oct 28, 2016
city.php Initial commit Oct 28, 2016
home.php Initial commit Oct 28, 2016
list-all.php Initial commit Oct 28, 2016
search.php Initial commit Oct 28, 2016
skyscraper.php Initial commit Oct 28, 2016

README.md

Skyscraper template files

In this Skyscrapers profile, please note the following locations:

_init.php

This file is automatically included before all other template files. We use it to define our output regions, while the individual template files populate those regions.

_main.php

This file is automatically included after all other template files. We use it as our main markup file to output everything. It outputs the regions defined in the _init.php file into the appropriate locations.

_func.php

This file contains shared functions for finding skyscrapers and rendering lists of skyscrapers, maps, and more.

includes/

We have placed our common markup rendering/views in this directory. These files are rendered from the template files as needed.

Requirements

These template files require ProcessWire 3.0.39 or newer.

These template files also require the following settings in your /site/config.php file:

  • $config->useFunctionsAPI = true;
  • $config->prependTemplateFile = '_init.php';
  • $config->appendTemplateFile = '_main.php';