forked from anyblades/subtle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
81 lines (74 loc) · 1.69 KB
/
Copy pathtemplate.php
File metadata and controls
81 lines (74 loc) · 1.69 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* @file
* Provides preprocess logic and other functionality for theming.
*/
// Ensure that __DIR__ constant is defined:
if (!defined('__DIR__')) {
define('__DIR__', dirname(__FILE__));
}
// Require files:
require_once __DIR__ . '/includes/utils.inc';
require_once __DIR__ . '/includes/theme.inc';
// Require module-specific files:
$requires = file_scan_directory(__DIR__ . '/includes/modules', '/\.inc$/');
foreach ($requires as $require) {
if (module_exists($require->name)) {
require_once $require->uri;
}
}
/**
* Implements hook_theme().
*/
function tweme_theme($existing, $type, $theme, $path) {
return array(
'navbar_brand' => array(
'variables' => array(
'name' => NULL,
'href' => NULL,
'logo' => NULL,
),
),
'navbar_menu_link' => array(
'render element' => 'element',
),
'navbar_toggler' => array(),
'page_headline' => array(
'variables' => array(
'breadcrumb' => NULL,
'title_prefix' => array(),
'title' => NULL,
'title_suffix' => array(),
),
),
'page_controls' => array(
'variables' => array(
'tabs' => array(),
'actions' => array(),
),
),
'copyright' => array(
'variables' => array(
'name' => NULL,
),
),
'pure_form_wrapper' => array(
'render element' => 'element',
),
'search_input_wrapper' => array(
'render element' => 'element',
),
);
}
/**
* Implements hook_css_alter().
*/
function tweme_css_alter(&$css) {
unset($css['modules/poll/poll.css']);
}
/**
* Implements hook_js_alter().
*/
function tweme_js_alter(&$js) {
_tweme_upgrade_jquery($js['misc/jquery.js']);
}