-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.php
49 lines (40 loc) · 1.87 KB
/
template.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
<?php
function edoweb_lbz_preprocess_html(&$variables) {
// Add the bundle type of the currently viewed entity
$entity = menu_get_object(EDOWEB_ENTITY_TYPE);
if ($entity) {
$variables['classes_array'][] = "entity-type-{$entity->bundle_type}";
}
/**
* make google fonts available for themes
* uncomment the font you wish to use
*
*/
// Droid font family: a complete family with serif and sans
drupal_add_css('https://fonts.googleapis.com/css?family=Droid+Serif|Droid+Sans:400,700&subset=latin,latin-ext', array('type' => 'external'));
// Signika font: only serif
drupal_add_css('https://fonts.googleapis.com/css?family=Signika:400,600,700,300&subset=latin,latin-ext', array('type' => 'external'));
// PT font family: a complete family with serif and sans
drupal_add_css('https://fonts.googleapis.com/css?family=PT+Serif|PT+Sans|PT+Sans+Narrow|PT+Sans+Caption&subset=latin,latin-ext', array('type' => 'external'));
// Add Font-Awesome
drupal_add_css('css/font-awesome.min.css');
drupal_add_css('bootstrap/css/bootstrap.css');
// drupal_add_css('bootstrap/css/bootstrap-theme.min.css');
}
// Look for an appropriate template file for content types
function zbmed_drupal_theme_preprocess_page(&$variables) {
if (isset($variables['node']->type)) {
// If the content type's machine name is "my_machine_name" the file
// name will be "page--my-machine-name.tpl.php".
$variables['theme_hook_suggestions'][] = 'page__' . $variables['node']->type;
}
}
// Look for an appropriate template file for content types
function zbmed_drupal_theme_preprocess_node(&$variables) {
if (isset($variables['node']->type)) {
// If the content type's machine name is "my_machine_name" the file
// name will be "page--my-machine-name.tpl.php".
$variables['theme_hook_suggestions'][] = 'node__' . $variables['node']->type;
}
}
?>