From 3e4781172f524b75a5fcd2d0434c6b72be7d87f2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 25 Sep 2016 11:08:12 -0400 Subject: [PATCH] Add response active support to vier theme - Add active class to wall_thread.tpl, search_item.tpl, photo_item.tpl - Add style Note: because of an !important in the Dark variant stylesheet, the active links won't show up --- view/theme/vier/style.css | 7 +++++- view/theme/vier/templates/photo_item.tpl | 22 ++++++++--------- view/theme/vier/templates/search_item.tpl | 28 ++++++++++----------- view/theme/vier/templates/wall_thread.tpl | 30 +++++++++++------------ 4 files changed, 46 insertions(+), 41 deletions(-) diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index d53c2f393f..67bab16a19 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -1583,6 +1583,11 @@ section.minimal { margin-right: 1em; cursor: pointer; } +.wall-item-container .wall-item-actions-social a.active, +.wall-item-container .wall-item-actions-isevent a.active { + color: #36C; +} + .wall-item-container .wall-item-actions-tools { float: right; width: 80px; @@ -1638,7 +1643,7 @@ section.minimal { max-width: calc(100% - 1px); } -.children .wall-item-comment-wrapper textarea, +.children .wall-item-comment-wrapper textarea, .wall-item-container.thread_level_3 .wall-item-comment-wrapper textarea, .wall-item-container.thread_level_4 .wall-item-comment-wrapper textarea, .wall-item-container.thread_level_5 .wall-item-comment-wrapper textarea, diff --git a/view/theme/vier/templates/photo_item.tpl b/view/theme/vier/templates/photo_item.tpl index 84783ae303..bc77eaa9cd 100644 --- a/view/theme/vier/templates/photo_item.tpl +++ b/view/theme/vier/templates/photo_item.tpl @@ -8,7 +8,7 @@
- {{$name}} + {{$name}} {{if $plink}}{{$ago}}{{else}} {{$ago}} {{/if}} {{if $lock}}{{$lock}} {{/if}} @@ -36,25 +36,25 @@
-
{{$location}} 
- +
{{$location}} 
+
{{if $star}} {{$star.do}} {{$star.undo}} {{$star.tagger}} {{/if}} - + {{if $vote}} - {{$vote.like.1}} - {{$vote.dislike.1}} + {{$vote.like.1}} + {{$vote.dislike.1}} {{/if}} - + {{if $vote.share}} {{$vote.share.1}} - {{/if}} + {{/if}}
- +
{{if $drop.pagedrop}} @@ -67,12 +67,12 @@ {{/if}}
- +
-
{{$dislike}}
+
{{$dislike}}
diff --git a/view/theme/vier/templates/search_item.tpl b/view/theme/vier/templates/search_item.tpl index 73e37e5613..27ab78af23 100644 --- a/view/theme/vier/templates/search_item.tpl +++ b/view/theme/vier/templates/search_item.tpl @@ -2,7 +2,7 @@
{{if $item.star}}{{$item.star.starred}}{{/if}} - {{if $item.lock}}{{$item.lock}}{{/if}} + {{if $item.lock}}{{$item.lock}}{{/if}}
@@ -10,7 +10,7 @@
- {{$item.name}} @@ -18,11 +18,11 @@ - +
- {{$item.name}} + {{$item.name}} {{if $item.plink}}{{$item.ago}}{{else}} {{$item.ago}} {{/if}} {{if $item.lock}}{{$item.lock}} {{/if}} @@ -50,25 +50,25 @@
-
{{$item.location}} 
- +
{{$item.location}} 
+
{{if $item.star}} {{$item.star.do}} {{$item.star.undo}} {{$item.star.tagger}} {{/if}} - + {{if $item.vote}} - {{$item.vote.like.1}} - {{$item.vote.dislike.1}} + {{$item.vote.like.1}} + {{$item.vote.dislike.1}} {{/if}} - + {{if $item.vote.share}} {{$item.vote.share.1}} - {{/if}} + {{/if}}
- +
{{if $item.drop.pagedrop}} @@ -81,12 +81,12 @@ {{/if}}
- +
-
{{$item.dislike}}
+
{{$item.dislike}}
diff --git a/view/theme/vier/templates/wall_thread.tpl b/view/theme/vier/templates/wall_thread.tpl index 1f6032f4a5..23adef3404 100644 --- a/view/theme/vier/templates/wall_thread.tpl +++ b/view/theme/vier/templates/wall_thread.tpl @@ -2,12 +2,12 @@ {{if $mode == display}} {{else}} {{if $item.comment_firstcollapsed}} - {{if $item.thread_level<3}} + {{if $item.thread_level<3}}
- {{$item.num_comments}} - {{$item.hide_text}}
{{if $item.owner_url}} - {{/if}} + {{/if}}
{{$item.name}} @@ -81,7 +81,7 @@ {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} {{/foreach}}
- +
- +
@@ -155,9 +155,9 @@
{{$response.output}}
{{/foreach}} {{/if}} - +
- + {{if $item.threaded}}{{if $item.comment}}