blob: 1b2a598513829cf0d0de2428b7df7b844b28d498 (
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/basket.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;
|