本文整理汇总了PHP中wcf\system\WCF::isLandingPage方法的典型用法代码示例。如果您正苦于以下问题:PHP WCF::isLandingPage方法的具体用法?PHP WCF::isLandingPage怎么用?PHP WCF::isLandingPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wcf\system\WCF
的用法示例。
在下文中一共展示了WCF::isLandingPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: readData
/**
* @see \wcf\page\IPage::readData()
*/
public function readData()
{
parent::readData();
// stats
if (LINKLIST_ENABLE_STATISTICS) {
$this->stats = array_merge(StatsCacheBuilder::getInstance()->getData(), UserStatsCacheBuilder::getInstance()->getData());
}
// get categories
$categoryTree = new LinklistCategoryNodeTree('de.incendium.linklist.category');
$this->categoryList = $categoryTree->getIterator();
$this->categoryList->setMaxDepth(0);
// get featured entries
$this->featuredEntryList = new AccessibleEntryList();
$this->featuredEntryList->getConditionBuilder()->add('entry.isFeatured = ?', array(1));
$this->featuredEntryList->sqlLimit = 10;
$this->featuredEntryList->sqlOrderBy = 'RAND()';
$this->featuredEntryList->readObjects();
// remove default breadcrumb entry and set current page as 'website'
if (WCF::isLandingPage()) {
MetaTagHandler::getInstance()->addTag('og:url', 'og:url', LinkHandler::getInstance()->getLink('Linklist', array('application' => 'linklist')), true);
MetaTagHandler::getInstance()->addTag('og:type', 'og:type', 'website', true);
MetaTagHandler::getInstance()->addTag('og:title', 'og:title', WCF::getLanguage()->get(PAGE_TITLE), true);
MetaTagHandler::getInstance()->addTag('og:description', 'og:description', WCF::getLanguage()->get(PAGE_DESCRIPTION), true);
}
}