t('Commented Date'), 'url'=>z_root() . '/' . $cmd . '?f=&order=comment' . $filter, 'sel'=> $commentord_active, 'title' => t('Sort by Comment Date'), ]; $tabs[] = [ 'label' => t('Posted Date'), 'url'=>z_root() . '/' . $cmd . '?f=&order=post' . $filter, 'sel'=> $postord_active, 'title' => t('Sort by Post Date'), ]; $tabs[] = array( 'label' => t('Date Unthreaded'), 'url' => z_root() . '/' . $cmd . '?f=&order=unthreaded' . $filter, 'sel' => $unthreaded_active, 'title' => t('Activity Stream - by date'), ); $arr = ['tabs' => $tabs]; call_hooks('network_tabs', $arr); $tpl = get_markup_template('common_pills.tpl'); if($arr['tabs']) { return replace_macros($tpl, [ '$title' => t('Order Activity by'), '$tabs' => $arr['tabs'], ]); } else { return ''; } } }