Ejemplo n.º 1
0
 * @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');
    ?>
</td>
Ejemplo n.º 2
0
<?php

// get groups be available for selection
$Category = new StreamCategory();
// variable cannot be named to groups, will contaminate current $this->group
$categories = $Category->getGroups();
if ($group->id) {
    $title = JText::sprintf('COM_STREAM_LABEL_EDIT_GROUP');
} else {
    $title = JText::sprintf('COM_STREAM_LABEL_ADD_NEW_GROUP');
    $group->access = 0;
}
?>

<div class="modal group-modal" id="group-create-message-modal" style="display: none;">
	<div class="modal-header">
		<a class="close" data-dismiss="modal">×</a>
		<h3><?php 
echo $title;
?>
</h3>
	</div>
	<div class="modal-body">
		<form name="groups-edit">
			<div class="control-group">
				<label class="control-label" for="title"><?php 
echo JText::_('COM_STREAM_LABEL_GROUP_NAME');
?>
:</label>
				
				<div class="controls">