コード例 #1
0
ファイル: memberhome.php プロジェクト: Yoyoyozo/webDiplomacy
 /**
  * The messages icon, no text
  * @return string
  */
 function memberMessagesFull()
 {
     if (count($this->newMessagesFrom)) {
         if (count($this->newMessagesFrom) == 1 && in_array('0', $this->newMessagesFrom)) {
             return libHTML::maybeReadMessages('board.php?gameID=' . $this->gameID . '#chatbox');
         } else {
             return libHTML::unreadMessages('board.php?gameID=' . $this->gameID . '#chatbox');
         }
     } else {
         return '';
     }
 }
コード例 #2
0
ファイル: notice.php プロジェクト: Yoyoyozo/webDiplomacy
    public function html()
    {
        global $User;
        $buf = '<div class="homeNotice ' . ($this->type == 'Game' ? '" gameID="' . $this->fromID . '"' : 'userID' . $this->fromID . '"') . '>
			<div class="homeForumGroup homeForumAlt' . libHTML::alternate() . '">
				<div class="homeForumSubject homeForumTopBorder">' . $this->fromLink() . '</div>
				<div class="homeForumPostAlt' . libHTML::alternate() . ' homeForumPost">
					<div class="homeForumPostTime">' . libTime::text($this->timeSent) . ' ';
        if (self::$recent) {
            $buf .= libHTML::unreadMessages();
        } elseif (self::$new) {
            $buf .= libHTML::maybeReadMessages();
        }
        $buf .= '</div>
					<div class="homeForumMessage">' . $this->text . '</div>
					<div style="clear:both"></div>
					</div>';
        if ($this->isRespondable()) {
            $buf .= '<div class="homeForumPostAlt' . libHTML::alternate() . ' homeForumPost">' . $this->replyBox() . '</div>';
        }
        $buf .= '	</div>';
        //<div class="homeForumMessage">'.$post['message'].'</div>
        /*
        			$buf .= '<div class="homeForumLink">
        					<div class="homeForumPostTime"><strong>'.$data['replies'].'</strong> replies</div>
        					<a href="forum.php?threadID='.$threadID.'#'.$threadID.'">Open</a>
        					</div>
        					</div>';*/
        $buf .= '<div class="hr"></div></div>';
        return $buf;
    }