-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
68 lines (55 loc) · 1.59 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
global $selected_budget;
$d = dirname(__FILE__) . '/';
// VARIABLES IN ORIGINAL CODE
//
// $siteName = "Portland Maine Visual budget";
// $siteURL = "http://www.portlandmaine.gov/201/Budget-Financial-Documents";
// $municipalURL = "http://www.portlandmaine.gov/201/Budget-Financial-Documents";
// $feedbackEmail = "theportlandbudget@gmail.com";
// $shortName = "Portland";
// $longName = "Portland";
// $state = "Maine";
// $stateAbbreviation = "ME";
// $gaKey = "";
// ROB KOROBKIN - WordPress-Configurable Fields
// {
// "slug":"portland_city",
// "page_title":"City of Portland - Municipal Budget"
// "sections":["revenues","expenses","funds"],
//
// "include_taxes":"1",
//
// "title":"See Portland's budget.",
// "header_html":"...",
// "tax_description":"...",
// "budget_questions": "...",
//
// "custom_js":"",
//
// "info_source_name":"City of Portland",
// "info_source_url":"URL"
// };
# App Path
$app_dir = plugins_url('visgov_wp') . '/';
?>
<script>
var app_path = '<?php echo $app_dir; ?>';
var budget_settings = <?php echo json_encode($selected_budget -> meta); ?>;
budget_settings.adjustForInflation = <?php echo isset($_GET['afi']) ? 1 : 0; ?> ;
var inflation = [
[ 2018, 1 ],
[ 2017, 1.7 ],
[ 2016, 0.8 ],
[ 2015, 0.2 ],
[ 2014, 2 ],
[ 2013, 2 ],
[ 2012, 1.4 ]
];
</script>
<?php
require_once $d . 'includes/home.php';
require_once $d . 'includes/container.php';
require_once $d . 'includes/templates.php';
require_once $d . "includes/datafiles.php";
?>