예제 #1
0
파일: overview.php 프로젝트: sinfocol/gwf3
<h1><?php 
echo $tVars['tag_title'] . GWF_Button::search($tVars['href_search'], $tLang->lang('btn_search'));
?>
</h1>
<?php 
if ($tVars['new_link_count'] > 0) {
    echo '<div class="gwf_buttons_outer">' . PHP_EOL;
    echo '<div class="gwf_buttons">' . PHP_EOL;
    if (GWF_Session::isLoggedIn()) {
        echo GWF_Button::checkmark(true, $tLang->lang('btn_mark_read'), $tVars['href_mark_read']);
    }
    echo GWF_Button::bell($tVars['href_new_links'], $tLang->lang('btn_new_links'));
    echo $tLang->lang('info_newlinks', array($tVars['new_link_count']));
    echo '</div></div>' . PHP_EOL;
}
echo $tVars['cloud'];
echo $tVars['page_menu'];
echo $tVars['links'];
echo $tVars['search'];
echo $tVars['page_menu'];
if ($tVars['may_add_link']) {
    echo GWF_Button::wrapStart();
    echo GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']);
    echo GWF_Button::wrapEnd();
} else {
    echo GWF_Box::box($tVars['text_add']);
}
예제 #2
0
파일: forum.old.php 프로젝트: sinfocol/gwf3
?>


<!-- Banner Ads -->
<?php 
echo GWF_Website::getBanners('forum', 'forum');
?>
<hr/>


<!-- Title -->
<?php 
$options = GWF_User::isLoggedIn() ? GWF_Button::options($tVars['href_options'], $tLang->lang('btn_options')) : '';
$bell = GWF_Button::bell($tVars['href_unread'], $tLang->lang('btn_unread'));
$newthreads = $tVars['unread_threads'] > 0 ? sprintf('[%s]', $tVars['unread_threads']) . $bell : '';
$search = GWF_Button::search($tVars['href_search'], $tLang->lang('btn_search'));
$pollsbtn = GWF_Button::generic($tLang->lang('btn_polls'), $tVars['href_polls']);
?>

<h1><?php 
echo $options . $tLang->lang('forum_title') . $search . $newthreads . $pollsbtn;
?>
</h1>

<hr/>


<!-- Nav Tree -->
<?php 
if (!$b->isRoot()) {
    ?>
예제 #3
0
파일: forum.php 프로젝트: sinfocol/gwf3
<?php

$b = $tVars['board'];
$b instanceof GWF_ForumBoard;
$user = GWF_Session::getUser();
$is_mod = GWF_User::isInGroupS('moderator');
?>

<!-- Title -->
<?php 
$options = $user !== false ? GWF_Button::options($tVars['href_options'], $tLang->lang('btn_options')) : '';
$newthreads = $tVars['unread_threads'] > 0 ? GWF_Button::bell($tVars['href_unread'], $tLang->lang('btn_unread')) . '[' . $tVars['unread_threads'] . ']' : '';
$search = $tVars['module']->isSearchAllowed() ? GWF_Button::search($tVars['href_search'], $tLang->lang('btn_search')) : '';
$pollsbtn = GWF_Button::generic($tLang->lang('btn_polls'), $tVars['href_polls']);
?>

<h1><?php 
echo $options . $search . $newthreads . $tLang->lang('forum_title') . $pollsbtn;
?>
</h1>


<!-- Nav Tree -->
<?php 
if (!$b->isRoot()) {
    ?>
	<div class="gwf_board_quicktree"><?php 
    echo Module_Forum::getNavTree();
    ?>
</div>
<?php