diff --git a/engine/lib/internal/template/js/wall.js b/engine/lib/internal/template/js/wall.js index fe3562e9..d803f76b 100644 --- a/engine/lib/internal/template/js/wall.js +++ b/engine/lib/internal/template/js/wall.js @@ -21,6 +21,7 @@ ls.wall = (function ($) { if (result.bStateError) { ls.msg.error(null, result.sMsg); } else { + $('.js-wall-reply-parent-text').val(''); this.loadNew(); ls.hook.run('ls_wall_add_after',[sText, iPid, result]); } @@ -28,18 +29,17 @@ ls.wall = (function ($) { return false; }; - this.addReply = function(sText) { + this.addReply = function(sText, iPid) { var url = aRouter['profile']+this.options.login+'/wall/add/'; - var params = {sText: sText, iPid: this.iIdForReply}; + var params = {sText: sText, iPid: iPid}; '*addReplyBefore*'; '*/addReplyBefore*'; ls.ajax(url, params, function(result) { if (result.bStateError) { ls.msg.error(null, result.sMsg); } else { - $('#wall-reply-text').val(''); - $('#wall-reply-form').hide(); - this.loadReplyNew(this.iIdForReply); - ls.hook.run('ls_wall_addreply_after',[sText, this.iIdForReply, result]); + $('.js-wall-reply-text').val(''); + this.loadReplyNew(iPid); + ls.hook.run('ls_wall_addreply_after',[sText, iPid, result]); } }.bind(this)); return false; @@ -154,14 +154,12 @@ ls.wall = (function ($) { }; this.toggleReply = function(iId) { - var reply=$('#wall-reply-form'); - if (iId==this.iIdForReply) { - reply.toggle(); - } else { - reply.insertAfter($('#wall-button-reply-'+iId)); - reply.show(); - this.iIdForReply=iId; - } + $('#wall-item-' + iId + ' .wall-submit-reply').toggle(); + return false; + }; + + this.expandReply = function(iId) { + $('#wall-item-' + iId + ' .wall-submit-reply').addClass('active'); return false; }; @@ -172,4 +170,15 @@ ls.wall = (function ($) { }; return this; -}).call(ls.wall || {},jQuery); \ No newline at end of file +}).call(ls.wall || {},jQuery); + + +jQuery(document).ready(function($){ + $(document).click(function() { + $('.wall-submit-reply.active').removeClass('active'); + }); + + $('body').on("click", ".wall-submit-reply", function(e) { + e.stopPropagation(); + }); +}); \ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionProfile/wall.tpl b/templates/skin/developer-jquery/actions/ActionProfile/wall.tpl index e0c53f0e..62de9be9 100644 --- a/templates/skin/developer-jquery/actions/ActionProfile/wall.tpl +++ b/templates/skin/developer-jquery/actions/ActionProfile/wall.tpl @@ -19,7 +19,7 @@
-

+

@@ -35,11 +35,5 @@ {/if} - - - {include file='footer.tpl'} \ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionProfile/wall_items.tpl b/templates/skin/developer-jquery/actions/ActionProfile/wall_items.tpl index 04449983..c0e4650a 100644 --- a/templates/skin/developer-jquery/actions/ActionProfile/wall_items.tpl +++ b/templates/skin/developer-jquery/actions/ActionProfile/wall_items.tpl @@ -15,9 +15,11 @@ {$oWall->getText()} - + {if !$aReplyWall} + + {/if} @@ -33,7 +35,11 @@ {include file='actions/ActionProfile/wall_items_reply.tpl'} {/if} - - Ответить + + +
+ + +
{/foreach} \ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionTalk/blacklist.tpl b/templates/skin/developer-jquery/actions/ActionTalk/blacklist.tpl index b3eed02d..91b2549c 100644 --- a/templates/skin/developer-jquery/actions/ActionTalk/blacklist.tpl +++ b/templates/skin/developer-jquery/actions/ActionTalk/blacklist.tpl @@ -1,20 +1,24 @@
-

{$aLang.talk_blacklist_title}

- - -
-

-

-
+
+

{$aLang.talk_blacklist_title}

+
-
- {if $aUsersBlacklist} - - {/if} +
+
+

+

+
+ + +
+ {if $aUsersBlacklist} + + {/if} +
\ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionTalk/filter.tpl b/templates/skin/developer-jquery/actions/ActionTalk/filter.tpl index 42f3455c..553d4f51 100644 --- a/templates/skin/developer-jquery/actions/ActionTalk/filter.tpl +++ b/templates/skin/developer-jquery/actions/ActionTalk/filter.tpl @@ -1,20 +1,23 @@
-

{$aLang.talk_filter_title}

+
+

{$aLang.talk_filter_title}

+
- -
-

- - {$aLang.talk_filter_notice_sender}

+
+ +

+ + {$aLang.talk_filter_notice_sender}

-

- - {$aLang.talk_filter_notice_keyword}

+

+ + {$aLang.talk_filter_notice_keyword}

-

- — -

+

+ — +

- - + + +
\ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionTalk/friends.tpl b/templates/skin/developer-jquery/actions/ActionTalk/friends.tpl index 47b5d87d..89d585ed 100644 --- a/templates/skin/developer-jquery/actions/ActionTalk/friends.tpl +++ b/templates/skin/developer-jquery/actions/ActionTalk/friends.tpl @@ -1,21 +1,26 @@
-

{$aLang.block_friends}

+
+

{$aLang.block_friends}

+
- {if $aUsersFriend} - - - - {else} -
{$aLang.block_friends_empty}
- {/if} + +
+ {if $aUsersFriend} + + + + {else} +
{$aLang.block_friends_empty}
+ {/if} +
\ No newline at end of file diff --git a/templates/skin/developer-jquery/actions/ActionTalk/speakers.tpl b/templates/skin/developer-jquery/actions/ActionTalk/speakers.tpl index 72b5f09c..c934552c 100644 --- a/templates/skin/developer-jquery/actions/ActionTalk/speakers.tpl +++ b/templates/skin/developer-jquery/actions/ActionTalk/speakers.tpl @@ -1,29 +1,34 @@
-

{$aLang.talk_speaker_title}

+
+

{$aLang.talk_speaker_title}

+
- {if $oTalk->getUserId()==$oUserCurrent->getId() or $oUserCurrent->isAdministrator()} -
-

-

- -
- {/if} - -
- {if $oTalk->getTalkUsers()} - + +
+ {if $oTalk->getUserId()==$oUserCurrent->getId() or $oUserCurrent->isAdministrator()} +
+

+

+ +
{/if} + +
+ {if $oTalk->getTalkUsers()} +
    + {foreach from=$oTalk->getTalkUsers() item=oTalkUser name=users} + {if $oTalkUser->getUserId()!=$oUserCurrent->getId()} + {assign var="oUser" value=$oTalkUser->getUser()} + {if $oTalkUser->getUserActive()!=$TALK_USER_DELETE_BY_AUTHOR} +
  • + {$oUser->getLogin()} + {if $oTalkUser->getUserActive()==$TALK_USER_ACTIVE and ($oTalk->getUserId()==$oUserCurrent->getId() or $oUserCurrent->isAdministrator())}- {$aLang.blog_delete}{/if} +
  • + {/if} + {/if} + {/foreach} +
+ {/if} +
\ No newline at end of file diff --git a/templates/skin/developer-jquery/block.blogInfo.tpl b/templates/skin/developer-jquery/block.blogInfo.tpl index 8e8ea480..8d00a2aa 100644 --- a/templates/skin/developer-jquery/block.blogInfo.tpl +++ b/templates/skin/developer-jquery/block.blogInfo.tpl @@ -1,10 +1,20 @@ -
-

{$aLang.block_blog_info}

-

+
+
+

{$aLang.block_blog_info}

+
+ +
+

+
-
-

{$aLang.block_blog_info_note}

-

{$aLang.block_blog_info_note_text}

+
+
+

{$aLang.block_blog_info_note}

+
+ +
+

{$aLang.block_blog_info_note_text}

+
\ No newline at end of file diff --git a/templates/skin/developer-jquery/block.blogs.tpl b/templates/skin/developer-jquery/block.blogs.tpl index fc9aec66..a7ab59fb 100644 --- a/templates/skin/developer-jquery/block.blogs.tpl +++ b/templates/skin/developer-jquery/block.blogs.tpl @@ -1,22 +1,26 @@
-

{$aLang.block_blogs}

+
+

{$aLang.block_blogs}

+
- - - -
- {$sBlogsTop} -
+
+ + + +
+ {$sBlogsTop} +
- - + + +
diff --git a/templates/skin/developer-jquery/block.stream.tpl b/templates/skin/developer-jquery/block.stream.tpl index 641192ca..9b623ce7 100644 --- a/templates/skin/developer-jquery/block.stream.tpl +++ b/templates/skin/developer-jquery/block.stream.tpl @@ -1,17 +1,21 @@
-

{$aLang.block_stream}

+
+

{$aLang.block_stream}

+
- - - -
- {$sStreamComments} + +
+ {$sStreamComments} +
diff --git a/templates/skin/developer-jquery/block.streamConfig.tpl b/templates/skin/developer-jquery/block.streamConfig.tpl index d2aee961..a3ecd7df 100644 --- a/templates/skin/developer-jquery/block.streamConfig.tpl +++ b/templates/skin/developer-jquery/block.streamConfig.tpl @@ -14,80 +14,95 @@
-

{$aLang.stream_block_config_title}

- {$aLang.stream_settings_note_filter} +
+

{$aLang.stream_block_config_title}

+
-
    - {foreach from=$aStreamEventTypes key=sType item=aEventType} - {if !($oConfig->get('module.stream.disable_vote_events') && substr($sType, 0, 4) == 'vote')} -
  • - -
  • - {/if} - {/foreach} -
-
- - - -
-

{$aLang.stream_block_users_title}

- {$aLang.stream_settings_note_follow_user} - -

- {$aLang.stream_block_config_append}

- - {if count($aStreamSubscribedUsers)} -
    - {foreach from=$aStreamSubscribedUsers item=oUser} - {assign var=iUserId value=$oUser->getId()} - - {if !isset($aStreamFriends.$iUserId)} -
  • + {$aLang.stream_settings_note_filter} + +
      + {foreach from=$aStreamEventTypes key=sType item=aEventType} + {if !($oConfig->get('module.stream.disable_vote_events') && substr($sType, 0, 4) == 'vote')} +
    • +
    • {/if} {/foreach}
    - {else} -
      -

      {$aLang.stream_no_subscribed_users}

      - {/if} +
    -

    {$aLang.stream_block_users_friends}

    - {$aLang.stream_settings_note_follow_friend} +
    +

    {$aLang.stream_block_users_title}

    +
    - {if count($aStreamFriends)} -
      - {foreach from=$aStreamFriends item=oUser} - {assign var=iUserId value=$oUser->getId()} -
    • - {$oUser->getLogin()} -
    • - {/foreach} -
    - {else} - {$aLang.stream_no_subscribed_users} - {/if} +
    + {$aLang.stream_settings_note_follow_user} + +

    + {$aLang.stream_block_config_append}

    + + {if count($aStreamSubscribedUsers)} +
      + {foreach from=$aStreamSubscribedUsers item=oUser} + {assign var=iUserId value=$oUser->getId()} + + {if !isset($aStreamFriends.$iUserId)} +
    • + {$oUser->getLogin()} +
    • + {/if} + {/foreach} +
    + {else} +
      +

      {$aLang.stream_no_subscribed_users}

      + {/if} +
      +
      + + + +
      +
      +

      {$aLang.stream_block_users_friends}

      +
      + +
      + {$aLang.stream_settings_note_follow_friend} + + {if count($aStreamFriends)} +
        + {foreach from=$aStreamFriends item=oUser} + {assign var=iUserId value=$oUser->getId()} +
      • + {$oUser->getLogin()} +
      • + {/foreach} +
      + {else} + {$aLang.stream_no_subscribed_users} + {/if} +
      {/if} \ No newline at end of file diff --git a/templates/skin/developer-jquery/block.tags.tpl b/templates/skin/developer-jquery/block.tags.tpl index 064e533c..5c270386 100644 --- a/templates/skin/developer-jquery/block.tags.tpl +++ b/templates/skin/developer-jquery/block.tags.tpl @@ -1,13 +1,18 @@
      -

      {$aLang.block_tags}

      - - {if $aTags} - - {else} -
      {$aLang.block_empty_no_tags}
      - {/if} +
      +

      {$aLang.block_tags}

      +
      + + +
      + {if $aTags} + + {else} +
      {$aLang.block_empty_no_tags}
      + {/if} +
      \ No newline at end of file diff --git a/templates/skin/developer-jquery/block.tagsCity.tpl b/templates/skin/developer-jquery/block.tagsCity.tpl index e61b04c5..0f4e7bee 100644 --- a/templates/skin/developer-jquery/block.tagsCity.tpl +++ b/templates/skin/developer-jquery/block.tagsCity.tpl @@ -1,11 +1,16 @@ {if $aCityList && count($aCityList)>0} -
      -

      {$aLang.block_city_tags}

      +
      +
      +

      {$aLang.block_city_tags}

      +
      - + +
      + +
      {/if} \ No newline at end of file diff --git a/templates/skin/developer-jquery/block.tagsCountry.tpl b/templates/skin/developer-jquery/block.tagsCountry.tpl index 45ace609..166b8b44 100644 --- a/templates/skin/developer-jquery/block.tagsCountry.tpl +++ b/templates/skin/developer-jquery/block.tagsCountry.tpl @@ -1,11 +1,16 @@ {if $aCountryList && count($aCountryList)>0} -
      -

      {$aLang.block_country_tags}

      +
      +
      +

      {$aLang.block_country_tags}

      +
      - + +
      + +
      {/if} \ No newline at end of file diff --git a/templates/skin/developer-jquery/block.userfeedBlogs.tpl b/templates/skin/developer-jquery/block.userfeedBlogs.tpl index 8526a98f..4b777571 100644 --- a/templates/skin/developer-jquery/block.userfeedBlogs.tpl +++ b/templates/skin/developer-jquery/block.userfeedBlogs.tpl @@ -1,22 +1,27 @@ {if $oUserCurrent}
      -

      {$aLang.userfeed_block_blogs_title}

      - {$aLang.userfeed_settings_note_follow_blogs} +
      +

      {$aLang.userfeed_block_blogs_title}

      +
      + +
      + {$aLang.userfeed_settings_note_follow_blogs} - {if count($aUserfeedBlogs)} - - {else} - {$aLang.userfeed_no_blogs} - {/if} + {if count($aUserfeedBlogs)} + + {else} + {$aLang.userfeed_no_blogs} + {/if} +
      {/if} \ No newline at end of file diff --git a/templates/skin/developer-jquery/block.userfeedUsers.tpl b/templates/skin/developer-jquery/block.userfeedUsers.tpl index 4e5cdff8..6aefb3e0 100644 --- a/templates/skin/developer-jquery/block.userfeedUsers.tpl +++ b/templates/skin/developer-jquery/block.userfeedUsers.tpl @@ -14,54 +14,64 @@
      -

      {$aLang.userfeed_block_users_title}

      - {$aLang.userfeed_settings_note_follow_user} +
      +

      {$aLang.userfeed_block_users_title}

      +
      -
      -

      - {$aLang.userfeed_block_users_append}

      +
      + {$aLang.userfeed_settings_note_follow_user} - {if count($aUserfeedSubscribedUsers)} -
        - {foreach from=$aUserfeedSubscribedUsers item=oUser} - {assign var=iUserId value=$oUser->getId()} - - {if !isset($aUserfeedFriends.$iUserId)} -
      • - {$oUser->getLogin()} -
      • - {/if} - {/foreach} -
      - {else} -
        - {/if} +
        +

        + {$aLang.userfeed_block_users_append}

        + + {if count($aUserfeedSubscribedUsers)} +
          + {foreach from=$aUserfeedSubscribedUsers item=oUser} + {assign var=iUserId value=$oUser->getId()} + + {if !isset($aUserfeedFriends.$iUserId)} +
        • + {$oUser->getLogin()} +
        • + {/if} + {/foreach} +
        + {else} +
          + {/if} +
          -
          - {if count($aUserfeedFriends)} -

          {$aLang.userfeed_block_users_friends}

          - {$aLang.userfeed_settings_note_follow_friend} + {if count($aUserfeedFriends)} +
          +
          +

          {$aLang.userfeed_block_users_friends}

          +
          -
            - {foreach from=$aUserfeedFriends item=oUser} - {assign var=iUserId value=$oUser->getId()} - -
          • - {$oUser->getLogin()} -
          • - {/foreach} -
          - {/if} -
          +
          + {$aLang.userfeed_settings_note_follow_friend} + +
            + {foreach from=$aUserfeedFriends item=oUser} + {assign var=iUserId value=$oUser->getId()} + +
          • + {$oUser->getLogin()} +
          • + {/foreach} +
          +
          +
          + {/if} {/if} \ No newline at end of file diff --git a/templates/skin/developer-jquery/comment_tree.tpl b/templates/skin/developer-jquery/comment_tree.tpl index 9826bdbe..b4c0852f 100644 --- a/templates/skin/developer-jquery/comment_tree.tpl +++ b/templates/skin/developer-jquery/comment_tree.tpl @@ -6,12 +6,14 @@ }
          - {if $bAllowSubscribe and $oUserCurrent} - getStatus()}checked="checked"{/if} type="checkbox" id="comment_subscribe" onchange="ls.subscribe.toggle('{$sTargetType}_new_comment','{$iTargetId}','',this.checked);"> — - {/if} -

          {$iCountComment} {$iCountComment|declension:$aLang.comment_declension:'russian'}

          + + {if $bAllowSubscribe and $oUserCurrent} + getStatus()}checked="checked"{/if} type="checkbox" id="comment_subscribe" class="input-checkbox" onchange="ls.subscribe.toggle('{$sTargetType}_new_comment','{$iTargetId}','',this.checked);"> + + {/if} +
          diff --git a/templates/skin/developer-jquery/css/blocks.css b/templates/skin/developer-jquery/css/blocks.css index 7901684c..11023f32 100644 --- a/templates/skin/developer-jquery/css/blocks.css +++ b/templates/skin/developer-jquery/css/blocks.css @@ -2,17 +2,18 @@ БЛОКИ ------------------------------------------------------------------- */ -.block { padding: 20px; background: #fafafa; margin-bottom: 15px; border-radius: 3px; } +.block { background: #fafafa; margin-bottom: 30px; border-radius: 3px; } -.block h3 { font-size: 20px; line-height: 1em; font-weight: normal; margin-bottom: 20px; } -.block h3 a { text-decoration: none; } -.block footer { margin-top: 15px; font-size: 12px; } +.block .block-header { padding: 13px 20px; background: #EAF6F9; border-bottom: 1px solid #D2E8EF; 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-content { padding: 20px; } -.block .max-height-200 { overflow: auto; max-height: 200px; _height: expression( this.scrollHeight > 200 ? "200px" : "auto" ); position: relative; } +.block .max-height-200 { overflow: auto; max-height: 200px; _height: expression( this.scrollHeight > 200 ? "200px" : "auto" ); position: relative; } /* Block Type - Activity Settings */ -.block.block-type-activity h3 { margin-bottom: 7px; } .block.block-type-activity p { margin-bottom: 15px; } .block.block-type-activity ul li { margin-bottom: 5px; } .block.block-type-activity .note { display: block; margin-bottom: 15px; color: #aaa; } diff --git a/templates/skin/developer-jquery/css/comments.css b/templates/skin/developer-jquery/css/comments.css index f81a97b4..eea92051 100644 --- a/templates/skin/developer-jquery/css/comments.css +++ b/templates/skin/developer-jquery/css/comments.css @@ -4,7 +4,7 @@ /* Блок с комментариями */ .comments-header { margin-bottom: 20px; } -.comments-header h3 { font-size: 24px; } +.comments-header h3 { font-size: 24px; margin-bottom: 5px; } .comments { margin-bottom: 30px; } diff --git a/templates/skin/developer-jquery/css/common.css b/templates/skin/developer-jquery/css/common.css index a2dc0b76..12e2dc1a 100644 --- a/templates/skin/developer-jquery/css/common.css +++ b/templates/skin/developer-jquery/css/common.css @@ -168,6 +168,8 @@ .ta-r { text-align: right !important; } .va-m { vertical-align: middle; } +.hidden { display: none; } + .user, .ls-user { font-weight: bold; color: #333; } .user .icon-user { margin-right: 3px; } .user.inactive { color: #aaa; } diff --git a/templates/skin/developer-jquery/css/topic.css b/templates/skin/developer-jquery/css/topic.css index 7d89d079..6dbffed7 100644 --- a/templates/skin/developer-jquery/css/topic.css +++ b/templates/skin/developer-jquery/css/topic.css @@ -8,7 +8,7 @@ .topic .topic-header .topic-url { margin-bottom: 15px; } .topic .topic-header .topic-url a { background: #eee; border-radius: 3px; padding: 3px 10px 4px; text-decoration: none; } .topic .topic-header .topic-info { margin-bottom: 25px; color: #777; } -.topic .topic-header .topic-info time { margin-right: 15px; } +.topic .topic-header .topic-info a { margin-right: 15px; } /* Content */ .topic .topic-content { margin-bottom: 15px; } diff --git a/templates/skin/developer-jquery/css/wall.css b/templates/skin/developer-jquery/css/wall.css index 38e60d50..b89ca523 100644 --- a/templates/skin/developer-jquery/css/wall.css +++ b/templates/skin/developer-jquery/css/wall.css @@ -3,11 +3,16 @@ -------------------------------------------- */ .wall-submit { margin-bottom: 30px; } -.wall-submit.wall-submit-reply { margin: 10px 0 10px 25px; } +.wall-submit.wall-submit-reply { margin: 2px 0 2px 25px; padding: 7px; background: #fafafa; } +.wall-submit.wall-submit-reply textarea { height: 28px; margin: 0; } +.wall-submit.wall-submit-reply button { display: none; } +.wall-submit.wall-submit-reply.active textarea { height: 80px; margin-bottom: 5px; } +.wall-submit.wall-submit-reply.active button { display: inline-block; } .wall-submit p { margin-bottom: 5px; } .comments.wall, .wall .comment { margin-bottom: 2px; } +.wall .comment-content { margin-bottom: 0; } .comment.wall-comment-reply { min-height: 0; padding-left: 48px; } .comment.wall-comment-reply .comment-avatar { width: 30px; height: 30px; } diff --git a/templates/skin/developer-jquery/topic_part_header.tpl b/templates/skin/developer-jquery/topic_part_header.tpl index ac925141..9b1fe07f 100644 --- a/templates/skin/developer-jquery/topic_part_header.tpl +++ b/templates/skin/developer-jquery/topic_part_header.tpl @@ -30,10 +30,10 @@
          + {$oBlog->getTitle()|escape:'html'} + - - {$oBlog->getTitle()|escape:'html'}
          \ No newline at end of file