本文整理汇总了PHP中cmsUser::getProfileURL方法的典型用法代码示例。如果您正苦于以下问题:PHP cmsUser::getProfileURL方法的具体用法?PHP cmsUser::getProfileURL怎么用?PHP cmsUser::getProfileURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cmsUser
的用法示例。
在下文中一共展示了cmsUser::getProfileURL方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateMap
public function generateMap() {
$config = cmsCore::getInstance()->loadComponentConfig('users');
if (!$config['sw_guest']) {
$this->page = 0;
return;
}
$gen_map = parent::generateMap();
if ($gen_map === false) { return; }
$is_end = false;
$item_nums = 0;
// Заносим в карту пользователей
while ($is_end === false) {
$results = cmsCore::c('db')->query("SELECT id, login, nickname FROM cms_users WHERE is_locked=0 AND is_deleted=0 ORDER BY nickname ASC LIMIT ". $item_nums .", 1000");
if (cmsCore::c('db')->num_rows($results)) {
while ($user = cmsCore::c('db')->fetch_assoc($results)) {
$this->writeMapItem(array(
'loc' => cmsCore::c('config')->host . cmsUser::getProfileURL($user['ligin']),
'changefreq' => 'daily',
'priority' => '0.8'
));
$item_nums++;
}
} else {
$is_end = true;
}
}
$this->closeFile();
}
示例2: if
<?php } else { ?>
<span class="offline"><?php echo $club['logdate']; ?></span>
<?php } ?>
</div>
<div class="nickname"><a href="<?php echo cmsUser::getProfileURL($club['login']); ?>" style="color:#F00" title="<?php echo $_LANG['CLUB_ADMIN']; ?>"><?php echo $club['nickname']; ?></a></div>
<?php if ($club['status']) { ?>
<div class="microstatus"><?php echo $club['status']; ?></div>
<?php } ?> </td>
</tr>
<?php } ?>
<?php foreach($members as $usr) { ?>
<tr>
<td width="80" valign="top"><div class="avatar"><a href="<?php echo cmsUser::getProfileURL($usr['login']); ?>"><img border="0" class="usr_img_small" src="<?php echo $usr['admin_avatar']; ?>" /></a></div></td>
<td valign="top">
<div title="<?php echo $_LANG['KARMA']; ?>" class="karma<?php if ($usr['karma'] > 0) { ?> pos<?php } ?><?php if ($usr['karma'] < 0) { ?> neg<?php } ?>"><?php if ($usr['karma'] > 0) { ?>+<?php } ?><?php echo $usr['karma']; ?></div>
<div class="status">
<?php if ($usr['is_online']) { ?>
<span class="online"><?php echo $_LANG['ONLINE']; ?></span>
<?php } else { ?>
<span class="offline"><?php echo $usr['logdate']; ?></span>
<?php } ?>
</div>
<div class="nickname"><a href="<?php echo cmsUser::getProfileURL($usr['login']); ?>" <?php if ($usr['role'] == 'moderator') { ?>style="color:#090;" title="<?php echo $_LANG['MODERATOR']; ?>"<?php } ?>><?php echo $usr['nickname']; ?></a></div>
<?php if ($usr['status']) { ?>
<div class="microstatus"><?php echo $usr['status']; ?></div>
<?php } ?> </td>
</tr>
<?php } ?>
</table>
</div>
<?php echo $pagebar; ?>
示例3: round
}
if (sizeof($loaded_files)) {
cmsCore::addSessionMessage($_LANG['FILE_UPLOAD_FINISH'], 'success');
if ($model->config['filessize']) {
cmsCore::addSessionMessage('<strong>' . $_LANG['FREE_SPACE_LEFT'] . ':</strong> ' . round($free_mb - $size_mb, 2) . ' ' . $_LANG['MBITE'], 'info');
}
cmsCore::redirect('/users/' . $usr['id'] . '/files.html');
} else {
cmsCore::addSessionMessage($_LANG['ERR_BIG_FILE'] . ' ' . $_LANG['ERR_FILE_NAME'], 'error');
cmsCore::redirectBack();
}
}
if (!cmsCore::inRequest('upload')) {
$inPage->setTitle($_LANG['UPLOAD_FILES']);
$inPage->addHeadJS('includes/jquery/multifile/jquery.multifile.js');
$inPage->addPathway($usr['nickname'], cmsUser::getProfileURL($usr['login']));
$inPage->addPathway($_LANG['FILES_ARCHIVE'], '/users/' . $usr['id'] . '/files.html');
$inPage->addPathway($_LANG['UPLOAD_FILES']);
$inPage->addHeadJsLang(array('FILE_SELECTED', 'FILE_DENIED', 'FILE_DUPLICATE'));
$post_max_b = trim(@ini_get('upload_max_filesize'));
$last = mb_strtolower($post_max_b[mb_strlen($post_max_b) - 1]);
switch ($last) {
case 'g':
$post_max_b *= 1024;
case 'm':
$post_max_b *= 1024;
case 'k':
$post_max_b *= 1024;
}
cmsPage::initTemplate('components', 'com_users_file_add')->assign('free_mb', $free_mb)->assign('post_max_b', $post_max_b)->assign('post_max_mb', round($post_max_b / 1024) / 1024 . ' ' . $_LANG['MBITE'])->assign('cfg', $model->config)->assign('types', $model->config['filestype'])->display('com_users_file_add.tpl');
}
示例4: if
</h2>
<?php if ($article['showdesc']) { ?>
<div class="con_desc">
<?php if ($article['image_small']) { ?>
<div class="con_image">
<img src="<?php echo $article['image_small']; ?>" border="0" alt="<?php echo $this->escape($article['title']); ?>"/>
</div>
<?php } ?>
<?php echo $article['description']; ?>
</div>
<?php } ?>
<?php if ($article['showcomm'] || $article['showdate'] || $article['tagline']) { ?>
<div class="con_details">
<?php if ($article['showdate']) { ?>
<?php echo $article['fpubdate']; ?> - <a href="<?php echo cmsUser::getProfileURL($article['user_login']); ?>" style="color:#666"><?php echo $article['author']; ?></a>
<?php } ?>
<?php if ($article['showcomm']) { ?>
<?php if ($article['showdate']) { ?> | <?php } ?>
<a href="<?php echo $article['url']; ?>#c" title="<?php echo $_LANG['COMMENTS']; ?>"><?php echo $this->spellcount($article['comments'], $_LANG['COMMENT'], $_LANG['COMMENT2'], $_LANG['COMMENT10']); ?></a>
<?php } ?>
| <?php echo $this->spellcount($article['hits'], $_LANG['HIT'], $_LANG['HIT2'], $_LANG['HIT10']); ?>
<?php if ($article['tagline']) { ?>
| <strong><?php echo $_LANG['TAGS']; ?>:</strong> <?php echo $article['tagline']; ?>
<?php } ?>
| <strong><?php echo $_LANG['CAT']; ?>:</strong> <a href="<?php echo $article['cat_url']; ?>"><?php echo $article['cat_title']; ?></a>
</div>
<?php } ?>
</td>
</tr>
<?php } ?>
示例5: smarty_function_profile_url
function smarty_function_profile_url($params, &$smarty)
{
return cmsUser::getProfileURL($params['login']);
}
示例6: registration
//.........这里部分代码省略.........
cmsCore::error404();
}
if (cmsCore::inRequest('submit')) {
if (!cmsUser::checkCsrfToken()) {
cmsCore::error404();
}
$errors = false;
$pass = cmsCore::request('pass', 'str', '');
$pass2 = cmsCore::request('pass2', 'str', '');
if (!$pass) {
cmsCore::addSessionMessage($_LANG['TYPE_PASS'], 'error');
$errors = true;
}
if ($pass && !$pass2) {
cmsCore::addSessionMessage($_LANG['TYPE_PASS_TWICE'], 'error');
$errors = true;
}
if ($pass && $pass2 && mb_strlen($pass) < 6) {
cmsCore::addSessionMessage($_LANG['PASS_SHORT'], 'error');
$errors = true;
}
if ($pass && $pass2 && $pass != $pass2) {
cmsCore::addSessionMessage($_LANG['WRONG_PASS'], 'error');
$errors = true;
}
if ($errors) {
cmsCore::redirectBack();
}
$md5_pass = md5($pass);
$inDB->query("UPDATE cms_users SET password = '{$md5_pass}', logdate = NOW() WHERE id = '{$user['id']}'");
$inDB->query("DELETE FROM cms_users_activate WHERE code = '{$usercode}'");
cmsCore::addSessionMessage($_LANG['CHANGE_PASS_COMPLETED'], 'info');
$inUser->signInUser($user['login'], $pass, true);
cmsCore::redirect(cmsUser::getProfileURL($user['login']));
}
$inPage->setTitle($_LANG['RECOVER_PASS']);
$inPage->addPathway($_LANG['RECOVER_PASS']);
cmsPage::initTemplate('components', 'com_registration_remind')->assign('cfg', $model->config)->assign('user', $user)->display('com_registration_remind.tpl');
}
//============================================================================//
if ($do == 'register') {
if (!cmsUser::checkCsrfToken()) {
cmsCore::error404();
}
if ($inUser->id && !$inUser->is_admin) {
if ($inCore->menuId() == 1) {
return;
} else {
cmsCore::error404();
}
}
// регистрация закрыта
if (!$model->config['is_on']) {
cmsCore::error404();
}
// регистрация по инвайтам
if ($model->config['reg_type'] == 'invite') {
if (!$users_model->checkInvite(cmsUser::sessionGet('invite_code'))) {
cmsCore::error404();
}
}
$errors = false;
// получаем данные
$item['login'] = cmsCore::request('login', 'str', '');
$item['email'] = cmsCore::request('email', 'email');
$item['icq'] = cmsCore::request('icq', 'str', '');
示例7: array
$perpage = 21;
$pagination = cmsPage::getPagebar($total, $page, $perpage, '/users/%user%/photos/%album%%id%-%page%.html', array('user' => $usr['login'], 'album' => $album_type, 'id' => $album_id));
$page_photos = array();
$start = $perpage * ($page - 1);
for ($p = $start; $p < $start + $perpage; $p++) {
if ($photos[$p]) {
$page_photos[] = $photos[$p];
}
}
$photos = $page_photos;
unset($page_photos);
}
//Отдаем в шаблон
cmsPage::initTemplate('components', 'com_users_photos')->assign('page_title', $album['title'])->assign('album_type', $album_type)->assign('album', $album)->assign('photos', $photos)->assign('user_id', $usr['id'])->assign('usr', $usr)->assign('my_profile', $my_profile)->assign('is_admin', $inUser->is_admin)->assign('pagebar', $pagination)->display('com_users_photos.tpl');
}
//============================================================================//
//============================ Удалить фотоальбом ============================//
//============================================================================//
if ($pdo == 'delalbum') {
$album_id = cmsCore::request('album_id', 'int', '0');
$album = $model->getPhotoAlbum('private', $album_id);
if (!$album) {
cmsCore::error404();
}
if (!$inUser->is_admin && $album['user_id'] != $inUser->id) {
cmsCore::error404();
}
$model->deletePhotoAlbum($id, $album_id);
$user = cmsUser::getShortUserData($album['user_id']);
cmsCore::redirect(cmsUser::getProfileURL($user['login']));
}
示例8: if
<table width="100%" cellspacing="0" cellpadding="0" class="blog_records">
<tr>
<td width="" class="blog_entry_title_td">
<div class="blog_entry_title">
<?php if ($post['blog_url']) { ?>
<a href="<?php echo $post['blog_url']; ?>" style="color:gray"><?php echo $post['blog_title']; ?></a> →
<?php } ?>
<a href="<?php echo $post['url']; ?>"><?php echo $post['title']; ?></a>
</div>
</td>
</tr>
<tr>
<td>
<div class="blog_entry_text"><?php echo $post['content_html']; ?></div>
<div class="blog_comments">
<a class="blog_user" href="<?php echo cmsUser::getProfileURL($post['login']); ?>"><?php echo $post['author']; ?></a>
<span class="blog_entry_date"><?php if (!$post['published']) { ?><span style="color:#CC0000"><?php echo $_LANG['ON_MODERATE']; ?></span><?php } else { ?><?php echo $post['fpubdate']; ?><?php } ?></span>
<span class="post_karma"><?php echo $this->rating($post['rating']); ?></span>
<span class="post_hits"><?php echo $post['hits']; ?></span>
<?php if ($post['comments_count'] > 0) { ?>
<a class="blog_comments_link" href="<?php echo $post['url']; ?>#c"><?php echo $this->spellcount($post['comments_count'], $_LANG['COMMENT'], $_LANG['COMMENT2'], $_LANG['COMMENT10']); ?></a>
<?php } else { ?>
<a class="blog_comments_link" href="<?php echo $post['url']; ?>#c"><?php echo $_LANG['NOT_COMMENTS']; ?></a>
<?php } ?>
<?php if ($post['tagline'] != false) { ?>
<span class="tagline"><?php echo $post['tagline']; ?></span>
<?php } ?>
</div>
</td>
</tr>
</table>
示例9:
<div class="jclock">00:00:00</div>
</td>
<td>
<?php
$new_messages = cmsUser::getNewMessages($inUser->id);
if ($new_messages['total']) {
$msg_link = '<a href="/users/' . $inUser->id . '/messages.html" style="color:yellow">' . $_LANG['AD_NEW_MSG'] . ' (' . $new_messages['total'] . ')</a>';
} else {
$msg_link = '<span>' . $_LANG['NO'] . ' ' . $_LANG['NEW_MESSAGES'] . '</span>';
}
?>
<div class="juser"><?php
echo $_LANG['AD_YOU'];
?>
— <a href="<?php
echo cmsUser::getProfileURL($inUser->login);
?>
" target="_blank" title="<?php
echo $_LANG['AD_GO_PROFILE'];
?>
"><?php
echo $inDB->get_field('cms_users', 'id=' . $inUser->id, 'nickname');
?>
</a>, ip: <?php
echo $inUser->ip;
?>
</div>
<div class="jmessages"><?php
echo $msg_link;
?>
</div>
示例10: getUser
public function getUser($login){
if(is_numeric($login)){
$where = "u.id = '{$login}'";
} else {
$where = "u.login = '{$login}'";
}
$sql = "SELECT
u.*,
u.status as status_text,
u.rating as user_rating,
p.id as pid, p.city, p.description, p.showmail, p.showbirth, p.showicq,
p.karma, p.imageurl, p.allow_who,
p.gender as gender, p.formsdata, p.signature,
p.email_newmsg, p.cm_subscribe,
g.title as grp,
g.alias as group_alias,
b.user_id as banned,
IFNULL(ui.login, '') as inv_login,
IFNULL(ui.nickname, '') as inv_nickname
FROM cms_users u
INNER JOIN cms_user_profiles p ON p.user_id = u.id
INNER JOIN cms_user_groups g ON g.id = u.group_id
LEFT JOIN cms_banlist b ON b.user_id = u.id AND b.status = 1
LEFT JOIN cms_users ui ON ui.id = u.invited_by
WHERE u.is_locked = 0 AND {$where}
ORDER BY id DESC LIMIT 1";
$result = $this->inDB->query($sql);
if (!$this->inDB->num_rows($result)){ return false; }
$user = $this->inDB->fetch_assoc($result);
global $_LANG;
$user['avatar'] = cmsUser::getUserAvatarUrl($user['id'], 'big', $user['imageurl'], $user['is_deleted']);
$user['status_date'] = cmsCore::dateDiffNow($user['status_date']);
$user['flogdate'] = cmsUser::getOnlineStatus($user['id'], $user['logdate']);
$user['fregdate'] = cmsCore::dateFormat($user['regdate']);
$user['fbirthdate'] = cmsCore::dateFormat($user['birthdate']);
$user['cityurl'] = urlencode($user['city']);
$user['profile_link'] = HOST . cmsUser::getProfileURL($user['login']);
$user['fdescription'] = cmsPage::getMetaSearchLink('/users/hobby/', $user['description']);
$user['formsdata'] = cmsCore::yamlToArray($user['formsdata']);
if ($user['gender']) {
switch ($user['gender']){
case 'm': $user['fgender'] = $_LANG['MALES']; break;
case 'f': $user['fgender'] = $_LANG['FEMALES']; break;
default: $user['fgender'] = '';
}
}
return cmsCore::callEvent('GET_USER', $user);
}
示例11: if
<?php if ($cfg['view_type'] == 'table') { ?>
<?php foreach ($users as $user) { ?>
<div class="mod_new_user">
<div class="mod_new_user_avatar"><a href="<?php echo cmsUser::getProfileURL($user['login']); ?>"><img border="0" class="usr_img_small" src="<?php echo $user['avatar']; ?>" /></a></div>
<div class="mod_new_user_link"><a href="<?php echo cmsUser::getProfileURL($user['login']); ?>"><?php echo $user['nickname']; ?></a></div>
</div>
<?php } ?>
<?php } ?>
<?php if ($cfg['view_type'] == 'hr_table') {
$col = 1;
?>
<table cellspacing="5" border="0" width="100%">
<?php foreach ($users as $user) { ?>
<?php if ($col == 1) { echo '<tr>'; } ?>
<td width="" class="new_user_avatar" align="center" valign="middle"><a href="<?php echo cmsUser::getProfileURL($user['login']); ?>" class="new_user_link" title="<?php echo $this->escape($user['nickname']); ?>"><img border="0" class="usr_img_small" src="<?php echo $user['avatar']; ?>" /></a><div class="mod_new_user_link"><a href="<?php echo cmsUser::getProfileURL($user['login']); ?>"><?php echo $user['nickname']; ?></a></div>
</td>
<?php if ($col == $cfg['maxcool']) { echo '</tr>'; $col = 1; } else { $col++; } ?>
<?php } ?>
</table>
<?php } ?>
<?php if ($cfg['view_type'] == 'list') {
$now = 0;
foreach ($users as $user) {
?>
<a href="<?php echo cmsUser::getProfileURL($user['login']); ?>" class="new_user_link"><?php echo $user['nickname']; ?></a>
<?php $now++; if ($now != $total){ echo ' ,'; } ?>
<?php } ?>
<p><strong><?php echo $_LANG['LASTREG_TOTAL']; ?>:</strong> <?php echo $total_all; ?></p>
<?php } ?>
示例12: if
<a class="blog_type_link" href="/blogs/single.html"><?php echo $_LANG['PERSONALS']; ?></a>
<?php } ?>
<?php if ($ownertype == 'multi') { ?>
<span class="blog_type_active"><?php echo $_LANG['COLLECTIVES']; ?> <span class="blog_type_num">(<?php echo $total; ?>)</span></span>
<?php } else { ?>
<a class="blog_type_link" href="/blogs/multi.html"><?php echo $_LANG['COLLECTIVES']; ?></a>
<?php } ?>
</div>
<?php if ($blogs) { ?>
<table width="100%" cellspacing="0" cellpadding="4" class="blog_full_list">
<?php foreach($blogs as $blog) { ?>
<tr>
<td class="blog_title_td"><a class="blog_title" href="<?php echo $blog['url']; ?>"><?php echo $blog['title']; ?></a></td>
<?php if ($blog['ownertype'] == 'single') { ?>
<td width="220"><a class="blog_user" href="<?php echo cmsUser::getProfileURL($blog['login']); ?>"><?php echo $blog['nickname']; ?></a></td>
<?php } else { ?>
<td width="220"> </td>
<?php } ?>
<td width="40"><span class="blog_posts"><?php echo $blog['records']; ?></span></td>
<td width="40"><span class="blog_comm"><?php echo $blog['comments_count']; ?></span></td>
<?php if ($cfg['rss_one']) { ?>
<td width="16">
<a class="blog_rss" href="/rss/blogs/<?php echo $blog['id']; ?>/feed.rss"></a>
</td>
<?php } ?>
<td width="20" align="center" valign="middle"><?php echo $this->rating($blog['rating']); ?></td>
</tr>
<?php } ?>
</table>
示例13: foreach
<?php foreach ($comments as $comment) { ?>
<div class="mod_com_line">
<a class="mod_com_link" href="<?php echo $comment['target_link'] .'#c'. $comment['id']; ?>"><?php echo $this->truncate($this->strip_tags($comment['content']),90); ?></a> <?php if ($cfg['showtarg']) { echo $this->rating($comment['rating']); } ?>
</div>
<div class="mod_com_details">
<?php if (!$comment['is_profile']) { echo $comment['author']; } else { ?>
<a class="mod_com_userlink" href="<?php echo cmsUser::getProfileURL($comment['author']['login']); ?>"><?php echo $comment['author']['nickname']; ?></a>
<?php } ?>
<?php echo $comment['fpubdate']; ?><br/>
<?php if ($cfg['showtarg']) { ?>
<a class="mod_com_targetlink" href="<?php echo $comment['target_link']; ?>"><?php echo $comment['target_title']; ?></a>
<?php } ?>
</div>
<?php } ?>
<?php if ($cfg['showrss']) { ?>
<div style="margin-top:15px"> <a href="/rss/comments/all/feed.rss" class="mod_latest_rss"><?php echo $_LANG['COMMENTS_RSS']; ?></a> </div>
<?php } ?>
<div style="margin-top:5px"> <a href="/comments" class="mod_com_all"><?php echo $_LANG['COMMENTS_ALL']; ?></a> </div>
示例14: if
<div class="float_bar">
<strong><?php echo $_LANG['RATING']; ?>: </strong><span id="karmapoints"><?php echo $this->rating($photo['rating']); ?></span> | <strong><?php echo $_LANG['HITS']; ?>: </strong> <?php echo $photo['hits']; ?> | <?php if (!$photo['published']) { ?><span id="pub_photo_wait" style="color:#F00;"><?php echo $_LANG['WAIT_MODERING']; ?></span><span id="pub_photo_date" style="display:none;"><?php echo $photo['pubdate']; ?></span><?php } else { ?><?php echo $photo['pubdate']; ?><?php } ?> | <a href="<?php echo cmsUser::getProfileURL($photo['login']); ?>"><?php echo $photo['nickname']; ?></a> <?php if ($is_author || $is_admin || $is_moder) { ?>| <a class="ajaxlink" href="javascript:void(0)" onclick="clubs.editPhoto(<?php echo $photo['id']; ?>);return false;"><?php echo $_LANG['EDIT']; ?></a> <?php if ($is_admin || $is_moder) { ?><?php if (!$photo['published']) { ?><span id="pub_photo_link"> | <a class="ajaxlink" href="javascript:void(0)" onclick="clubs.publishPhoto(<?php echo $photo['id']; ?>);return false;"><?php echo $_LANG['PUBLISH']; ?></a></span><?php } ?> | <a class="ajaxlink" href="javascript:void(0)" onclick="clubs.deletePhoto(<?php echo $photo['id']; ?>, '<?php echo cmsUser::getCsrfToken(); ?>');return false;"><?php echo $_LANG['DELETE']; ?></a><?php } ?><?php } ?>
</div>
<h1 class="con_heading"><?php echo $photo['title']; ?></h1>
<?php if ($photo['description']) { ?>
<p class="photo_desc"><?php echo nl2br($photo['description']); ?> </p>
<?php } ?>
<table width="100%" cellspacing="0" cellpadding="3" border="0">
<tbody>
<tr>
<td width="150px" valign="middle" align="center">
<?php if ($photo['previd']) { ?>
<cite><?php echo $_LANG['PREVIOUS']; ?></cite><br>
<a href="/clubs/photo<?php echo $photo['previd']['id']; ?>.html#main"><img alt="{$photo.previd.title|escape:'html'}" src="/images/photos/small/<?php echo $photo['previd']['file']; ?>"></a>
<?php } ?>
</td>
<td align="center" valign="top">
<?php if ($is_exists_original) { ?>
<a href="/images/photos/<?php echo $photo['file']; ?>" class="photobox">
<img src="/images/photos/medium/<?php echo $photo['file']; ?>" alt="<?php echo $this->escape($photo['title']); ?>" id="view_photo" />
</a>
<?php } else { ?>
<img src="/images/photos/medium/<?php echo $photo['file']; ?>" alt="<?php echo $this->escape($photo['title']); ?>" id="view_photo" />
<?php } ?>
</td>
<td width="150px" valign="middle" align="center">
<?php if ($photo['nextid']) { ?>
<cite><?php echo $_LANG['NEXT']; ?></cite><br>
<a href="/clubs/photo<?php echo $photo['nextid']['id']; ?>.html#main"><img alt="{$photo.nextid.title|escape:'html'}" src="/images/photos/small/<?php echo $photo['nextid']['file']; ?>"></a>
<?php } ?>
示例15: if
<span class="bd_item_is_vip"><?php echo $_LANG['VIP_ITEM']; ?></span>
<?php } ?>
<span class="bd_item_date"><?php echo $item['pubdate']; ?></span>
<span class="bd_item_hits"><?php echo $item['hits']; ?></span>
<?php if ($item['city']) { ?>
<span class="bd_item_city">
<a href="/board/city/<?php echo $item['enc_city']; ?>"><?php echo $item['city']; ?></a>
</span>
<?php } ?>
<?php if ($item['user']) { ?>
<span class="bd_item_user">
<a href="<?php echo cmsUser::getProfileURL($item['user_login']); ?>"><?php echo $item['user']; ?></a>
</span>
<?php } else { ?>
<span class="bd_item_user"><?php echo $_LANG['BOARD_GUEST']; ?></span>
<?php } ?>
<?php if ($item['moderator']) { ?>
<span class="bd_item_edit"><a href="/board/edit<?php echo $item['id']; ?>.html"><?php echo $_LANG['EDIT']; ?></a></span>
<?php if (!$item['published'] && ($is_admin || $is_moder)) { ?>
<span class="bd_item_publish"><a href="/board/publish<?php echo $item['id']; ?>.html"><?php echo $_LANG['PUBLISH']; ?></a></span>
<?php } ?>
<span class="bd_item_delete"><a href="/board/delete<?php echo $item['id']; ?>.html"><?php echo $_LANG['DELETE']; ?></a></span>
<?php } ?>
<?php if ($item['is_overdue']) { ?>
<span class="bd_item_status_bad"><?php echo $_LANG['ADV_IS_EXTEND']; ?></span>