* @copyright Copyright (C) 2011 - 2013 Slashes & Dots Sdn Bhd. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Offiria Team */ // no direct access defined('_JEXEC') or die; ?> <div class="account-navbar"> <?php echo $this->showNavBar(); ?> </div><!--profile-navbar--> <?php $Category = new StreamCategory(); $blogs = $Category->getBlogs(); $events = $Category->getEvents(); $groups = $Category->getGroups(); $listings = array('blog' => $blogs, 'event' => $events, 'group' => $groups); foreach ($listings as $type => $lists) { ?> <div id="category-container"> <h3 class="section-title"><?php echo JText::_('COM_ACCOUNT_LABEL_' . strtoupper($type) . '_CATEGORIES'); ?> </h3> <table class="table table-bordered table-striped table-novborder"> <tr> <td class="table-header"><?php echo JText::_('COM_ACCOUNT_LABEL_CATEGORY'); ?>
<div class="clear"></div> </div> <div class="stream-post-details-milestone" style="display: none;"> <label><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_CATEGORY_PROMPT'); ?> </label> <select name="event_category"> <option><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_PAGE_DEFAULT_CATEGORY'); ?> </option> <?php $table = new StreamCategory(); $events = $table->getEvents(); foreach ($events as $event) { // add category that has been added ?> <option value="<?php echo $event->id; ?> "><?php echo $event->category; ?> </option> <?php } ?> </select> </div>