aboutsummaryrefslogtreecommitdiff
path: root/muamba-widget.tpl.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-07 20:57:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-07 20:57:32 -0200
commit23843e21523a7b2a73c54eff2a71e6a481c56cae (patch)
tree8d7aa81bfded818fb607c63870372ac651af389d /muamba-widget.tpl.php
parentc205ae2d3a8eafcd8a07d2f0bcac1b2ea48a6a0f (diff)
downloadmuamba-23843e21523a7b2a73c54eff2a71e6a481c56cae.tar.gz
muamba-23843e21523a7b2a73c54eff2a71e6a481c56cae.tar.bz2
Adding muamba_widget() for widget handling
Diffstat (limited to 'muamba-widget.tpl.php')
-rw-r--r--muamba-widget.tpl.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/muamba-widget.tpl.php b/muamba-widget.tpl.php
index 09b43bc..bd856b8 100644
--- a/muamba-widget.tpl.php
+++ b/muamba-widget.tpl.php
@@ -31,9 +31,7 @@ if ($node->uid != $user->uid) {
);
}
elseif ($transactions['uid'] == $user->uid) {
- foreach (muamba_actions_available('sent', $transactions['status']) as $action) {
- $content .= theme('muamba_widget_icon', array('status' => $action, 'id' => $transactions['mid']));
- }
+ $content .= theme('muamba_widget_requester', array('transaction' => $transactions));
}
else {
$content .= theme('muamba_widget_icon', array('status' => MUAMBA_REQUESTED, 'id' => $node->nid));
@@ -41,12 +39,7 @@ if ($node->uid != $user->uid) {
}
else {
foreach ($transactions as $transaction) {
- $requester = user_load($transaction['uid']);
- $content .= t('Request from @name.', array('@name' => $requester->name));
- $content .= '<br />';
- foreach (muamba_actions_available('received', $transaction['status']) as $action) {
- $content .= theme('muamba_widget_icon', array('status' => $action, 'id' => $transaction['mid']));
- }
+ $content .= theme('muamba_widget_owner', array('transaction' => $transaction));
}
}