本文整理汇总了PHP中professions::GetProfGroupTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetProfGroupTitle方法的具体用法?PHP professions::GetProfGroupTitle怎么用?PHP professions::GetProfGroupTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetProfGroupTitle方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getProfessionText
private function getProfessionText()
{
$prof_text = '';
$prof_group_id = $this->options['prof_group_id'];
$prof_id = $this->options['prof_id'];
if ($prof_group_id) {
$prof_text = professions::GetProfGroupTitle($prof_group_id);
} elseif ($prof_id) {
$group_id = professions::GetGroupIdByProf($prof_id);
$prof_text = professions::GetProfGroupTitle($group_id);
$prof_text .= ' — ';
$prof_text .= professions::GetProfName($prof_id);
} else {
$prof_text = 'Каталог фрилансеров';
}
return $prof_text;
}
示例2: e_url
$sLocation = e_url('page');
header("HTTP/1.1 301 Moved Permanently");
header("Location: {$sLocation}");
exit(0);
} elseif ($page < 1) {
include ABS_PATH . '/404.php';
exit;
}
//------------------------------------------------------------------------------
$freelancer = new freelancer();
if (!$prof_id && !$prof_group_id) {
$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;
}
//Мета-теги
示例3: getProfessionText
/**
* Возвращает название раздела для истории платежей
* @param type $prof_id
* @param type $is_spec
* @return type
*/
private function getProfessionText($prof_id, $is_spec)
{
$prof_text = '';
if ($prof_id) {
if ($is_spec) {
$group_id = professions::GetGroupIdByProf($prof_id);
$prof_group_title = professions::GetProfGroupTitle($group_id);
$prof_title = professions::GetProfName($prof_id);
$prof_text = sprintf(self::DESCR_PROF, $prof_group_title, $prof_title);
} else {
$prof_group_title = professions::GetProfGroupTitle($prof_id);
$prof_text = sprintf(self::DESCR_PROFGROUP, $prof_group_title);
}
} else {
$prof_text = self::DESCR_CATALOG;
}
return $prof_text;
}
示例4: elseif
if ($response->data['filter_subcategory_id'] || $response->data['filter_category_id']) {
?>
<div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_000">
Размещение в специализации:
<?php
if ($response->data['filter_subcategory_id']) {
?>
<?php
echo professions::GetProfNameWP($response->data['filter_subcategory_id'], ' / ');
?>
<?php
} elseif ($response->data['filter_category_id']) {
?>
<?php
echo professions::GetProfGroupTitle($response->data['filter_category_id']);
?>
<?php
}
?>
</div>
<?php
}
?>
<div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_000">
<?php
if ($response->data['filter_budget']) {
?>
<?php
示例5: getOperationDescr
/**
* Вощвращает строку с описанием операции для истории счета
* @param type $prof_id
*/
public static function getOperationDescr($prof_id, $prof_group_id)
{
$prof_name = '';
if ($prof_id == -1) {
$prof_name = 'общем разделе';
} elseif ($prof_id == 0) {
$group_title = professions::GetProfGroupTitle($prof_group_id);
$prof_name = 'разделе ' . $group_title;
} else {
$group_id = professions::GetGroupIdByProf($prof_id);
$group_title = professions::GetProfGroupTitle($group_id);
$prof_title .= professions::GetProfName($prof_id);
$prof_name = 'разделе ' . $group_title . ' — ' . $prof_title;
}
return $prof_name;
}
示例6: foreach
<table class="b-layout__table b-layout__table_width_full">
<tr class="b-layout__tr">
<td class="b-layout__td b-layout__td_padbot_30 b-layout__td_width_210"><div class="b-layout__txt">Разделы</div></td>
<td class="b-layout__td b-layout__td_padbot_30">
<?php
if ($project_specs) {
foreach ($project_specs as $v) {
$is_dop = 0;
if ($v['subcategory_id'] == 0) {
$span_id = $v['category_id'] . '_1';
$span_name = professions::GetProfGroupTitle($v['category_id']);
} else {
$span_id = $v['subcategory_id'] . '_0';
$tt = professions::GetProfTitle($v['subcategory_id']);
$span_name = $tt['name'];
$is_dop = 1;
}
?>
<span id="mass_cat_span_<?php
echo $span_id;
?>
" class="b-frm-fltr__spec <?php
echo $is_dop ? 'b-frm-fltr__spec_dop' : '';
?>
"><?php
echo $span_name;