1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Фикс оформления и багов в шаблоне, изменено меню в блоке прямого эфира

This commit is contained in:
Denis Shakhov 2012-04-21 18:50:40 +07:00
parent 0cf7ed9876
commit 9cba78806b
27 changed files with 324 additions and 225 deletions

View file

@ -309,10 +309,10 @@ ls.user = (function ($) {
$.each(aFields,function(i,aField){
if (result.aErrors && result.aErrors[aField.field][0]) {
sForm.find('.validate-error-field-'+aField.field).removeClass('validate-error-hide').addClass('validate-error-show').text(result.aErrors[aField.field][0]);
sForm.find('.validate-ok-field-'+aField.field).addClass('hidden');
sForm.find('.validate-ok-field-'+aField.field).hide();
} else {
sForm.find('.validate-error-field-'+aField.field).removeClass('validate-error-show').addClass('validate-error-hide');
sForm.find('.validate-ok-field-'+aField.field).removeClass('hidden');
sForm.find('.validate-ok-field-'+aField.field).show();
}
});
ls.hook.run('ls_user_validate_registration_fields_after', [aFields, sForm, result]);

View file

@ -10,11 +10,11 @@
<table class="table table-users">
<thead>
<tr>
<th>{$aLang.blog_admin_users}</th>
<th>{$aLang.blog_admin_users_administrator}</th>
<th>{$aLang.blog_admin_users_moderator}</th>
<th>{$aLang.blog_admin_users_reader}</th>
<th>{$aLang.blog_admin_users_bun}</th>
<th class="cell-name">{$aLang.blog_admin_users}</th>
<th class="ta-c">{$aLang.blog_admin_users_administrator}</th>
<th class="ta-c">{$aLang.blog_admin_users_moderator}</th>
<th class="ta-c">{$aLang.blog_admin_users_reader}</th>
<th class="ta-c">{$aLang.blog_admin_users_bun}</th>
</tr>
</thead>
@ -23,15 +23,18 @@
{assign var="oUser" value=$oBlogUser->getUser()}
<tr>
<td><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></td>
<td class="cell-name">
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
</td>
{if $oUser->getId()==$oUserCurrent->getId()}
<td colspan="3">{$aLang.blog_admin_users_current_administrator}</td>
{else}
<td><input type="radio" name="user_rank[{$oUser->getId()}]" value="administrator" {if $oBlogUser->getIsAdministrator()}checked{/if} /></td>
<td><input type="radio" name="user_rank[{$oUser->getId()}]" value="moderator" {if $oBlogUser->getIsModerator()}checked{/if} /></td>
<td><input type="radio" name="user_rank[{$oUser->getId()}]" value="reader" {if $oBlogUser->getUserRole()==$BLOG_USER_ROLE_USER}checked{/if} /></td>
<td><input type="radio" name="user_rank[{$oUser->getId()}]" value="ban" {if $oBlogUser->getUserRole()==$BLOG_USER_ROLE_BAN}checked{/if} /></td>
<td class="ta-c"><input type="radio" name="user_rank[{$oUser->getId()}]" value="administrator" {if $oBlogUser->getIsAdministrator()}checked{/if} /></td>
<td class="ta-c"><input type="radio" name="user_rank[{$oUser->getId()}]" value="moderator" {if $oBlogUser->getIsModerator()}checked{/if} /></td>
<td class="ta-c"><input type="radio" name="user_rank[{$oUser->getId()}]" value="reader" {if $oBlogUser->getUserRole()==$BLOG_USER_ROLE_USER}checked{/if} /></td>
<td class="ta-c"><input type="radio" name="user_rank[{$oUser->getId()}]" value="ban" {if $oBlogUser->getUserRole()==$BLOG_USER_ROLE_BAN}checked{/if} /></td>
{/if}
</tr>
{/foreach}

View file

@ -52,7 +52,7 @@
<img src="{$oBlog->getAvatarPath(48)}" alt="avatar" class="avatar" />
<h2>{$oBlog->getTitle()|escape:'html'}</h2>
<h2>{if $oBlog->getType()=='close'}<i title="{$aLang.blog_closed}" class="icon icon-lock"></i> {/if}{$oBlog->getTitle()|escape:'html'}</h2>
<ul class="actions">
@ -123,8 +123,8 @@
<div class="nav-blog-wrapper">
<ul class="nav nav-pills nav-blog">
<div class="nav-filter-wrapper">
<ul class="nav nav-filter">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{$sMenuSubBlogUrl}">{$aLang.blog_menu_collective_good}</a></li>
{if $iCountTopicsBlogNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{$sMenuSubBlogUrl}new/">{$aLang.blog_menu_collective_new} +{$iCountTopicsBlogNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{$sMenuSubBlogUrl}discussed/">{$aLang.blog_menu_collective_discussed}</a></li>
@ -133,7 +133,7 @@
</ul>
{if $sPeriodSelectCurrent}
<ul class="nav nav-pills">
<ul class="nav nav-filter nav-filter-sub">
<li {if $sPeriodSelectCurrent=='1'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=1">{$aLang.blog_menu_top_period_24h}</a></li>
<li {if $sPeriodSelectCurrent=='7'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=7">{$aLang.blog_menu_top_period_7d}</a></li>
<li {if $sPeriodSelectCurrent=='30'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=30">{$aLang.blog_menu_top_period_30d}</a></li>
@ -144,6 +144,7 @@
{if $bCloseBlog}
{$aLang.blog_close_show}
{else}

View file

@ -1,32 +1,34 @@
<section class="block">
<h3>{$aLang.blog_admin_user_add_header}</h3>
<header class="block-header">
<h3>{$aLang.blog_admin_user_add_header}</h3>
</header>
<form onsubmit="return ls.blog.addInvite({$oBlogEdit->getId()});">
<p>
<label for="blog_admin_user_add">{$aLang.blog_admin_user_add_label}:</label>
<input type="text" id="blog_admin_user_add" name="add" class="input-text input-width-full autocomplete-users-sep" />
</p>
</form>
<div class="block-content">
<form onsubmit="return ls.blog.addInvite({$oBlogEdit->getId()});">
<p>
<label for="blog_admin_user_add">{$aLang.blog_admin_user_add_label}:</label>
<input type="text" id="blog_admin_user_add" name="add" class="input-text input-width-full autocomplete-users-sep" />
</p>
</form>
<br />
<h3>{$aLang.blog_admin_user_invited}:</h3>
<br />
<h3>{$aLang.blog_admin_user_invited}:</h3>
<div id="invited_list_block">
{if $aBlogUsersInvited}
<ul class="user-list" id="invited_list">
{foreach from=$aBlogUsersInvited item=oBlogUser}
{assign var='oUser' value=$oBlogUser->getUser()}
<li>
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" /></a>
<a href="{$oUser->getUserWebPath()}" class="username">{$oUser->getLogin()}</a><br />
<a href="#" onclick="return ls.blog.repeatInvite({$oUser->getId()}, {$oBlogEdit->getId()});">{$aLang.blog_user_invite_readd}</a>
</li>
{/foreach}
</ul>
{else}
<span class="notice-empty">{$aLang.blog_admin_user_add_empty}</span>
{/if}
<div id="invited_list_block">
{if $aBlogUsersInvited}
<ul id="invited_list">
{foreach from=$aBlogUsersInvited item=oBlogUser}
{assign var='oUser' value=$oBlogUser->getUser()}
<li>
<a href="{$oUser->getUserWebPath()}" class="user">{$oUser->getLogin()}</a> -
<a href="#" onclick="return ls.blog.repeatInvite({$oUser->getId()}, {$oBlogEdit->getId()});">{$aLang.blog_user_invite_readd}</a>
</li>
{/foreach}
</ul>
{else}
<span class="notice-empty">{$aLang.blog_admin_user_add_empty}</span>
{/if}
</div>
</div>
</section>

View file

@ -93,7 +93,7 @@
<section class="block block-type-profile-nav">
<ul class="nav nav-profile">
<ul class="nav nav-pills nav-profile">
<li {if $sAction=='profile' && ($aParams[0]=='whois' or $aParams[0]=='')}class="active"{/if}><a href="{$oUserProfile->getUserWebPath()}">{$aLang.user_menu_profile_whois}</a></li>
<li {if $sAction=='profile' && $aParams[0]=='wall'}class="active"{/if}><a href="{$oUserProfile->getUserWebPath()}wall/">{$aLang.user_menu_profile_wall}{if ($iCountWallUser)>0} ({$iCountWallUser}){/if}</a></li>
<li {if $sAction=='profile' && $aParams[0]=='created'}class="active"{/if}><a href="{$oUserProfile->getUserWebPath()}created/topics/">{$aLang.user_menu_publication}{if ($iCountCreated)>0} ({$iCountCreated}){/if}</a></li>

View file

@ -32,25 +32,25 @@
<p><label for="popup-registration-login">{$aLang.registration_login}</label>
<input type="text" name="login" id="popup-registration-login" value="{$_aRequest.login}" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-login hidden"></i>
<i class="icon-ok-green validate-ok-field-login" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_login_notice}"></i>
<small class="validate-error-hide validate-error-field-login"></small></p>
<p><label for="popup-registration-mail">{$aLang.registration_mail}</label>
<input type="text" name="mail" id="popup-registration-mail" value="{$_aRequest.mail}" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-mail hidden"></i>
<i class="icon-ok-green validate-ok-field-mail" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_mail_notice}"></i>
<small class="validate-error-hide validate-error-field-mail"></small></p>
<p><label for="popup-registration-user-password">{$aLang.registration_password}</label>
<input type="password" name="password" id="popup-registration-user-password" value="" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-password hidden"></i>
<i class="icon-ok-green validate-ok-field-password" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_password_notice}"></i>
<small class="validate-error-hide validate-error-field-password"></small></p>
<p><label for="popup-registration-user-password-confirm">{$aLang.registration_password_retry}</label>
<input type="password" value="" id="popup-registration-user-password-confirm" name="password_confirm" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-password_confirm hidden"></i>
<i class="icon-ok-green validate-ok-field-password_confirm" style="display: none"></i>
<small class="validate-error-hide validate-error-field-password_confirm"></small></p>
{hookb run="registration_captcha"}

View file

@ -24,7 +24,7 @@
<p><label for="talk_filter_favourite"><input type="checkbox" {if $_aRequest.favourite}checked="checked" {/if} class="input-checkbox" name="favourite" value="1" id="talk_filter_favourite" />
{$aLang.talk_filter_label_favourite}</label></p>
<input type="submit" name="submit_talk_filter" value="{$aLang.talk_filter_submit}" class="button" />
<input type="submit" name="submit_talk_filter" value="{$aLang.talk_filter_submit}" class="button button-primary" />
<input type="submit" name="" value="{$aLang.talk_filter_submit_clear}" class="button" onclick="return ls.talk.clearFilter();" />
</form>
</div>

View file

@ -1,4 +1,4 @@
<ul class="user-list">
<ul class="item-list">
{foreach from=$aBlogs item=oBlog}
<li>
<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(48)}" alt="avatar" class="avatar" /></a>

View file

@ -1,3 +1,45 @@
<script type="text/javascript">
jQuery(function($){
if ($('#block-stream-nav').find('li').length > 2) {
// Transform nav to dropdown
$('#block-stream-nav').hide();
$('#block-stream-nav-dropdown').show();
// Dropdown
var trigger = $('#dropdown-stream-trigger');
var menu = $('#dropdown-stream-menu');
var pos = trigger.offset();
menu.appendTo('body').css({ 'left': pos.left, 'top': pos.top + 30, 'display': 'none' });
trigger.click(function(){
menu.slideToggle();
$(this).toggleClass('opened');
return false;
});
menu.find('a').click(function(){
trigger.removeClass('opened').find('a').text( $(this).text() );
menu.slideToggle();
});
// Hide menu
$(document).click(function(){
trigger.removeClass('opened');
menu.slideUp();
});
$('body').on("click", "#dropdown-stream-trigger, #dropdown-stream-menu", function(e) {
e.stopPropagation();
});
}
});
</script>
<section class="block block-type-stream" id="block_stream">
<header class="block-header">
<h3><a href="{router page='comments'}" title="{$aLang.block_stream_comments_all}">{$aLang.block_stream}</a></h3>
@ -5,12 +47,21 @@
<div class="block-content">
<ul class="nav nav-pills">
<ul class="nav nav-pills" id="block-stream-nav">
<li id="block_stream_item_comment" class="active"><a href="#">{$aLang.block_stream_comments}</a></li>
<li id="block_stream_item_topic"><a href="#">{$aLang.block_stream_topics}</a></li>
{hook run='block_stream_nav_item'}
</ul>
</ul>
<ul class="nav nav-pills" id="block-stream-nav-dropdown" style="display: none">
<li class="dropdown active" id="dropdown-stream-trigger"><a href="#">{$aLang.block_stream_comments}</a> <i class="arrow"></i>
<ul class="dropdown-menu" id="dropdown-stream-menu">
<li id="block_stream_item_comment" class="active"><a href="#">{$aLang.block_stream_comments}</a></li>
<li id="block_stream_item_topic"><a href="#">{$aLang.block_stream_topics}</a></li>
{hook run='block_stream_nav_item'}
</ul>
</li>
</ul>
<div id="block_stream_content">

View file

@ -1,4 +1,4 @@
<ul class="user-list">
<ul class="item-list">
{foreach from=$aComments item=oComment name="cmt"}
{assign var="oUser" value=$oComment->getUser()}
{assign var="oTopic" value=$oComment->getTarget()}
@ -8,7 +8,7 @@
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" class="avatar" /></a>
<a href="{$oUser->getUserWebPath()}" class="author">{$oUser->getLogin()}</a> &rarr;
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a> &rarr;
<a href="{$oBlog->getUrlFull()}" class="blog-name">{$oBlog->getTitle()|escape:'html'}</a> &rarr;
<a href="{if $oConfig->GetValue('module.comment.nested_per_page')}{router page='comments'}{else}{$oTopic->getUrl()}#comment{/if}{$oComment->getId()}">{$oTopic->getTitle()|escape:'html'}</a>
<p>

View file

@ -1,4 +1,4 @@
<ul class="user-list">
<ul class="item-list">
{foreach from=$oTopics item=oTopic name="cmt"}
{assign var="oUser" value=$oTopic->getUser()}
{assign var="oBlog" value=$oTopic->getBlog()}
@ -7,7 +7,7 @@
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" class="avatar" /></a>
<a href="{$oUser->getUserWebPath()}" class="author">{$oUser->getLogin()}</a> &rarr;
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a> &rarr;
<a href="{$oBlog->getUrlFull()}" class="blog-name">{$oBlog->getTitle()|escape:'html'}</a> &rarr;
<a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a>
<p>

View file

@ -37,17 +37,19 @@
<tr>
<td class="cell-name">
<a href="#" onclick="return ls.infobox.showInfoBlog(this,{$oBlog->getId()});" class="icon-question-sign"></a>
{if $oBlog->getType() == 'close'}
<i title="{$aLang.blog_closed}" class="icon-lock"></i>
{/if}
<a href="{$oBlog->getUrlFull()}">
<img src="{$oBlog->getAvatarPath(48)}" width="48" height="48" alt="avatar" class="avatar" />
</a>
<p>
<a href="#" onclick="return ls.infobox.showInfoBlog(this,{$oBlog->getId()});" class="icon-question-sign"></a>
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>
{if $oBlog->getType() == 'close'}
<i title="{$aLang.blog_closed}" class="icon-lock"></i>
{/if}
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>
</p>
</td>
{if $oUserCurrent}

View file

@ -1 +1 @@
/* ГЛОБАЛЬНЫЕ СТИЛИ -------------------------------------- */ body { font-size: 13px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 18px; color: #333; background-color: #f7f7f7; } /* ССЫЛКИ -------------------------------------- */ a { color: #5055b2; text-decoration: none; } a:hover { color: #06e; } a.link-dashed { border-bottom: 1px dashed #5055b2; } a.link-dashed:hover { border-color: #06e; } a.link-dotted { text-decoration: none; border-bottom: 1px dotted #5055b2; } a.link-dotted:hover { border-color: #06e; } /* ЗАГОЛОВКИ -------------------------------------- */ h2.page-header { color: #333; font-size: 27px; line-height: 1em; font-weight: bold; margin-bottom: 20px; } h2.page-header span { color: #aaa; } h2.header-table { margin-bottom: 0; border-bottom: 1px solid #eee; padding-bottom: 5px; font-size: 14px; font-weight: bold; } /* Шапка сайта -------------------------------------- */ -------------------------------------- */ ; } #header .site-name { margin: 0 0 10px; font-size: 54px; line-height: 1em; font-weight: bold; } #header .site-name a:hover { color: #444AA3; } #header .site-description { width: 500px; color: #777; font-size: 15px; } /* Футер -------------------------------------- */ #footer .copyright { float: right; }
/* Глобальные стили -------------------------------------- */ body { font-size: 13px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 18px; color: #333; background-color: #f7f7f7; } /* Ссылки -------------------------------------- */ a { color: #5055b2; text-decoration: none; } a:hover { color: #06e; } a.link-dashed { border-bottom: 1px dashed #5055b2; } a.link-dashed:hover { border-color: #06e; } a.link-dotted { text-decoration: none; border-bottom: 1px dotted #5055b2; } a.link-dotted:hover { border-color: #06e; } /* Заголовки -------------------------------------- */ h2.page-header { color: #333; font-size: 27px; line-height: 1em; font-weight: bold; margin-bottom: 20px; } h2.page-header span { color: #aaa; } h2.header-table { margin-bottom: 0; border-bottom: 1px solid #eee; padding-bottom: 5px; font-size: 14px; font-weight: bold; } /* Шапка сайта -------------------------------------- */ -------------------------------------- */ line-height: 18px; ; } #header .site-name { margin: 0 0 10px; font-size: 54px; line-height: 1em; font-weight: bold; } #header .site-name a:hover { color: #444AA3; } #header .site-description { width: 500px; color: #777; font-size: 15px; } /* Футер -------------------------------------- */ #footer .copyright { float: right; }

View file

@ -6,11 +6,11 @@
.block:last-child { margin-bottom: 0; }
.sidebar-left .block { margin-bottom: 10px; }
.block .block-header { padding: 13px 20px; background: #EAF6F9; border-bottom: 1px solid #D2E8EF; position: relative; }
.block .block-header { padding: 13px 20px; background: #f5f5f5; border-top: 1px solid #eee; position: relative; }
.block .block-header h3 { font-size: 16px; line-height: 1em; font-weight: normal; }
.block .block-header h3 a { text-decoration: none; }
.block footer { margin-top: 15px; font-size: 12px; }
.block .block-header h3 a { text-decoration: none; color: #333; }
.block .block-content { padding: 20px; }
.block footer { margin-top: 15px; font-size: 12px; }
.block .max-height-200 { overflow: auto; max-height: 200px; _height: expression( this.scrollHeight > 200 ? "200px" : "auto" ); position: relative; }
@ -34,7 +34,7 @@
.block.block-type-profile-note p { margin-bottom: 10px; }
.block.block-type-profile-note .actions { margin-bottom: 0; }
.block.block-type-profile-nav { padding: 0; }
.block.block-type-profile-nav { padding: 0; background: none; }
.block.block-type-profile-actions .block-content { padding: 10px 15px; }
.block.block-type-profile-actions ul li { margin-bottom: 5px; }

View file

@ -4,9 +4,10 @@
.blog { background: #fafafa; margin-bottom: 10px; border-radius: 3px; border: 1px solid #eee; overflow: hidden; }
.blog .blog-header { position: relative; padding: 15px 130px 15px 78px; border-bottom: 1px solid #eee; }
.blog .blog-header h2 { font-size: 20px; font-weight: bold; line-height: 1em; margin-top: 3px; margin-bottom: 7px; }
.blog .blog-header .avatar { position: absolute; top: 15px; left: 15px; }
.blog .blog-header { position: relative; padding: 15px 130px 15px 78px; border-bottom: 1px solid #eee; }
.blog .blog-header h2 { font-size: 20px; font-weight: bold; line-height: 1em; margin-top: 3px; margin-bottom: 7px; }
.blog .blog-header h2 i { position: relative; top: 5px; }
.blog .blog-header .avatar { position: absolute; top: 15px; left: 15px; }
.blog .blog-header .vote-label { text-transform: uppercase; text-align: right; font-size: 11px; color: #aaa; }
@ -29,5 +30,5 @@
.blog .blog-footer { padding: 15px; border-bottom: 1px solid #eee; }
.blog-more { display: block; padding: 10px 0; text-align: center; text-decoration: none; background: #fafafa; }
.blog-more:hover { background: #eee; }
.blog-more { display: block; padding: 10px 0; text-align: center; text-decoration: none; background: #fafafa; }
.blog-more:hover { background: #eee; }

View file

@ -19,19 +19,29 @@
text-align: center;
border: none;
border-radius: 3px;
border-radius: 2px;
font-size: 12px;
line-height: 16px;
color: #fff;
background: #555;
background: -moz-linear-gradient(top, #666666 0%, #555555 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#666666), color-stop(100%,#555555));
background: -webkit-linear-gradient(top, #666666 0%,#555555 100%);
background: -o-linear-gradient(top, #666666 0%,#555555 100%);
background: -ms-linear-gradient(top, #666666 0%,#555555 100%);
background: linear-gradient(top, #666666 0%,#555555 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#555555',GradientType=0 );
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
cursor: pointer;
*margin-right: 5px;
}
.button:hover { text-decoration: none; color: #fff; background: #4a4a4a; }
.button:hover { text-decoration: none; color: #fff; background: #666; }
.button:active {
-moz-box-shadow: 0 0 7px rgba(0, 0, 0, .5) inset;
-webkit-box-shadow: 0 0 7px rgba(0, 0, 0, .5) inset;
@ -41,8 +51,17 @@
/* Button Primary */
.button.button-primary { background: #6a57a9; }
.button.button-primary:hover { background: #5e4e95; }
.button.button-primary {
background: #43bb34;
background: -moz-linear-gradient(top, #43bb34 0%, #3aa62c 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#43bb34), color-stop(100%,#3aa62c));
background: -webkit-linear-gradient(top, #43bb34 0%,#3aa62c 100%);
background: -o-linear-gradient(top, #43bb34 0%,#3aa62c 100%);
background: -ms-linear-gradient(top, #43bb34 0%,#3aa62c 100%);
background: linear-gradient(top, #43bb34 0%,#3aa62c 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#43bb34', endColorstr='#3aa62c',GradientType=0 );
}
.button.button-primary:hover { background: #3AA62C; }
/* Button Icon */

View file

@ -1,20 +1,18 @@
/* Голосование
---------------------------------------------------------------*/
.vote { }
.vote .vote-count { display: inline-block; font-weight: bold; color: #aaa; font-size: 14px; }
.vote .vote-count a { text-decoration: none; color: #999; outline: none; }
.vote .vote-count { display: inline-block; font-weight: bold; color: #aaa; font-size: 14px; }
.vote .vote-count a { text-decoration: none; color: #999; outline: none; }
.vote.vote-count-positive .vote-count { color: #390; }
.vote.vote-count-negative .vote-count { color: #f00; }
.vote.vote-count-positive .vote-count { color: #390; }
.vote.vote-count-negative .vote-count { color: #f00; }
.vote .vote-up,
.vote .vote-down { display: inline-block; cursor: pointer; vertical-align: text-top; width: 14px; height: 14px; background: url(../images/icons.png) no-repeat; opacity: .3; filter: alpha(opacity=30); }
.vote .vote-up { background-position: -408px -96px; }
.vote .vote-down { background-position: -433px -96px; }
.vote .vote-up:hover { opacity: .8; filter: alpha(opacity=80); }
.vote .vote-down:hover { opacity: .8; filter: alpha(opacity=80); }
.vote .vote-down { display: inline-block; cursor: pointer; vertical-align: text-top; width: 14px; height: 14px; background: url(../images/icons.png) no-repeat; opacity: .3; filter: alpha(opacity=30); }
.vote .vote-up { background-position: -408px -96px; }
.vote .vote-down { background-position: -433px -96px; }
.vote .vote-up:hover { opacity: .8; filter: alpha(opacity=80); }
.vote .vote-down:hover { opacity: .8; filter: alpha(opacity=80); }
.vote.voted.voted-up .vote-up { opacity: 1; filter: alpha(opacity=100); }
.vote.voted.voted-down .vote-down { opacity: 1; filter: alpha(opacity=100); }
@ -34,16 +32,13 @@
/* Пагинация
---------------------------------------------------------------*/
.pagination ul { overflow: hidden; zoom: 1; line-height: 1em; }
.pagination ul li { float: left; margin-right: 5px; }
.pagination ul { overflow: hidden; zoom: 1; line-height: 1em; }
.pagination ul li { float: left; margin-right: 5px; }
.pagination ul li span,
.pagination ul li a { float: left; padding: 7px 10px; border: 1px solid #eee; border-radius: 3px; }
.pagination ul li a { background: #f2f2f9; border-color: #dee0ef; }
.pagination ul li a:hover { background: #EAEAF7; }
.pagination ul li.active { color: #aaa; }
.pagination ul li i { opacity: .5; filter: alpha(opacity=50); }
.pagination.pagination-comments { margin-bottom: 15px; }
.pagination ul li a { float: left; padding: 7px 10px; background: #eee; color: #333; }
.pagination ul li a:hover { background: #ddd; }
.pagination ul li.active span { color: #bbb; background: #fafafa; }
.pagination ul li i { opacity: .5; filter: alpha(opacity=50); }
@ -51,7 +46,7 @@
---------------------------------------------------------------*/
.actions { overflow: hidden; zoom: 1; margin-bottom: 10px; }
.actions li { float: left; margin-right: 10px; }
.actions li a { color: #f00; }
.actions li a { color: #D23232; }
.actions li a:hover { text-decoration: underline; }
.actions li a.link-dotted { border-color: #f00; }
.actions li a.link-dotted:hover { border-color: #06e; color: #06e; text-decoration: none; }
@ -61,7 +56,7 @@
/* Toolbar
---------------------------------------------------------------*/
.toolbar { float: right; position: fixed; top: 220px; right: 10px; z-index: 100; }
.toolbar section { width: 34px; line-height: 14px; background: #fff; box-shadow: 0 0 5px rgba(0,0,0,.1); margin-bottom: 10px; }
.toolbar section { width: 34px; line-height: 14px; background: #fff; box-shadow: 0 0 5px rgba(0,0,0,.05); margin-bottom: 10px; }
.toolbar section a { display: block; padding: 10px; }
.toolbar section a:hover { background: #fafafa; }
.toolbar section i { display: block; }
@ -86,13 +81,6 @@
/* Список пользователей
---------------------------------------------------------------*/
.user-list { border-top: 1px solid #eee; }
.user-list li { min-height: 48px; padding: 7px 0 10px 58px; border-bottom: 1px solid #eee; position: relative; zoom: 1; }
.user-list li p { padding-top: 2px; font-size: 11px; }
.user-list li a { text-decoration: none; }
.user-list li .avatar { position: absolute; top: 10px; left: 0; margin-right: 10px; }
.user-list li .author { font-weight: bold; color: #333; }
.user-list-avatar { overflow: hidden; zoom: 1; }
.user-list-avatar li { width: 64px; overflow: hidden; float: left; margin-right: 20px; margin-bottom: 15px; text-align: center; font-size: 11px; }
.user-list-avatar li img { margin-bottom: 2px; display: block; }
@ -140,27 +128,21 @@
/* Выпадающее меню создания топика
/* Item List
---------------------------------------------------------------*/
.create-dropdown { position: relative; margin-right: 120px; }
.create-dropdown a { font-weight: normal; }
.item-list { border-top: 1px solid #eee; }
.item-list li { min-height: 51px; padding: 7px 0 10px 58px; border-bottom: 1px solid #eee; position: relative; zoom: 1; }
.item-list li p { padding-top: 2px; font-size: 11px; }
.item-list li a { text-decoration: none; }
.item-list li .avatar { position: absolute; top: 10px; left: 0; margin-right: 10px; }
.item-list li .author { font-weight: bold; color: #333; }
.item-list li .blog-name { font-weight: bold; }
.create-dropdown-link { text-transform: lowercase; }
.create-dropdown-menu { position: absolute; top: 32px; overflow: hidden; background: #fff; border: 1px solid #ddd; min-width: 150px; box-shadow: 0 0 5px #ddd; border-radius: 3px; }
.create-dropdown-menu li { font-size: 14px; line-height: 1em; }
.create-dropdown-menu li a { display: block; padding: 10px 15px; }
.create-dropdown-menu li a:hover { background: #fafafa; }
.create-dropdown-menu li.active a { color: #333; }
.create-dropdown-menu li.active a:hover { cursor: default; }
.drafts { float: right; margin-top: 10px; }
/* Разное
-------------------- */
/* Stat */
.stat-performance { width: 910px; margin: 0 auto 20px; padding: 15px 20px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stat-performance table { }
@ -199,27 +181,39 @@
.avatar-edit img { vertical-align: bottom; }
.avatar-edit label { margin-top: 10px; }
.drafts { float: right; margin-top: 10px; }
/* Хелперы
---------------------------------------------------------------*/
.mt-10 { margin-bottom: 10px !important; }
.mt-20 { margin-bottom: 20px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.clearfix:before,
.clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
.ta-c { text-align: center !important; }
.ta-r { text-align: right !important; }
.va-m { vertical-align: middle; }
.fl-r { float: right !important; }
.fl-l { float: left !important; }
.hidden { display: none !important; }
.clearfix:before,
.clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
.word-wrap {
white-space: -moz-pre-wrap !important;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
white-space: normal;
}
.user, .ls-user { font-weight: bold; color: #333; }
.user .icon-user { margin-right: 3px; }

File diff suppressed because one or more lines are too long

View file

@ -2,14 +2,14 @@
СТРАНИЦА ПОЛЬЗОВАТЕЛЯ
-------------------------------------------- */
.profile { min-height: 48px; margin-bottom: 0; padding: 0 250px 20px 65px; position: relative; border-bottom: 1px solid #ddd; }
.profile { min-height: 48px; margin-bottom: 0; padding: 0 300px 20px 65px; position: relative; }
.profile .avatar { position: absolute; top: 0; left: 0; }
.profile .vote-label { text-transform: uppercase; text-align: right; font-size: 11px; color: #aaa; }
.profile .count { font-size: 34px; line-height: 1em; font-weight: bold; text-align: right; }
.profile .vote { position: absolute; top: 0; right: 110px; background: #fff; }
.profile .vote { position: absolute; top: 0; right: 130px; background: #fff; }
.profile .vote .vote-count { padding-left: 25px; display: block; }
.profile .vote .vote-up { position: absolute; top: 22px; left: 0; display: none; }
.profile .vote .vote-down { position: absolute; top: 35px; left: 0; display: none; }
@ -25,7 +25,7 @@
.profile .user-login.no-user-name { position: relative; top: 9px; }
.profile .user-name { color: #777; }
.profile-page-header { font-size: 12px; font-weight: bold; margin-bottom: 20px; background: #eee; color: #555; padding: 5px 10px 6px; }
.profile-page-header { font-size: 12px; font-weight: bold; margin-bottom: 20px; background: #f5f5f5; border-top: 1px solid #eee; color: #555; padding: 5px 10px 6px; }
.profile-info-about { padding: 13px 20px 20px; background: #EEFCE5; border-radius: 5px; margin-bottom: 30px; color: #000; }
.profile-info-about { padding: 13px 20px 20px; background: #F1F9F1; border-radius: 5px; margin-bottom: 30px; color: #000; }
.profile-info-about h3 { font-size: 18px; margin-bottom: 5px; }

View file

@ -1,7 +1,6 @@
/* -------------------------------------------------------------------
ТАБЛИЦЫ
------------------------------------------------------------------- */
.table { width: 100%; margin-bottom: 15px; }
.table th { text-align: left; background: #fafafa; }
.table td, .table th { border-bottom: 1px solid #eee; padding: 10px; }
@ -10,29 +9,41 @@
.table a.asc:after { content: "▲"; }
.table a.desc:after { content: "▼"; }
.table.table-blogs .cell-name { width: 30%; }
.table.table-blogs .cell-name .avatar { float: left; margin-right: 10px; }
.table.table-blogs .cell-rating { width: 15%; font-weight: bold; }
.table.table-blogs .cell-readers { width: 15%; text-align: center; vertical-align: middle; }
.table.table-blogs .cell-join { text-align: center; vertical-align: middle; }
/* Table Blogs */
.table.table-blogs .cell-name { }
.table.table-blogs .cell-name .avatar { float: left; margin-right: 10px; clear: right; }
.table.table-blogs .cell-name p { overflow: hidden; }
.table.table-blogs .cell-rating { width: 70px; font-weight: bold; }
.table.table-blogs .cell-readers { width: 70px; text-align: center; vertical-align: middle; }
.table.table-blogs .cell-join { width: 130px; text-align: center; vertical-align: middle; }
.table.table-blogs .cell-rating { text-align: center; vertical-align: middle; }
.table.table-plugins .cell-checkbox { width: 20px; padding: 12px 0 10px 10px; }
.table.table-plugins h3 { font-weight: bold; font-size: 17px; line-height: 20px; margin-bottom: 5px; }
/* Table Plugins */
.table.table-plugins .cell-checkbox { width: 20px; padding: 12px 0 10px 10px; }
.table.table-plugins h3 { font-weight: bold; font-size: 17px; line-height: 20px; margin-bottom: 5px; }
.table.table-profile-notes { border-top: 1px solid #eee; }
.table.table-profile-notes td { vertical-align: top; }
.table.table-profile-notes .cell-username { width: 20%; font-weight: bold; }
.table.table-profile-notes .cell-note { width: 50%; }
.table.table-profile-notes .cell-date { text-align: right; }
/* Table Profile Notes */
.table.table-profile-notes { border-top: 1px solid #eee; }
.table.table-profile-notes td { vertical-align: top; }
.table.table-profile-notes .cell-username { width: 20%; font-weight: bold; }
.table.table-profile-notes .cell-note { width: 50%; }
.table.table-profile-notes .cell-date { text-align: right; }
.table.table-profile-info { margin-bottom: 40px; }
.table.table-profile-info td { vertical-align: top; }
.table.table-profile-info .cell-label { width: 30%; color: #777; }
/* Table Profile Info */
.table.table-profile-info { margin-bottom: 40px; }
.table.table-profile-info td { vertical-align: top; }
.table.table-profile-info .cell-label { width: 30%; color: #777; }
.table.table-users .cell-name { font-weight: bold; }
.table.table-users .cell-name img { vertical-align: middle; margin-right: 5px; }
/* Table Users */
.table.table-users th { font-size: 11px; }
.table.table-users .cell-name { font-weight: bold; }
.table.table-users .cell-name img { float: left; }
.table.table-users .cell-name .username { margin-left: 32px; width: 120px; position: relative; top: 1px; }
.table.table-users tbody .cell-date { font-size: 11px; }
.table.table-users .cell-rating,
.table.table-users .cell-skill { text-align: center; width: 50px; }
/* Table Talk */
.table.table-talk .cell-checkbox { width: 20px; padding: 12px 0 10px 10px; }
.table.table-talk thead .cell-checkbox { padding: 10px 0 10px 10px; }
.table.table-talk .cell-favourite { width: 20px; padding: 10px 0; text-align: center; }

View file

@ -53,8 +53,8 @@
.topic .poll .poll-result li dl dt { float: left; width: 50px; text-align: right; padding-right: 15px; }
.topic .poll .poll-result li dl dt span { color: #aaa; }
.topic .poll .poll-result li dl dd { float: left; width: 400px; }
.topic .poll .poll-result li dl dd div { height: 5px; margin-top: 5px; background: #ccc; overflow: hidden; }
.topic .poll .poll-result li.most dl dd div { background: #555; }
.topic .poll .poll-result li dl dd div { height: 10px; margin-top: 5px; background: #ccc; overflow: hidden; border-radius: 2px; }
.topic .poll .poll-result li.most dl dd div { background: #60CC4E; }
.topic .poll .poll-total { color: #aaa; margin-left: 10px; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 723 B

View file

@ -1,57 +1,64 @@
<ul class="nav nav-nested">
<li {if $sMenuItemSelect=='index'}class="active"{/if}>
<a href="{cfg name='path.root.web'}/">{$aLang.blog_menu_all}</a> {if $iCountTopicsNew>0}<a href="{router page='index'}new/" class="new">+{$iCountTopicsNew}</a>{/if}
{if $sMenuItemSelect=='index'}
<ul class="sub-menu">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{cfg name='path.root.web'}/">{$aLang.blog_menu_all_good}</a></li>
{if $iCountTopicsNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{router page='index'}new/">{$aLang.blog_menu_all_new} +{$iCountTopicsNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{router page='index'}discussed/">{$aLang.blog_menu_all_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{router page='index'}top/">{$aLang.blog_menu_all_top}</a></li>
{hook run='menu_blog_index_item'}
</ul>
{/if}
</li>
<li {if $sMenuItemSelect=='blog'}class="active"{/if}>
<a href="{router page='blog'}">{$aLang.blog_menu_collective}</a> {if $iCountTopicsCollectiveNew>0}<a href="{router page='blog'}new/" class="new">+{$iCountTopicsCollectiveNew}</a>{/if}
{if $sMenuItemSelect=='blog'}
<ul class="sub-menu">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{$sMenuSubBlogUrl}">{$aLang.blog_menu_collective_good}</a></li>
{if $iCountTopicsBlogNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{$sMenuSubBlogUrl}new/">{$aLang.blog_menu_collective_new} +{$iCountTopicsBlogNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{$sMenuSubBlogUrl}discussed/">{$aLang.blog_menu_collective_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{$sMenuSubBlogUrl}top/">{$aLang.blog_menu_collective_top}</a></li>
{hook run='menu_blog_blog_item'}
</ul>
{/if}
</li>
<li {if $sMenuItemSelect=='log'}class="active"{/if}>
<a href="{router page='personal_blog'}">{$aLang.blog_menu_personal}</a> {if $iCountTopicsPersonalNew>0}<a href="{router page='personal_blog'}new/" class="new">+{$iCountTopicsPersonalNew}</a>{/if}
{if $sMenuItemSelect=='log'}
<ul class="sub-menu">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{router page='personal_blog'}">{$aLang.blog_menu_personal_good}</a></li>
{if $iCountTopicsPersonalNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{router page='personal_blog'}new/">{$aLang.blog_menu_personal_new} +{$iCountTopicsPersonalNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{router page='personal_blog'}discussed/">{$aLang.blog_menu_personal_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{router page='personal_blog'}top/">{$aLang.blog_menu_personal_top}</a></li>
{hook run='menu_blog_log_item'}
</ul>
{/if}
</li>
{if $oUserCurrent}
<li {if $sMenuItemSelect=='feed'}class="active"{/if}>
<a href="{router page='feed'}">{$aLang.userfeed_title}</a>
<div class="nav-filter-wrapper">
<ul class="nav nav-filter">
<li {if $sMenuItemSelect=='index'}class="active"{/if}>
<a href="{cfg name='path.root.web'}/">{$aLang.blog_menu_all}</a> {if $iCountTopicsNew>0}<a href="{router page='index'}new/" class="new">+{$iCountTopicsNew}</a>{/if}
</li>
<li {if $sMenuItemSelect=='blog'}class="active"{/if}>
<a href="{router page='blog'}">{$aLang.blog_menu_collective}</a> {if $iCountTopicsCollectiveNew>0}<a href="{router page='blog'}new/" class="new">+{$iCountTopicsCollectiveNew}</a>{/if}
</li>
<li {if $sMenuItemSelect=='log'}class="active"{/if}>
<a href="{router page='personal_blog'}">{$aLang.blog_menu_personal}</a> {if $iCountTopicsPersonalNew>0}<a href="{router page='personal_blog'}new/" class="new">+{$iCountTopicsPersonalNew}</a>{/if}
</li>
{if $oUserCurrent}
<li {if $sMenuItemSelect=='feed'}class="active"{/if}>
<a href="{router page='feed'}">{$aLang.userfeed_title}</a>
</li>
{/if}
{hook run='menu_blog'}
</ul>
{if $sMenuItemSelect=='index'}
<ul class="nav nav-filter nav-filter-sub">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{cfg name='path.root.web'}/">{$aLang.blog_menu_all_good}</a></li>
{if $iCountTopicsNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{router page='index'}new/">{$aLang.blog_menu_all_new} +{$iCountTopicsNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{router page='index'}discussed/">{$aLang.blog_menu_all_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{router page='index'}top/">{$aLang.blog_menu_all_top}</a></li>
{hook run='menu_blog_index_item'}
</ul>
{/if}
{hook run='menu_blog'}
</ul>
{if $sMenuItemSelect=='blog'}
<ul class="nav nav-filter nav-filter-sub">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{$sMenuSubBlogUrl}">{$aLang.blog_menu_collective_good}</a></li>
{if $iCountTopicsBlogNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{$sMenuSubBlogUrl}new/">{$aLang.blog_menu_collective_new} +{$iCountTopicsBlogNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{$sMenuSubBlogUrl}discussed/">{$aLang.blog_menu_collective_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{$sMenuSubBlogUrl}top/">{$aLang.blog_menu_collective_top}</a></li>
{hook run='menu_blog_blog_item'}
</ul>
{/if}
{if $sPeriodSelectCurrent}
<ul class="nav nav-pills">
<li {if $sPeriodSelectCurrent=='1'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=1">{$aLang.blog_menu_top_period_24h}</a></li>
<li {if $sPeriodSelectCurrent=='7'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=7">{$aLang.blog_menu_top_period_7d}</a></li>
<li {if $sPeriodSelectCurrent=='30'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=30">{$aLang.blog_menu_top_period_30d}</a></li>
<li {if $sPeriodSelectCurrent=='all'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=all">{$aLang.blog_menu_top_period_all}</a></li>
</ul>
{/if}
{if $sMenuItemSelect=='log'}
<ul class="nav nav-filter nav-filter-sub">
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{router page='personal_blog'}">{$aLang.blog_menu_personal_good}</a></li>
{if $iCountTopicsPersonalNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{router page='personal_blog'}new/">{$aLang.blog_menu_personal_new} +{$iCountTopicsPersonalNew}</a></li>{/if}
<li {if $sMenuSubItemSelect=='discussed'}class="active"{/if}><a href="{router page='personal_blog'}discussed/">{$aLang.blog_menu_personal_discussed}</a></li>
<li {if $sMenuSubItemSelect=='top'}class="active"{/if}><a href="{router page='personal_blog'}top/">{$aLang.blog_menu_personal_top}</a></li>
{hook run='menu_blog_log_item'}
</ul>
{/if}
{if $sPeriodSelectCurrent}
<ul class="nav nav-filter nav-filter-sub">
<li {if $sPeriodSelectCurrent=='1'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=1">{$aLang.blog_menu_top_period_24h}</a></li>
<li {if $sPeriodSelectCurrent=='7'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=7">{$aLang.blog_menu_top_period_7d}</a></li>
<li {if $sPeriodSelectCurrent=='30'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=30">{$aLang.blog_menu_top_period_30d}</a></li>
<li {if $sPeriodSelectCurrent=='all'}class="active"{/if}><a href="{$sPeriodSelectRoot}?period=all">{$aLang.blog_menu_top_period_all}</a></li>
</ul>
{/if}
</div>

View file

@ -1,28 +1,34 @@
<script type="text/javascript">
jQuery(function($){
var menu = $('#create-dropdown-menu');
var trigger = $('#dropdown-create-trigger');
var menu = $('#dropdown-create-menu');
var pos = trigger.position();
var pos = $('#create-dropdown-link').position();
// Dropdown
menu.css({ 'left': pos.left - 5 });
$('.create-dropdown-link').click(function(){
trigger.click(function(){
menu.slideToggle();
return false;
});
// Hide menu
$(document).click(function(){
menu.slideUp();
});
$('body').on("click", "#create-dropdown, #create-dropdown-link", function(e) {
$('body').on("click", "#dropdown-create-trigger, #dropdown-create-menu", function(e) {
e.stopPropagation();
});
});
</script>
<div class="create-dropdown" id="create-dropdown">
<div class="dropdown-create">
{strip}
<h2 class="page-header">Создать <a href="#" class="create-dropdown-link link-dashed" id="create-dropdown-link">
<h2 class="page-header">Создать <a href="#" class="dropdown-create-trigger link-dashed" id="dropdown-create-trigger">
{if $sMenuItemSelect=='topic'}
{$aLang.topic_menu_add}
{elseif $sMenuItemSelect=='blog'}
@ -32,7 +38,8 @@
{/if}
</a></h2>
{/strip}
<ul class="create-dropdown-menu" id="create-dropdown-menu" style="display: none">
<ul class="dropdown-menu" id="dropdown-create-menu" style="display: none">
<li {if $sMenuItemSelect=='topic'}class="active"{/if}><a href="{router page='topic'}add/">{$aLang.topic_menu_add}</a></li>
<li {if $sMenuItemSelect=='blog'}class="active"{/if}><a href="{router page='blog'}add/">{$aLang.blog_menu_create}</a></li>
{hook run='menu_create_item' sMenuItemSelect=$sMenuItemSelect}
@ -53,4 +60,5 @@
</ul>
{/if}
{hook run='menu_create' sMenuItemSelect=$sMenuItemSelect sMenuSubItemSelect=$sMenuSubItemSelect}
{hook run='menu_create' sMenuItemSelect=$sMenuItemSelect sMenuSubItemSelect=$sMenuSubItemSelect}

View file

@ -1,11 +1,11 @@
{if $aPaging and $aPaging.iCountPage>1}
<div class="pagination">
<ul>
{if $aPaging.iCurrentPage>1}<li><a href="{$aPaging.sBaseUrl}/{$aPaging.sGetParams}" title="{$aLang.paging_first}"><i class="icon-step-backward"></i></a></li>{/if}
{if $aPaging.iCurrentPage>1}<li><a href="{$aPaging.sBaseUrl}/{$aPaging.sGetParams}" title="{$aLang.paging_first}"><<</a></li>{/if}
{if $aPaging.iPrevPage}
<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iPrevPage}/{$aPaging.sGetParams}" class="js-paging-prev-page" title="{$aLang.paging_previos}"><i class="icon-chevron-left"></i></a></li>
<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iPrevPage}/{$aPaging.sGetParams}" class="js-paging-prev-page" title="{$aLang.paging_previos}"><</a></li>
{/if}
@ -21,11 +21,11 @@
{if $aPaging.iNextPage}
<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iNextPage}/{$aPaging.sGetParams}" class="js-paging-next-page" title="{$aLang.paging_next}"><i class="icon-chevron-right"></i></a></li>
<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iNextPage}/{$aPaging.sGetParams}" class="js-paging-next-page" title="{$aLang.paging_next}">></a></li>
{/if}
{if $aPaging.iCurrentPage<$aPaging.iCountPage}<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iCountPage}/{$aPaging.sGetParams}" title="{$aLang.paging_last}"><i class="icon-step-forward"></i></a></li>{/if}
{if $aPaging.iCurrentPage<$aPaging.iCountPage}<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iCountPage}/{$aPaging.sGetParams}" title="{$aLang.paging_last}">>></a></li>{/if}
</ul>
</div>
{/if}

View file

@ -13,8 +13,8 @@
<thead>
<tr>
<th class="cell-name">{$aLang.user}</th>
<th>{$aLang.user_date_last}</th>
<th>{$aLang.user_date_registration}</th>
<th class="cell-date">{$aLang.user_date_last}</th>
<th class="cell-date">{$aLang.user_date_registration}</th>
<th class="cell-skill">{$aLang.user_skill}</th>
<th class="cell-rating">{$aLang.user_rating}</th>
</tr>
@ -28,10 +28,10 @@
<tr>
<td class="cell-name">
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a>
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a></p>
</td>
<td>{if $oSession}{date_format date=$oSession->getDateLast()}{/if}</td>
<td>{date_format date=$oUserList->getDateRegister()}</td>
<td class="cell-date">{if $oSession}{date_format date=$oSession->getDateLast() format="d.m.y, H:i"}{/if}</td>
<td class="cell-date">{date_format date=$oUserList->getDateRegister() format="d.m.y, H:i"}</td>
<td class="cell-skill">{$oUserList->getSkill()}</td>
<td class="cell-rating"><strong>{$oUserList->getRating()}</strong></td>
</tr>

View file

@ -80,25 +80,25 @@
<p><label for="popup-registration-login">{$aLang.registration_login}</label>
<input type="text" name="login" id="popup-registration-login" value="{$_aRequest.login}" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-login hidden"></i>
<i class="icon-ok-green validate-ok-field-login" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_login_notice}"></i>
<small class="validate-error-hide validate-error-field-login"></small></p>
<p><label for="popup-registration-mail">{$aLang.registration_mail}</label>
<input type="text" name="mail" id="popup-registration-mail" value="{$_aRequest.mail}" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-mail hidden"></i>
<i class="icon-ok-green validate-ok-field-mail" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_mail_notice}"></i>
<small class="validate-error-hide validate-error-field-mail"></small></p>
<p><label for="popup-registration-user-password">{$aLang.registration_password}</label>
<input type="password" name="password" id="popup-registration-user-password" value="" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-password hidden"></i>
<i class="icon-ok-green validate-ok-field-password" style="display: none"></i>
<i class="icon-question-sign js-tip-help" title="{$aLang.registration_password_notice}"></i>
<small class="validate-error-hide validate-error-field-password"></small></p>
<p><label for="popup-registration-user-password-confirm">{$aLang.registration_password_retry}</label>
<input type="password" value="" id="popup-registration-user-password-confirm" name="password_confirm" class="input-text input-width-300 js-ajax-validate" />
<i class="icon-ok-green validate-ok-field-password_confirm hidden"></i>
<i class="icon-ok-green validate-ok-field-password_confirm" style="display: none"></i>
<small class="validate-error-hide validate-error-field-password_confirm"></small></p>
{hookb run="popup_registration_captcha"}