From 3697ce7f9d83762c8ac015f11219b0d02f9ddf3e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Sep 2011 22:53:51 -0300 Subject: Colorbox support --- muamba.theme.inc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'muamba.theme.inc') diff --git a/muamba.theme.inc b/muamba.theme.inc index b2da534..c2cc38f 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -9,6 +9,9 @@ * Theme callback. */ function theme_muamba_transactions($variables) { + $path = drupal_get_path('module', 'muamba'); + drupal_add_js($path .'/muamba.js'); + $rows = array(); $type = $variables['type']; $transactions = $variables['transactions']; @@ -41,12 +44,20 @@ function theme_muamba_transactions($variables) { 'user' => $transaction['user']->name, 'status' => t(muamba_statuses($transaction['status'])), 'actions' => implode($actions, ' | '), - 'thread' => l(t('view'), 'messages/view/'. $transaction['thread_id']), + 'thread' => l( + t('view messages'), + 'messages/view/'. $transaction['thread_id'], + array( + 'attributes' => array( + 'class' => array('colorbox-ajax', 'colorbox-load') + ) + ) + ) ); } // Make a table for them. - $header = array(t('Asset'), t('User'), t('Status'), t('Actions'), t('Messages')); + $header = array(t('Item'), t('User'), t('Status'), t('Actions'), t('Negotiation')); $output .= theme('table', array('header' => $header, 'rows' => $rows)); $output .= ''; -- cgit v1.2.3