// seo_start(); if ($comm['id'] != 5100 && $comm['id'] != 1008 || $cur_user->is_team == 't' && ($comm['id'] == 5100 || $comm['id'] == 1008)) { ?> <a href="?site=Newtopic" class="b-button b-button_flat b-button_flat_green b-button_float_right b-button_margtop_15 __ga__commune__new_post_<?php echo is_emp() ? 'emp' : 'frl'; ?> " id="new_post_msg">Написать пост</a> <?php //= seo_end(); } } include 'in_out_dialog.php'; ?> <?php $aGroup = commune::getGroupById($comm['group_id']); $sGroup = $aGroup['name']; $crumbs = array(); $crumbs[] = array("title" => "Сообщества", "url" => "/commune/"); if ($comm['id'] != commune::COMMUNE_BLOGS_ID) { $crumbs[] = array("title" => $sGroup, "url" => getFriendlyURL('commune_group', $comm['group_id'])); } if ($comm['id'] == commune::COMMUNE_BLOGS_ID) { $category_id = __paramInit('int', 'cat', 'cat'); $category = commune::getCategory($category_id); $crumbs[] = array("title" => $comm['name'], "url" => $category_id > 0 ? getFriendlyURL('commune_commune', $comm['id']) : ""); if ($category_id) { $crumbs[] = array("title" => $category['name'], "url" => ""); } } ?>
case commune::OM_CM_NEW: $sOrd = 'Новые'; break; case commune::OM_CM_MY: $sOrd = 'Я создал'; break; case commune::OM_CM_JOINED: $sOrd = 'Я вступил в'; break; case commune::OM_CM_BEST: default: $sOrd = 'Лучшие'; break; } if ($gr_id) { $aGroup = commune::getGroupById($gr_id); $sGroup = $aGroup['name']; } else { $sGroup = 'Все Сообщества'; } $page_title = $page_keyw = $sOrd . ' сообщества раздела > ' . $sGroup . ' < - ' . ($page > 1 ? "Страница {$page} - " : '') . ' фриланс, удаленная работа на FL.ru'; $page_descr = $sOrd . ' сообщества раздела ' . $sGroup . ' на FL.ru'; $commune_output = 'tpl.main.php'; } else { // Количество всего тем в сообществе. $communeThemesCounts = commune::getCommuneThemesCount($comm['id']); if (hasPermissions('communes')) { $themesCount = $communeThemesCounts['count']; } elseif ($comm['author_id'] == get_uid(false) || $comm['is_moderator'] === 't') { $themesCount = $communeThemesCounts['count'] - $communeThemesCounts['admin_hidden_count']; } else {