本文整理汇总了PHP中professions::GetProfType方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetProfType方法的具体用法?PHP professions::GetProfType怎么用?PHP professions::GetProfType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetProfType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$prof_type = false;
$anchor = 0;
$cat_menu_freelancers = true;
} elseif ($prof_group_id) {
$prof_name = professions::GetProfGroupTitle($prof_group_id);
$prof_type = false;
$anchor = 0;
$cat_menu_freelancers = true;
} else {
if (!$prof_link) {
$prof_link = professions::GetProfField($prof_id, 'link');
}
$prof_name_arr = professions::GetProfTitle($prof_id);
$prof_name = $prof_name_arr['name'];
$prof_title = $prof_name_arr['title'] ? $prof_name_arr['title'] : $prof_name;
$prof_type = professions::GetProfType($prof_id);
$anchor = professions::GetProfessionOrigin($prof_id);
$g_page_id = "1|" . $prof_id;
}
//Мета-теги
if ($prof_group_id) {
SeoTags::getInstance()->initFreelancers($prof_group_id, $page, false);
} else {
SeoTags::getInstance()->initFreelancers($prof_id, $page);
}
$page_title = SeoTags::getInstance()->getTitle();
$page_descr = SeoTags::getInstance()->getDescription();
$page_keyw = SeoTags::getInstance()->getKeywords();
$page_h1 = SeoTags::getInstance()->getH1();
//------------------------------------------------------------------------------
// Показывать только про пользователей