-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php.old
77 lines (61 loc) · 1.93 KB
/
template.php.old
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
<?php
/**
* @file
* Template overrides as well as (pre-)process and alter hooks for the
* roblib_2017 theme.
*/
function roblib_2017_field__field_proxied_link__database($variables) {
// the name of the function came from the devel themer tool after 1st putting dpm() in themename_field()
// dpm($variables);
// this dumps the vars using the devel mod. use it to target the varibles printed below.
$output = '';
$output = '<a href="http://proxy.library.upei.ca/login?url=' . $variables['items'][0]['#element']['display_url'] . '">' . $variables['items'][0]['#element']['title'] . '</a>';
return $output;
}
/**
* Override or insert variables for the html template.
*/
/* -- Delete this line if you want to use this function
function roblib_2017_preprocess_html(&$vars) {
}
function roblib_2017_process_html(&$vars) {
}
// */
/**
* Override or insert variables for the page templates.
*/
function roblib_2017_preprocess_page(&$vars) {
if (!empty($vars['logo'])) {
$vars['site_logo'] = '<a href="http://www.upei.ca" class="active"><img class="site-logo" typeof="foaf:Image" src="http://library.upei.ca/sites/library.upei.ca/files/upei_shield_logo_rusttext.small_.png" alt="Robertson Library"></a>';
}
}
function roblib_2017_process_page(&$vars) {
}
// */
/**
* Override or insert variables into the node templates.
*/
/* -- Delete this line if you want to use these functions
function roblib_2017_preprocess_node(&$vars) {
}
function roblib_2017_process_node(&$vars) {
}
// */
/**
* Override or insert variables into the comment templates.
*/
/* -- Delete this line if you want to use these functions
function roblib_2017_preprocess_comment(&$vars) {
}
function roblib_2017_process_comment(&$vars) {
}
// */
/**
* Override or insert variables into the block templates.
*/
/* -- Delete this line if you want to use these functions
function roblib_2017_preprocess_block(&$vars) {
}
function roblib_2017_process_block(&$vars) {
}
// */