本文整理匯總了PHP中Space::getMenu方法的典型用法代碼示例。如果您正苦於以下問題:PHP Space::getMenu方法的具體用法?PHP Space::getMenu怎麽用?PHP Space::getMenu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Space
的用法示例。
在下文中一共展示了Space::getMenu方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
setvar("ProductTypes", $product_types);
$group_info = array();
$group_info['year'] = $time_tmp;
if (!empty($member->info['membergroup_id']['name'])) {
$group_info['name'] = $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['name'];
} else {
$group_info['name'] = L("undefined_image", "tpl");
}
if (!empty($member->info['membergroup_id']['avatar'])) {
$group_info['image'] = $absolute_uri . "images/group/" . $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['avatar'];
} else {
$group_info['image'] = $absolute_uri . "images/group/formal.gif";
}
setvar("GROUP", $group_info);
//for old version
if (isset($member->info['membergroup_id']['name'])) {
setvar("GroupName", $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['name']);
}
if (isset($member->info['membergroup_id']['avatar'])) {
setvar("GroupImage", $absolute_uri . "images/group/" . $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['avatar']);
}
//:~
setvar("Menus", $space->getMenu());
setvar("Links", $space->getLinks());
$space_url = $space->rewrite($company->info['cache_spacename'], $company->info['id']);
setvar("space_url", $space_url);
setvar("SpaceUrl", $absolute_uri . $skin_dir);
setvar("BASEMAP", $absolute_uri . $skin_dir);
if (!empty($arrTemplate)) {
$smarty->assign($arrTemplate);
}