Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
    $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;
}
//Мета-теги
Exemplo n.º 3
0
 /**
  * Возвращает название раздела для истории платежей
  * @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;
 }
Exemplo n.º 4
0
        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 
Exemplo n.º 5
0
 /**
  * Вощвращает строку с описанием операции для истории счета
  * @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 . ' &mdash; ' . $prof_title;
     }
     return $prof_name;
 }
Exemplo n.º 6
0
   
                   
                      <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;