mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
вынос текстовок
This commit is contained in:
parent
2a8b6c99a2
commit
d3be67278a
|
@ -261,6 +261,7 @@ class LsComment extends Module {
|
|||
$oViewerLocal=new LsViewer(Engine::getInstance());
|
||||
$oViewerLocal->Init();
|
||||
$oViewerLocal->VarAssign();
|
||||
$oViewerLocal->Assign('aLang',$this->Lang_GetLangMsg());
|
||||
|
||||
$aCmt=array();
|
||||
foreach ($aCmts as $oComment) {
|
||||
|
|
|
@ -69,6 +69,14 @@ class LsLang extends Module {
|
|||
public function GetLang() {
|
||||
return $this->sCurrentLang;
|
||||
}
|
||||
/**
|
||||
* Получить список текстовок
|
||||
*
|
||||
* @return unknown
|
||||
*/
|
||||
public function GetLangMsg() {
|
||||
return $this->aLangMsg;
|
||||
}
|
||||
/**
|
||||
* Получает текстовку по её имени
|
||||
*
|
||||
|
|
|
@ -227,6 +227,8 @@ return array(
|
|||
'comment_title' => 'Комментарии_$$',
|
||||
'comment_collapse' => 'свернуть_$$',
|
||||
'comment_expand' => 'развернуть_$$',
|
||||
'comment_goto_parent' => 'Ответ на_$$',
|
||||
'comment_goto_child' => 'Обратно к ответу_$$',
|
||||
'comment_bad_open' => 'раскрыть комментарий_$$',
|
||||
'comment_answer' => 'Ответить_$$',
|
||||
'comment_delete' => 'Удалить_$$',
|
||||
|
@ -275,14 +277,16 @@ return array(
|
|||
'page_admin_action_delete_confirm' => 'Вы действительно хотите удалить эту страницу со всеми вложенными страницами?_$$',
|
||||
|
||||
|
||||
/**
|
||||
* Редактор текста
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Пользователь
|
||||
*/
|
||||
'user' => 'Пользователь_$$',
|
||||
'user_list' => 'Пользователи_$$',
|
||||
'user_list_new' => 'Новые пользователи_$$',
|
||||
'user_list_online_last' => 'Недавно были на сайте_$$',
|
||||
'user_good' => 'Позитивные_$$',
|
||||
'user_bad' => 'Негативные_$$',
|
||||
'user_privat_messages' => 'Личные сообщения_$$',
|
||||
'user_privat_messages_new' => 'У вас есть новые сообщения_$$',
|
||||
'user_settings' => 'Настройки_$$',
|
||||
|
@ -302,6 +306,24 @@ return array(
|
|||
'user_friend_del' => 'Удалить из друзей_$$',
|
||||
'user_rating' => 'Рейтинг_$$',
|
||||
'user_skill' => 'Сила_$$',
|
||||
'user_date_last' => 'Последний визит_$$',
|
||||
'user_date_registration' => 'Дата регистрации_$$',
|
||||
'user_empty' => 'нет таких_$$',
|
||||
'user_stats' => 'Статистика_$$',
|
||||
'user_stats_all' => 'Всего пользователей_$$',
|
||||
'user_stats_active' => 'Активные_$$',
|
||||
'user_stats_noactive' => 'Заблудившиеся_$$',
|
||||
'user_stats_sex_man' => 'Мужчины_$$',
|
||||
'user_stats_sex_woman' => 'Женщины_$$',
|
||||
'user_stats_sex_other' => 'Пол не указан_$$',
|
||||
|
||||
/**
|
||||
* Меню профиля пользователя
|
||||
*/
|
||||
'people_menu_users' => 'Пользователи_$$',
|
||||
'people_menu_users_all' => 'Все_$$',
|
||||
'people_menu_users_online' => 'Онлайн_$$',
|
||||
'people_menu_users_new' => 'Новые_$$',
|
||||
|
||||
/**
|
||||
* Регистрация
|
||||
|
@ -408,6 +430,12 @@ return array(
|
|||
'panel_image' => 'изображение_$$',
|
||||
'panel_cut' => 'кат_$$',
|
||||
|
||||
/**
|
||||
* Блоки
|
||||
*/
|
||||
'block_city_tags' => 'Города_$$',
|
||||
'block_country_tags' => 'Страны_$$',
|
||||
|
||||
'site_history_back' => 'Вернуться назад_$$',
|
||||
'site_go_main' => 'перейти на главную_$$',
|
||||
|
||||
|
|
|
@ -92,9 +92,9 @@
|
|||
{/if}
|
||||
<li><a href="#comment{$aComment.obj->getId()}" class="imglink link"></a></li>
|
||||
{if $aComment.obj->getPid()}
|
||||
<li class="goto-comment-parent"><a href="#comment{$aComment.obj->getPid()}" onclick="return lsCmtTree.goToParentComment($(this));" title="Ответ на">↑</a></li>
|
||||
<li class="goto-comment-parent"><a href="#comment{$aComment.obj->getPid()}" onclick="return lsCmtTree.goToParentComment($(this));" title="{$aLang.comment_goto_parent}">↑</a></li>
|
||||
{/if}
|
||||
<li class="goto-comment-child hidden"><a href="#" onclick="return lsCmtTree.goToChildComment(this);" title="Обратно к ответу">↓</a></li>
|
||||
<li class="goto-comment-child hidden"><a href="#" onclick="return lsCmtTree.goToChildComment(this);" title="{$aLang.comment_goto_child}">↓</a></li>
|
||||
{if !$aComment.obj->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}
|
||||
<li><a href="#" class="delete" onclick="lsCmtTree.toggleComment(this,{$aComment.obj->getId()}); return false;">{$aLang.comment_delete}</a></li>
|
||||
{/if}
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
<div class="page people">
|
||||
|
||||
<h1>Пользователи: {$oCity->getName()}</h1>
|
||||
<h1>{$aLang.user_list}: {$oCity->getName()}</h1>
|
||||
|
||||
{if $aUsersCity}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="user">Пользователь</td>
|
||||
<td class="date">Последний визит</td>
|
||||
<td class="date">Дата регистрации</td>
|
||||
<td class="strength">Сила</td>
|
||||
<td class="rating">Рейтинг</td>
|
||||
<td class="user">{$aLang.user}</td>
|
||||
<td class="date">{$aLang.user_date_last}</td>
|
||||
<td class="date">{$aLang.user_date_registration}</td>
|
||||
<td class="strength">{$aLang.user_skill}</td>
|
||||
<td class="rating">{$aLang.user_rating}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
нет таких
|
||||
{$aLang.user_empty}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
<div class="page people">
|
||||
|
||||
<h1>Пользователи: {$oCountry->getName()}</h1>
|
||||
<h1>{$aLang.user_list}: {$oCountry->getName()}</h1>
|
||||
|
||||
{if $aUsersCountry}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="user">Пользователь</td>
|
||||
<td class="date">Последний визит</td>
|
||||
<td class="date">Дата регистрации</td>
|
||||
<td class="strength">Сила</td>
|
||||
<td class="rating">Рейтинг</td>
|
||||
<td class="user">{$aLang.user}</td>
|
||||
<td class="date">{$aLang.user_date_last}</td>
|
||||
<td class="date">{$aLang.user_date_registration}</td>
|
||||
<td class="strength">{$aLang.user_skill}</td>
|
||||
<td class="rating">{$aLang.user_rating}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
нет таких
|
||||
{$aLang.user_empty}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,21 +2,21 @@
|
|||
|
||||
<div class="page people">
|
||||
|
||||
<h1>Пользователи <span>({$aStat.count_all})</span></h1>
|
||||
<h1>{$aLang.user_list} <span>({$aStat.count_all})</span></h1>
|
||||
|
||||
|
||||
<ul class="block-nav">
|
||||
<li {if $sEvent=='good'}class="active"{/if}><strong></strong><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/good/">Позитивные</a></li>
|
||||
<li {if $sEvent=='bad'}class="active"{/if}><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/bad/">Негативные</a><em></em></li>
|
||||
<li {if $sEvent=='good'}class="active"{/if}><strong></strong><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/good/">{$aLang.user_good}</a></li>
|
||||
<li {if $sEvent=='bad'}class="active"{/if}><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/bad/">{$aLang.user_bad}</a><em></em></li>
|
||||
</ul>
|
||||
|
||||
{if $aUsersRating}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="user">Пользователь</td>
|
||||
<td class="strength">Сила</td>
|
||||
<td class="rating">Рейтинг</td>
|
||||
<td class="user">{$aLang.user}</td>
|
||||
<td class="strength">{$aLang.user_skill}</td>
|
||||
<td class="rating">{$aLang.user_rating}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
нет таких
|
||||
{$aLang.user_empty}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
<div class="page people">
|
||||
|
||||
<h1>Новые пользователи</h1>
|
||||
<h1>{$aLang.user_list_new}</h1>
|
||||
|
||||
{if $aUsersRegister}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="user">Пользователь</td>
|
||||
<td class="date">Дата регистрации</td>
|
||||
<td class="strength">Сила</td>
|
||||
<td class="rating">Рейтинг</td>
|
||||
<td class="user">{$aLang.user}</td>
|
||||
<td class="date">{$aLang.user_date_registration}</td>
|
||||
<td class="strength">{$aLang.user_skill}</td>
|
||||
<td class="rating">{$aLang.user_rating}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
нет таких
|
||||
{$aLang.user_empty}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
<div class="page people">
|
||||
|
||||
<h1>Недавно были на сайте</h1>
|
||||
<h1>{$aLang.user_list_online_last}</h1>
|
||||
|
||||
{if $aUsersLast}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="user">Пользователь</td>
|
||||
<td class="date">Последний визит</td>
|
||||
<td class="strength">Сила</td>
|
||||
<td class="rating">Рейтинг</td>
|
||||
<td class="user">{$aLang.user}</td>
|
||||
<td class="date">{$aLang.user_date_last}</td>
|
||||
<td class="strength">{$aLang.user_skill}</td>
|
||||
<td class="rating">{$aLang.user_rating}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
нет таких
|
||||
{$aLang.user_empty}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
<div class="block stat nostyle">
|
||||
<h1>Статистика</h1>
|
||||
<h1>{$aLang.user_stats}</h1>
|
||||
|
||||
<div class="gender">
|
||||
<ul id="chart_users_data">
|
||||
<li>Всего пользователей: {$aStat.count_all}</li>
|
||||
<li><div class="mark" style="background: #70aae0;"></div>Активные: <span>{$aStat.count_active}</span></li>
|
||||
<li class="last"><div class="mark" style="background: #ff68cf;"></div>Заблудившиеся: <span>{$aStat.count_inactive}</span></li>
|
||||
<li>{$aLang.user_stats_all}: {$aStat.count_all}</li>
|
||||
<li><div class="mark" style="background: #70aae0;"></div>{$aLang.user_stats_active}: <span>{$aStat.count_active}</span></li>
|
||||
<li class="last"><div class="mark" style="background: #ff68cf;"></div>{$aLang.user_stats_noactive}: <span>{$aStat.count_inactive}</span></li>
|
||||
</ul>
|
||||
<div class="chart">
|
||||
<div id="chart_users_area"></div>
|
||||
|
@ -22,9 +22,9 @@
|
|||
|
||||
<div class="gender">
|
||||
<ul id="chart_gender_data">
|
||||
<li><div class="mark" style="background: #70aae0;"></div>Мужчины: <span>{$aStat.count_sex_man}</span></li>
|
||||
<li><div class="mark" style="background: #ff68cf;"></div>Женщины: <span>{$aStat.count_sex_woman}</span></li>
|
||||
<li class="last"><div class="mark" style="background: #c5c5c5;"></div>Пол не указан: <span>{$aStat.count_sex_other}</span></li>
|
||||
<li><div class="mark" style="background: #70aae0;"></div>{$aLang.user_stats_sex_man}: <span>{$aStat.count_sex_man}</span></li>
|
||||
<li><div class="mark" style="background: #ff68cf;"></div>{$aLang.user_stats_sex_woman}: <span>{$aStat.count_sex_woman}</span></li>
|
||||
<li class="last"><div class="mark" style="background: #c5c5c5;"></div>{$aLang.user_stats_sex_other}: <span>{$aStat.count_sex_other}</span></li>
|
||||
</ul>
|
||||
<div class="chart">
|
||||
<div id="chart_gender_area"></div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="block white tags">
|
||||
<div class="tl"><div class="tr"></div></div>
|
||||
<div class="cl"><div class="cr">
|
||||
<h1>Города</h1>
|
||||
<h1>{$aLang.block_city_tags}</h1>
|
||||
<ul class="cloud">
|
||||
{foreach from=$aCityList item=aCity}
|
||||
<li><a class="w{$aCity.size}" rel="tag" href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/city/{$aCity.name|escape:'html'}/" >{$aCity.name|escape:'html'}</a></li>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="block white tags">
|
||||
<div class="tl"><div class="tr"></div></div>
|
||||
<div class="cl"><div class="cr">
|
||||
<h1>Страны</h1>
|
||||
<h1>{$aLang.block_country_tags}</h1>
|
||||
<ul class="cloud">
|
||||
{foreach from=$aCountryList item=aCountry}
|
||||
<li><a class="w{$aCountry.size}" rel="tag" href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/country/{$aCountry.name|escape:'html'}/">{$aCountry.name|escape:'html'}</a></li>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<img src="{$DIR_STATIC_SKIN}/images/close.gif" alt="+" title="Свернуть ветку комментариев" class="folding" style="display: none;"/>
|
||||
<img src="{$DIR_STATIC_SKIN}/images/close.gif" alt="+" title="{$aLang.comment_collapse}/{$aLang.comment_expand}" class="folding" style="display: none;"/>
|
||||
<a name="comment{$oComment->getId()}" ></a>
|
||||
|
||||
<div class="voting {if $oComment->getRating()>0}positive{elseif $oComment->getRating()<0}negative{/if} {if !$oUserCurrent || $oComment->getUserId()==$oUserCurrent->getId()}guest{/if} {if $oComment->getUserIsVote()} voted {if $oComment->getUserVoteDelta()>0}plus{else}minus{/if}{/if} ">
|
||||
|
@ -23,12 +23,12 @@
|
|||
<p><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PROFILE}/{$oComment->getUserLogin()}/" class="author">{$oComment->getUserLogin()}</a></p>
|
||||
<ul>
|
||||
<li class="date">{date_format date=$oComment->getDate()}</li>
|
||||
<li><a href="javascript:lsCmtTree.toggleCommentForm({$oComment->getId()});" class="reply-link">Ответить</a></li>
|
||||
<li><a href="javascript:lsCmtTree.toggleCommentForm({$oComment->getId()});" class="reply-link">{$aLang.comment_answer}</a></li>
|
||||
<li><a href="#comment{$oComment->getId()}" class="imglink link"></a></li>
|
||||
{if $oComment->getPid()}
|
||||
<li class="goto-comment-parent"><a href="#comment{$oComment->getPid()}" onclick="return lsCmtTree.goToParentComment($(this));" title="Ответ на">↑</a></li>
|
||||
<li class="goto-comment-parent"><a href="#comment{$oComment->getPid()}" onclick="return lsCmtTree.goToParentComment($(this));" title="{$aLang.comment_goto_parent}">↑</a></li>
|
||||
{/if}
|
||||
<li class="goto-comment-child hidden"><a href="#" onclick="return lsCmtTree.goToChildComment(this);" title="Обратно к ответу">↓</a></li>
|
||||
<li class="goto-comment-child hidden"><a href="#" onclick="return lsCmtTree.goToChildComment(this);" title="{$aLang.comment_goto_child}">↓</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
<ul class="menu">
|
||||
<li class="active"><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/">Пользователи</a>
|
||||
<li class="active"><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/">{$aLang.people_menu_users}</a>
|
||||
<ul class="sub-menu">
|
||||
<li {if $sEvent=='' || $sEvent=='good' || $sEvent=='bad'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/">Все</a></div></li>
|
||||
<li {if $sEvent=='online'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/online/">Онлайн</a></div></li>
|
||||
<li {if $sEvent=='new'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/new/">Новые</a></div></li>
|
||||
<li {if $sEvent=='' || $sEvent=='good' || $sEvent=='bad'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/">{$aLang.people_menu_users_all}</a></div></li>
|
||||
<li {if $sEvent=='online'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/online/">{$aLang.people_menu_users_online}</a></div></li>
|
||||
<li {if $sEvent=='new'}class="active"{/if}><div><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PEOPLE}/new/">{$aLang.people_menu_users_new}</a></div></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
Loading…
Reference in a new issue