SHARE
TWEET

Untitled

a guest Jan 2nd, 2012 60 Never
  1. public function DiscussionsController_AfterDiscussionTabs_Handler($Sender){
  2.                 $CategoryModel = new CategoryModel();
  3.                 $_CategoryData = $CategoryModel->GetFull();
  4.                 foreach ($_CategoryData->Result() as $Category) {
  5.                         if ($Category->Name <> 'Root') $CountDiscussions = $CountDiscussions + $Category->CountDiscussions;
  6.                         if ($Category->Name <> 'Root'){
  7.                                 echo '<li><a href="http://EXAMPLE.COM/VANILLA-FORUM/categories/'. strtolower($Category->Name) .'" class="TabLink">'.$Category->Name.' <span>'.$Category->CountDiscussions.'</span></a></li>';
  8.                         }
  9.                 }
  10.    }
RAW Paste Data
Top