コード例 #1
0
if (!defined('HABARI_PATH')) {
    die('No direct access');
}
$theme->display('header');
?>
<!-- entry.multiple -->
	<div class="content">
	<div id="primary">
		<div id="primarycontent">
			<h3><?php 
echo $forum->title_out;
?>
</h3>
			<?php 
if (Spreking::has_permission('post_thread', $forum)) {
    ?>
<a href="<?php 
    echo $forum->new_thread_link;
    ?>
">Create New Thread</a><?php 
}
?>
			<ul>
			<?php 
foreach ($threads as $post) {
    ?>
				<li>
					<a href="<?php 
    echo $post->permalink;
    ?>
コード例 #2
0
 /**
  * Create rewrite rule
  */
 public function action_init()
 {
     // self::uninstall();
     // self::install();
     if (Options::get('spreking__anonymity') == TRUE) {
         self::$anonymity = true;
     } else {
         self::$anonymity = false;
     }
     $this->add_template('forum_index', dirname(__FILE__) . '/forum_index.php');
     $this->add_template('subforum_index', dirname(__FILE__) . '/subforum_index.php');
     $this->add_template('new_thread', dirname(__FILE__) . '/new_thread.php');
     $this->add_template('thread', dirname(__FILE__) . '/thread.php');
     $this->add_rule('"forum"', 'forum_index');
     $this->add_rule('"forum"/forum/"new"', 'forum_new_thread');
     $this->add_rule('"forum"/forum/thread/"close"', 'forum_close_thread');
     $this->add_rule('"forum"/forum/thread/"open"', 'forum_open_thread');
     $this->add_rule('"forum"/forum/thread', 'forum_view_thread');
     $this->add_rule('"forum"/forum', 'subforum_index');
     $this->add_rule('"person"/user', 'view_person');
 }
コード例 #3
0
ファイル: thread.php プロジェクト: habari-extras/spreking
								<a href="<?php 
    echo $reply->permalink;
    ?>
">Reply</a> by <a href="<?php 
    echo $replier->permalink;
    ?>
"><?php 
    echo $replier->displayname;
    ?>
</a>:
								<p><?php 
    echo $reply->content_out;
    ?>
</p>
								<?php 
    if (Spreking::has_permission('edit_reply', $reply)) {
        ?>
									<p><a href="<?php 
        echo $reply->editlink;
        ?>
">Edit Reply</a></p>
								<?php 
    }
    ?>
							</li>
						<?php 
}
?>
						</ol>
					</div>