コード例 #1
0
ファイル: manage.php プロジェクト: sebadorn/aestas3
            } else {
                $area = 'comment';
                $areaName = 'Comments';
                if (ae_CommentModel::isValidStatus($status)) {
                    $filter['WHERE'] = 'co_status = "' . $status . '"';
                } else {
                    $filter['WHERE'] = 'co_status != "trash" AND co_status != "spam"';
                }
                $list = new ae_CommentList($filter);
            }
        }
    }
}
$urlBasis = '?area=manage&offset=' . $pageOffset . '&' . $area;
// pagination
$numPages = ceil($list->getTotalNumItems() / $itemsPerPage);
$queryStr = preg_replace('/[?&]offset=?[0-9]*/i', '', $_SERVER['QUERY_STRING']);
$linkBase = 'admin.php?' . htmlspecialchars($queryStr) . '&offset=';
?>
<h1>Manage: <?php 
echo $areaName;
?>
</h1>

<form method="post" action="scripts/manage-bulk.php">
	<input type="hidden" name="area" value="<?php 
echo $area;
?>
" />

<?php 
コード例 #2
0
ファイル: body-single-post.php プロジェクト: sebadorn/aestas3
			<span><?php 
echo $post->getDatetime('d.m.Y');
?>
</span>
		</time>

		<?php 
$sb->render('post-categories.php', $post->getCategories());
?>

		<div class="post-num-comments icon-add-before icon-before-comment">
			<a href="<?php 
echo $post->getLink();
?>
#comments"><?php 
echo $coList->getTotalNumItems();
?>
</a>
		</div>
	</header>

	<div class="content"><?php 
echo $post->getContent();
?>
</div>

	<footer class="post-footer">
		<?php 
$sb->render('post-tags.php', $post->getTags());
?>
	</footer>