本文整理汇总了PHP中PageGenerator::removeLastBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP PageGenerator::removeLastBlock方法的具体用法?PHP PageGenerator::removeLastBlock怎么用?PHP PageGenerator::removeLastBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageGenerator
的用法示例。
在下文中一共展示了PageGenerator::removeLastBlock方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CalendarPage
$cal = new CalendarPage($group_name);
if ($allow_calendar) {
if ($oblocks % 2 == 1) {
$pg->addBlock($pg->RightColumn, $treng->_('Calendar', "modulewcalendar"), $cal->getHomeBlock(), "", false, false, false, false, $op);
} else {
$pg->addBlock($pg->LeftColumn, $treng->_('Calendar', "modulecalendar"), $cal->getHomeBlock(), "", false, false, false, false, $op);
}
$oblocks++;
}
break;
}
}
// We only have About Us block
// make it wider
if ($oblocks == 1) {
$pg->removeLastBlock();
$pg->setLayout($pg->FullColumn);
$pg->addBlock($pg->Column, $treng->_('About Us', "modulemap"), $groupdesc, $treng->_('About Us', "map"));
}
// operational box
if ($access_isGroupAdmin || $access_isGroupMember && $can_members_change_tab_order_home) {
if ($oblocks % 2 == 1) {
$pg->addBlock($pg->LeftColumn, "", homeAddNewModuleBlock(), "", false, true);
} else {
$pg->addBlock($pg->RightColumn, "", homeAddNewModuleBlock(), "", false, true);
}
}
}
$ajax_functions .= home_getAjaxFunctions();
$to_register = home_getFunctionsToRegister();
foreach ($to_register as $r) {