コード例 #1
0
}
$ret_info->status = 'success';
$nr = 0;
foreach ($sections as $pst) {
    if ($nr >= $nr_requested) {
        break;
    }
    $author_info = FSEInfo::getNameInfo($pst['author_id']);
    if ($author_info == false) {
        continue;
    }
    $comments = DocSectionManager::getCachedComments($domain_handle, $pst['id']);
    if (count($comments) == 0) {
        continue;
    }
    $plain_content = DocSectionManager::getPlainContent($pst['id'], $pst['curr_ver_code']);
    $link = ProjectInfo::assemblePath($pst['project_id'], $pst['domain_handle'], $pst['volume_handle'], $pst['part_handle'], $pst['chapter_handle']);
    $link .= '#section-' . $pst['id'];
    if (strlen($plain_content['title']) == 0) {
        $page = Page::getByID($pst['page_id']);
        $plain_content['title'] = $page->getCollectionName();
    }
    $ret_info->detail .= '
<div class="panel panel-default">
<div class="panel-body">
	<div class="media" style="margin-top:15px">
		<a class="media-left" href="' . FSEInfo::getPersonalHomeLink($author_info) . '">
			<img class="middle-avatar" src="' . $author_info['avatar_url'] . '" alt="' . $author_info['nick_name'] . '">
		</a>
		<div class="media-body">
			<h4 class="media-heading">
コード例 #2
0
ファイル: personal_homepage.php プロジェクト: rratcliffe/fsen
    }
    ?>
						</div>

						<!-- Favorites -->
						<div role="tabpanel" class="tab-pane fade" id="divFavorites">
							<div class="v-seperator">
							</div>
<?php 
    if ($nr_favorites > 0) {
        ?>
							<ul class="list-group">
<?php 
        foreach ($my_favorites as $fvr) {
            $info = DocSectionManager::getSectionInfo(false, $fvr['section_id']);
            $plain_content = DocSectionManager::getPlainContent($fvr['section_id'], $info['curr_ver_code']);
            $link = ProjectInfo::assemblePath($info['project_id'], $info['domain_handle'], $info['volume_handle'], $info['part_handle'], $info['chapter_handle']);
            $link .= '#section-' . $fvr['section_id'];
            if (strlen($plain_content['title']) == 0) {
                $page = Page::getByID($info['page_id']);
                $plain_content['title'] = $page->getCollectionName();
            }
            ?>
<li class="list-group-item">
	<span class="badge"><?php 
            echo $info['heat_level'];
            ?>
</span>
	<h4 class="list-group-item-heading"><a href="<?php 
            echo $link;
            ?>