//require_once("metadata.inc.php"); //if ($page < 20) $buffer_on = true; /* $additional_header = '<script type="text/javascript" src="/scripts/kwords.js"></script>' . '<script type="text/javascript" src="/kword_js.php"></script>'; */ //------------------------------------------------------------------------------ require_once ABS_PATH . '/freelancers/widgets/FreelancersTServicesWidget.php'; //Инициализация виджета плитки ТУ вместо портфолио $freelancersTServicesWidget = new FreelancersTServicesWidget(); //------------------------------------------------------------------------------ //Популярные услуги из этой же категории require_once ABS_PATH . '/tu/widgets/TServicesPopular.php'; $tservicesPopular = new TServicesPopular(); $tservicesPopular->setOptions(array('prof_group_id' => $prof_group_id, 'prof_id' => $prof_id, 'limit' => 9, 'title' => 'Услуги фрилансеров', 'title_css' => 'b-layout__title_padtop_10')); $tservicesPopular->init(); //------------------------------------------------------------------------------ if ($uid > 0 && !is_emp() && !in_array($action, array('search', 'search_advanced')) && is_pro()) { require_once ABS_PATH . '/freelancers/widgets/FreelancersPreviewEditorPopup.php'; $freelancersPreviewEditorPopup = FreelancersPreviewEditorPopup::getInstance(array('group_id' => $prof_group_id, 'prof_id' => $prof_id)); } //------------------------------------------------------------------------------ $header = "../header.php"; $footer = "../footer.html"; $js_file[] = '/css/block/b-text/b-text.js'; $js_file[] = '/css/block/b-popup/b-popup.js'; $css_file = array('/css/block/b-icon/__cat/b-icon__cat.css', '/css/block/b-search/b-search.css', 'main.css', '/css/nav.css'); $js_file[] = 'search.js'; $js_file[] = 'freelancers/freelancers.js'; //@todo: Сюда переносить все inline-скрипты! $freelancers_catalog = true;
$data['location'] = 'г. ' . $city->getCityName($data['city']); } //------------------------------------------------------------------------------ //Виджет попап окошка при заказе услуги //непоказываем фрилансерам $tserviceOrderPopup = NULL; $is_frl = !is_emp() && get_uid(false); if (!$is_frl) { require_once $_SERVER['DOCUMENT_ROOT'] . '/tu/widgets/TServiceOrderPopup.php'; $tserviceOrderPopup = new TServiceOrderPopup(); $tserviceOrderPopup->init(array('title' => $data['title'], 'frl_fullname' => "{$user_obj->uname} {$user_obj->usurname} [{$user_obj->login}]", 'price' => $data['price'], 'days' => $data['days'], 'category_id' => $data['category_id'])); } //------------------------------------------------------------------------------ if (!$is_owner) { //Популярные услуги из этой же категории или пользователя если данная услуга закреплена require_once $_SERVER['DOCUMENT_ROOT'] . '/tu/widgets/TServicesPopular.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/tservices/tservices_binds.php'; $tservicesPopular = new TServicesPopular(); $tservicesPopularOptions = array('title_css' => 'b-layout__title_padtop_40', 'item_css' => 'i-pic_port_col4_desktop'); $isBinded = tservices_binds::isBinded($data['id']); if ($isBinded) { $tservicesPopularOptions['user_id'] = $uid; $tservicesPopularOptions['limit'] = 100; $tservicesPopularOptions['fullname'] = view_fullname($user_obj); } $tservicesPopular->setOptions($tservicesPopularOptions); $tservicesPopular->init($data['category_id'], $data['id']); } //------------------------------------------------------------------------------ $inner = 'tpl.card.php'; include '../template3.php';