diff options
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r-- | muamba.theme.inc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/muamba.theme.inc b/muamba.theme.inc index ef169bf..8369e6f 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -88,9 +88,7 @@ function theme_muamba_colorbox_link($variables) { * Theme callback. */ function theme_muamba_request_message($transaction = NULL) { - $link = l(t('your requests page'), 'muamba'); - return t('Hi, I would like to request this item of yours. Please visit @link to manage this request', - array('@link' => $link)); + return t('Hi, I would like to request this item of yours.'); } /** @@ -189,10 +187,16 @@ function theme_muamba_widget_owner($variables) { * Theme callback. */ function theme_muamba_widget_requester($variables) { - $content = ''; + $output = ''; + $content = ''; $transaction = $variables['transaction']; $size = $variables['size']; + if ($size != 'small') { + $output .= '<h3>'. t('Options') .'</h3>'; + $output .= '<br />'; + } + foreach (muamba_actions_available('sent', $transaction) as $action) { $content .= theme('muamba_widget_icon', array( 'status' => $action, @@ -201,5 +205,7 @@ function theme_muamba_widget_requester($variables) { )); } - return $content; + if (!empty($content)) { + return $output . $content; + } } |