getForumTitle() public method

Params: $forum_id (integer) - forum id to check
public getForumTitle ( $forum_id )
  </head>

  <body>

	<?php 
require "inc/templates/navbar.php";
?>

    <div class="container">
	  <ol class="breadcrumb">
	    <li><a href="/forum">Home</a></li>
		<li><a href="/forum/view_forum/?fid=<?php 
echo htmlspecialchars($topic->forum_id);
?>
"><?php 
echo htmlspecialchars($forum->getForumTitle($topic->forum_id));
?>
</a></li>
	    <li class="active"><?php 
echo htmlspecialchars($topic->topic_title);
?>
</li>
	  </ol>
	<?php 
if (Session::exists('success_post')) {
    echo '<center>' . Session::flash('success_post') . '</center>';
}
if (Session::exists('failure_post')) {
    echo '<center>' . Session::flash('failure_post') . '</center>';
}
// Can the user post a reply?
Beispiel #2
0
	}
	</style>
	
  </head>

  <body>
	<?php 
// Load navbar
$smarty->display('styles/templates/' . $template . '/navbar.tpl');
// Generate content for template
if (Session::exists('failure_post')) {
    $smarty->assign('SESSION', Session::flash('failure_post'));
} else {
    $smarty->assign('SESSION', '');
}
$creating_topic_in = $forum_language['creating_topic_in_'] . htmlspecialchars($forum->getForumTitle($fid));
$smarty->assign('CREATING_TOPIC_IN', $creating_topic_in);
// Get labels available
$labels = '<h4 style="display:inline;">';
$labels_query = $queries->getWhere('forums_topic_labels', array('id', '<>', 0));
$available_label_ids = array();
foreach ($labels_query as $label) {
    $forum_ids = explode(',', $label->fids);
    if (in_array($fid, $forum_ids)) {
        $available_label_ids[] = $label->id;
    }
}
foreach ($available_label_ids as $label) {
    $query = $queries->getWhere('forums_topic_labels', array('id', '=', $label));
    $labels .= '<input type="radio" name="topic_label" value="' . $query[0]->id . '"> <span class="label label-' . htmlspecialchars($query[0]->label) . '">' . htmlspecialchars($query[0]->name) . '</span>&nbsp;&nbsp;';
}
Beispiel #3
0
		right: 0;  
		margin: auto;
	}
	</style>
	
  </head>

  <body>

	<?php 
require "inc/templates/navbar.php";
?>

    <div class="container">
      <h4>New topic in forum "<?php 
echo htmlspecialchars($forum->getForumTitle($fid));
?>
"</h4>
	  <?php 
if (Session::exists('failure_post')) {
    echo '<center>' . Session::flash('failure_post') . '</center>';
}
?>
	  <form action="" method="post">
		<input type="text" class="form-control input-lg" name="title" placeholder="Thread title">
		<br />
		<textarea name="content" id="reply" rows="3"><?php 
echo htmlspecialchars(Input::get('content'));
?>
</textarea>
		<br />