You are here

function theme_bbb_block_meeting in BigBlueButton 6

Same name and namespace in other branches
  1. 8 modules/bbb_node/bbb_node.module \theme_bbb_block_meeting()
  2. 7 bbb.module \theme_bbb_block_meeting()

Theme meeting details block

1 theme call to theme_bbb_block_meeting()
bbb_block_meeting in ./bbb.module
Meeting details block

File

./bbb.module, line 788
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

function theme_bbb_block_meeting($meeting) {
  $output = '<div class="bbb-meeting-details">';
  if ($meeting->welcome) {
    $output .= '<div class="bbb-welcome">' . $meeting->welcome . '</div>';
  }
  $output .= theme('bbb_meeting_status', $meeting);
  if ($meeting->dialNumber) {
    $output .= '<div class="bbb-dial-number">' . t('Phone: @number', array(
      '@number' => $meeting->dialNumber,
    )) . '</div>';
  }
  if (user_access('attend meetings') || user_access('administer big blue button')) {
    $output .= '<div class="bbb-meeting-attend">' . l('Attend meeting', 'node/' . $meeting->nid . '/meeting/attend') . '</div>';
  }
  if (user_access('moderate meetings') || user_access('administer big blue button')) {
    $output .= '<div class="bbb-meeting-moderate">' . l(t('Moderate meeting'), 'node/' . $meeting->nid . '/meeting/moderate') . '</div>';
  }
  if (user_access('moderate meetings') || user_access('administer big blue button')) {
    $output .= '<div class="bbb-meeting-end">' . l(t('Terminate meeting'), 'node/' . $meeting->nid . '/meeting/end-confirm') . '</div>';
  }
  $output .= '</div>';
  return $output;
}