t('Commented Date'), 'icon' => '', 'url'=>z_root() . '/' . $cmd . '?f=&order=comment' . $filter, 'sel'=> $commentord_active, 'title' => t('Order by last commented date'), ]; $tabs[] = [ 'label' => t('Posted Date'), 'icon' => '', 'url'=>z_root() . '/' . $cmd . '?f=&order=post' . $filter, 'sel'=> $postord_active, 'title' => t('Order by last posted date'), ]; $tabs[] = array( 'label' => t('Date Unthreaded'), 'icon' => '', 'url' => z_root() . '/' . $cmd . '?f=&order=unthreaded' . $filter, 'sel' => $unthreaded_active, 'title' => t('Order unthreaded by date'), ); $arr = ['tabs' => $tabs]; call_hooks('activity_order', $arr); $o = ''; if($arr['tabs']) { $content = replace_macros(get_markup_template('common_pills.tpl'), [ '$pills' => $arr['tabs'], ]); $o = replace_macros(get_markup_template('common_widget.tpl'), [ '$title' => t('Stream Order'), '$content' => $content, ]); } return $o; } }