Generate division pages. Need to update text.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
# The folder containing data for each council.
|
||||
# Includes the list of candidates and any media.
|
||||
DATA_PATH="../spl-data"
|
||||
DATA_PATH="../spl-data/federal_2025"
|
||||
|
||||
# Controls the flags that are passed to every usage of the wp command.
|
||||
#WP_FLAGS="--allow-root --path=/var/www/html"
|
||||
|
||||
@@ -35,12 +35,12 @@ if (isset($config["survey"])) {
|
||||
|
||||
<?php
|
||||
|
||||
$wardCount = count($config['wardNames']);
|
||||
$wardCount = 1; //count($config['wardNames']);
|
||||
|
||||
if ($wardCount > 1) {
|
||||
$wardsDescription = $config['councilName'] . " is divided into " . $wardCount . " wards:";
|
||||
$wardsDescription = $config['divisionName'] . " is divided into " . $wardCount . " wards:";
|
||||
} else {
|
||||
$wardsDescription = $config['councilName'] . " is unsubdivided and does not contain any wards.";
|
||||
$wardsDescription = $config['divisionName'] . " is unsubdivided and does not contain any wards.";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -106,7 +106,7 @@ if (isset($config["survey"])) {
|
||||
$groupNames = $config['groupNames'];
|
||||
$propertyOnCandidate = 'Group';
|
||||
} else {
|
||||
$groupNames = $config['wardNames'];
|
||||
$groupNames = ['Fixme']; // $config['wardNames'];
|
||||
$propertyOnCandidate = 'Ward';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user