aboutsummaryrefslogtreecommitdiff
path: root/muamba-widget.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'muamba-widget.tpl.php')
-rw-r--r--muamba-widget.tpl.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/muamba-widget.tpl.php b/muamba-widget.tpl.php
index 9a0916a..34a05cd 100644
--- a/muamba-widget.tpl.php
+++ b/muamba-widget.tpl.php
@@ -22,13 +22,22 @@ if ($node->uid != $user->uid) {
return;
}
elseif (!$available && $transactions['uid'] != $user->uid) {
- $content .= theme('image',
- array(
- 'path' => $path .'/images/unavailable.png',
- 'alt' => t('Item unavailable'),
- 'title' => t('Item unavailable'),
- )
- );
+ if (variable_get('muamba_allow_request_unavailable', FALSE) == TRUE) {
+ $content .= theme('muamba_widget_icon', array(
+ 'status' => MUAMBA_REQUESTED,
+ 'id' => $node->nid,
+ 'size' => $size,
+ ));
+ }
+ else {
+ $content .= theme('image',
+ array(
+ 'path' => $path .'/images/unavailable.png',
+ 'alt' => t('Item unavailable'),
+ 'title' => t('Item unavailable'),
+ )
+ );
+ }
}
elseif ($transactions['uid'] == $user->uid) {
$content .= theme('muamba_widget_requester', array(