Commit d37a7ace authored by Lily Yan's avatar Lily Yan Committed by Liam Morland
Browse files

RT#524593 Modify Events by audience block view for performance optimization.

parent 549f2a07
......@@ -390,18 +390,19 @@ function uw_ct_event_block_view($delta = '') {
break;
case 'events_by_audience':
$audience_tree = uw_ct_event_audience_taxonomy_tree(0);
$html = '<div class="item-list">';
$html .= uw_ct_event_audience_taxonomy_tree(0);
$html .= $audience_tree;
$html .= '</div>';
if (uw_ct_event_audience_taxonomy_tree(0)) {
if ($audience_tree) {
$block['subject'] = t('<button>Events by audience</button>');
$block['content'] = $html;
}
else {
$block['subject'] = t('');
$block['content'] = $html;
$block['subject'] = '';
}
break;
$block['content'] = $html;
break;
}
return $block;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment