blob: ff5c14092c92519698ad7e9342de5b3bf912e91a (
plain)
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
|
<?php
/**
* @file
* Template for displaying the muamba widget.
*
* @todo
* Show item status: can it be requested?
* Is this item already requested?
*/
// Add javascript and CSS files
$path = drupal_get_path('module', 'muamba');
drupal_add_js($path .'/muamba.js');
drupal_add_css($path .'/muamba.css');
$icon = theme('image',
array(
'path' => $path .'/images/request.png',
'alt' => t('Request item'),
'title' => t('Request item'),
)
);
$output = '<div class="muamba-widget">';
$output .= l($icon, 'muamba/request/'. $nid, array('html' => TRUE));
$output .= '</div>';
print $output;
|