Main PHP Files
The PHP files in the main directory are the defining structure for each page of the site. Follow these guidelines for naming the main level PHP files and their associated assets:
Naming Convention
- Use lowercase letters with words separated by hyphens (-) or underscores (_).
- Avoid spaces or special characters; use only A–Z, a–z, 0–9, _, and -.
Usage
File names should clearly identify the purpose of the page. For example, cemeteries.php should be used for a list of all county cemeteries, while cemetery.php should be used for an individual cemetery page. Likewise for church/churches, school/schools, and town/towns.
Related File Names
Each PHP file must have an associated JS (.js) and CSS (.scss) file. To ensure consistent file loading, these files must share the exact same name as the PHP file (e.g., cemetery.php, cemetery.js, and cemetery.scss).
No Comments