本文整理汇总了PHP中Forum::getForumTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Forum::getForumTitle方法的具体用法?PHP Forum::getForumTitle怎么用?PHP Forum::getForumTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Forum
的用法示例。
在下文中一共展示了Forum::getForumTitle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
</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?
示例2: htmlspecialchars
}
</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> ';
}
示例3: htmlspecialchars
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 />