本文整理匯總了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) {