-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathfunctions.php
More file actions
32 lines (28 loc) · 788 Bytes
/
functions.php
File metadata and controls
32 lines (28 loc) · 788 Bytes
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
<?php
/**
* SandersForPresident includes
*/
$sanders_includes = array(
'lib/init.php',
'lib/assets.php',
'lib/services/news/remote_news_feed.php',
'lib/services/news/news_feed.php',
'lib/services/events/remote_events.php',
'lib/models/base.php',
'lib/models/post.php',
'lib/models/header.php',
'lib/models/footer.php',
'lib/models/event_page.php',
'lib/models/widget.php',
'lib/models/news/abstract_news_article.php',
'lib/models/news/remote_news_article.php',
'lib/models/news/local_news_article.php'
);
foreach ($sanders_includes as $file) {
if (!$filepath = locate_template($file)) {
trigger_error(sprintf('Error locating %s for inclusion', $file), E_USER_ERROR);
}
require_once($filepath);
}
// cleanup global vars
unset($file, $filepath);