<?php } ?> </div> <!-- Discussions --> <div role="tabpanel" class="tab-pane fade" id="divDiscussions"> <div class="v-seperator"> </div> <?php if ($nr_discussions > 0) { ?> <ul class="list-group"> <?php foreach ($my_discussions as $dsc) { $info = ProjectInfo::getChapterInfo($dsc['project_id'], $dsc['domain_handle'], $dsc['volume_handle'], $dsc['part_handle'], $dsc['chapter_handle']); $link = ProjectInfo::assemblePath($dsc['project_id'], $dsc['domain_handle'], $dsc['volume_handle'], $dsc['part_handle'], $dsc['chapter_handle']); ?> <li class="list-group-item"> <span class="badge"><?php echo $info['heat_level']; ?> </span> <h4 class="list-group-item-heading"><a href="<?php echo $link; ?> "><?php echo h5($info['chapter_name']); ?> </a></h4> <p><?php
$form_action = "/fse_settings/projects/edit_chapter"; } else { $error_info = t('Bad domain or volume!'); } if (!isset($error_info)) { if (!fse_try_to_login()) { $error_info = t('You are not signed in.'); } else { $project_info = ProjectInfo::getBasicInfo($project_id); if ($project_info == false) { $error_info = t('Bad project'); } else { if (substr(ProjectInfo::getUserRights($project_id, $_SESSION['FSEInfo']['fse_id']), 1, 1) != 't') { $error_info = t('You have no right to edit content of this project!'); } else { $chapter_info = ProjectInfo::getChapterInfo($project_id, $domain_handle, $volume_handle, $part_handle, $chapter_handle); if ($chapter_info == false) { $error_info = t('Not existed chapter!'); } } } } } ?> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only"><?php echo t('Close'); ?>