当前位置: 首页>>代码示例>>PHP>>正文


PHP professions::GetProfTitle方法代码示例

本文整理汇总了PHP中professions::GetProfTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetProfTitle方法的具体用法?PHP professions::GetProfTitle怎么用?PHP professions::GetProfTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在professions的用法示例。


在下文中一共展示了professions::GetProfTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: freelancer

//------------------------------------------------------------------------------
$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;
}
//Мета-теги
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();
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例2: foreach

                         <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;
                        ?>
<span class="b-frm-fltr__spec-close" onclick="mass_spam.delcat('<?php 
                        echo $span_id;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content_emp.php


注:本文中的professions::GetProfTitle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。