Assets Folder/Files
The assets folder contains subfolders and files used across the site. The files are included in an assets folder of the project. The items listed below are subfolders within the assets folder.
Main level files
The main level assets files are those used on basically every page on the site. Files to set the configuration, navigation, header, and footer. See the section on Page Structure for more detail on some of these files.
Assets Subfolders
Within the assets folder are several subfolders as detailed below.
- ajax - Ajax files are used to obtain records from tables in the database. The term ajax comes for the JavaScript method for obtaining records from a database. Files are named 'ajax_Module.php' where Module generally identifies the associated database table.
- functions_java - JavaScript functions are used by JavaScript files across the site. All file names begin with an underscore character (_). Two files in this subfolder serve a specific purpose.
- _AllBuildJava.js - This file combines the individual function files into a single file (_allFunctionsJava.js). Thus, if a change is made to a function this file must be run to update the single file.
The following three files are also combined into the single function file. Each file consists of a JavaScript array containing relevant information about the county. County in these files would be the county name.- County_article.js - A JS array detailing the elements used with article files
- County_co_maps.js - A JS array detailing the map elements used for headings and coordinates.
- County_config.js - A JS array similar to the County_config.php file.
- _AllBuildJava.js - This file combines the individual function files into a single file (_allFunctionsJava.js). Thus, if a change is made to a function this file must be run to update the single file.
- functions_php - PHP functions are used by PHP files across the site. All names begin with an underscore character (_). As with the JavaScript functions the individual function files are combined into one file. This is accomplished by the system at page load time so special building is not required.
- geojson - The geojson files detail the coordinates of an entity, The files are of two varieties. See the section on Special Files for more detail. Files for both Counties and Towns are included in this subfolder.
- County - Provides the outline coordinates for the main county and the surrounding counties.
- Town - Provides the outline coordinates for any towns within the area of the main county.
- json - Several json files are used to specify various entities of the site. Except for the County_master.json file, each file MUST begin with the name of the county (i.e., Delta, Fannin, Holmes, etc.). See the section on Special Files for more detail.
- menus - may not be needed if County_subnav.json file is used.
No Comments