示例#1
0
<?php

$nodedata = unserialize($node->data);
$node_privatemsg_allow = $nodedata['privatemsg_allow'];
global $user;
if (!_is_forum()) {
    include 'node.tpl.php';
    return;
}
$curr_user = user_load(array('uid' => $userid));
$sig = $curr_user->signature;
if ($node->title) {
    print '<h1>' . $title . '</h1>';
}
if (!$user->uid && !$comment->cid) {
    print '<div class="links">' . $links . '</div>';
}
?>
<div class="forum-side"><strong><?php 
print $name;
?>
</strong>
	 <div class="picture"><?php 
print $picture;
?>
</div>
	    <?php 
if (module_exists('flatforum')) {
    ?>
        <?php 
    print t('Joined ') . ' ' . $joined;
示例#2
0
文件: template.php 项目: keizo/kulu
function phptemplate_pager($tags = array(), $limit = 10, $element = 0, $attributes = array())
{
    $pager = is_file(path_to_theme() . 'pager.tpl.php') ? _phptemplate_callback('comment_form', array('tags' => $tags, 'limit' => $limit, 'element' => $element, 'attributes' => $attributes)) : theme_pager($tags, $limit, $element, $attributes);
    return _is_forum() ? '<tr><td colspan="2">' . $pager . '</td></tr>' : $pager;
}