diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 6534a5345..c3464b86b 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -82,7 +82,8 @@ class ThreadItem { $dropping = false; $star = false; $isstarred = "unstarred fa-star-o"; - $indent = ''; + $is_comment = false; + $is_item = false; $osparkle = ''; $total_children = $this->count_descendants(); $unseen_comments = (($item['real_uid']) ? 0 : $this->count_unseen_descendants()); @@ -232,7 +233,7 @@ class ThreadItem { } } else { - $indent = 'comment'; + $is_comment = true; } @@ -282,7 +283,7 @@ class ThreadItem { $dreport = t('Delivery Report'); if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0) - $indent .= ' shiny'; + $is_new = true; localize_item($item); @@ -361,7 +362,8 @@ class ThreadItem { 'attend_title' => t('Attendance Options'), 'vote_label' => t('Vote'), 'vote_title' => t('Voting Options'), - 'indent' => $indent, + 'is_comment' => $is_comment, + 'is_new' => $is_new, 'owner_url' => $this->get_owner_url(), 'owner_photo' => $this->get_owner_photo(), 'owner_name' => $this->get_owner_name(), @@ -407,7 +409,7 @@ class ThreadItem { 'showlike' => $showlike, 'showdislike' => $showdislike, 'comment' => $this->get_comment_box($indent), - 'previewing' => ($conv->is_preview() ? ' preview ' : ''), + 'previewing' => ($conv->is_preview() ? true : false ), 'wait' => t('Please wait'), 'submid' => str_replace(['+','='], ['',''], base64_encode(substr($item['mid'],0,32))), 'thread_level' => $thread_level diff --git a/view/css/conversation.css b/view/css/conversation.css index 7567d13eb..78dd29741 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -73,10 +73,6 @@ height: 30px; } -#profile-jot-wrapper { - margin-bottom: 30px; -} - #profile-jot-plugin-wrapper { margin-top: 10px; } @@ -91,9 +87,6 @@ /* conversation */ -.thread-wrapper.toplevel_item { - margin-bottom: 20px; -} /* conv_item */ diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index caebd04d5..fe41c2bdd 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1703,8 +1703,7 @@ main.fullscreen .section-content-wrapper-np { nav ul li .undefined, nav ul li .notify-seen, -nav ul li .notify-unseen - { +nav ul li .notify-unseen { max-height: 3rem; } @@ -1819,10 +1818,6 @@ blockquote { } */ -#tabs-collapse-1 { - padding: 0px; - margin-bottom: 25px; -} @media screen and (max-width: 767px) { @@ -2052,3 +2047,5 @@ dl.bb-dl > dd > li { #permcat-index { margin: 10px; } + +.shiny { background-color: red; } diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 1ed5e520f..4686e93db 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -18,7 +18,7 @@ $(document).ready(function() { if($(window).width() > 767) { $('#left_aside_wrapper').stick_in_parent({ - offset_top: $('nav').outerHeight(true), + offset_top: $('nav').outerHeight(true) + 10, parent: '#region_1', spacer: '#left_aside_spacer' }); @@ -105,7 +105,7 @@ function toggleAside() { $('main').addClass('region_1-on') $('
').appendTo('section'); $('#left_aside_wrapper').stick_in_parent({ - offset_top: $('nav').outerHeight(true) - 10, + offset_top: $('nav').outerHeight(true) + 10, parent: '#region_1', spacer: '#left_aside_spacer' }); diff --git a/view/tpl/categories_widget.tpl b/view/tpl/categories_widget.tpl index ea6d28dfc..72478aa3d 100755 --- a/view/tpl/categories_widget.tpl +++ b/view/tpl/categories_widget.tpl @@ -2,10 +2,10 @@
+ {{/if}} {{/if}}
{{$title}}
--- Recent Photos
+
+- Recent Photos
{{if $albums}}
{{foreach $albums as $al}}
{{if $al.text}}
- - {{$al.total}}{{$al.text}}
+ - {{$al.total}}{{$al.text}}
{{/if}}
{{/foreach}}
{{/if}}
diff --git a/view/tpl/posted_date_widget.tpl b/view/tpl/posted_date_widget.tpl
index 3ad58cc28..fb43c744b 100755
--- a/view/tpl/posted_date_widget.tpl
+++ b/view/tpl/posted_date_widget.tpl
@@ -18,21 +18,21 @@ function toggle_posted_date_button() {
{{$title}}
-+
-
{{foreach $dates as $y => $arr}} {{if $y == $cutoff_year}}
+
{{/if}} --
- {{$y}}
+
-
+ {{$y}}
-
+
-
+
{{if $profile.like_count}}
@@ -19,15 +19,15 @@
{{if $editmenu.multi}}
{{$editmenu.edit.3}}
-
{{elseif $editmenu}}
diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl
index 28510d0a1..05137479f 100755
--- a/view/tpl/profile_edit.tpl
+++ b/view/tpl/profile_edit.tpl
@@ -1,53 +1,34 @@
-
+
-
{{/if}}
@@ -43,12 +39,12 @@
-
+
{{if !$mimeType || $mimeType == 'text/markdown'}}
{{else}}
@@ -62,19 +58,19 @@
-
+
{{/if}}
-
+
{{$renderedContent}}
-
+
diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl
index 78657ec10..44fba15cc 100644
--- a/view/tpl/wiki_page_list.tpl
+++ b/view/tpl/wiki_page_list.tpl
@@ -1,19 +1,19 @@
{{if $not_refresh}}{{/if}}
{{foreach $arr as $d}} --
- {{$d.0}}
+
-
+ {{$d.0}}
{{/foreach}}
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index c176f678d..c56062459 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -1,6 +1,6 @@+
{{foreach $editmenu.menu.entries as $e}}
- -
-
{{$e.profile_name}}
-
+
{{$e.profile_name}}
{{/foreach}}
- - {{$editmenu.menu.chg_photo}}
- {{if $editmenu.menu.cr_new}}- {{$editmenu.menu.cr_new}}
{{/if}}
-
+ {{$editmenu.menu.chg_photo}}
+ {{if $editmenu.menu.cr_new}}
+ {{$editmenu.menu.cr_new}}
+ {{/if}}
+
--
- {{$profpic}}
-
+
+ {{$profpic}}
{{if $is_default}}
- -
- {{$coverpic}}
-
+ {{$coverpic}}
{{/if}}
{{if ! $is_default}}
- -
- {{$editvis}}
-
+ {{$editvis}}
{{/if}}
- -
- {{$addthing}}
-
-
- -
- {{$viewprof}}
-
-
+ {{$addthing}}
+
+ {{$viewprof}}
{{if $profile_clone_link}}
-
- -
- {{$cl_prof}}
-
+
+ {{$cl_prof}}
{{/if}}
{{if $exportable}}
-
- -
- {{$lbl_export}}
-
- -
- {{$lbl_import}}
-
+
+ {{$lbl_export}}
+ {{$lbl_import}}
{{/if}}
{{if ! $is_default}}
-
- -
- {{$del_prof}}
-
+
+ {{$del_prof}}
{{/if}}
-
+
{{$banner}}
diff --git a/view/tpl/usermenu.tpl b/view/tpl/usermenu.tpl index 547c5f308..c51728c34 100644 --- a/view/tpl/usermenu.tpl +++ b/view/tpl/usermenu.tpl @@ -5,10 +5,10 @@{{$menu.menu_desc}}{{if $edit}} {{/if}}
{{/if}} {{if $items}} -+
{{foreach $items as $mitem }} --
- {{$mitem.mitem_desc}}{{if $mitem.submenu}}{{/if}}
+
-
+ {{$mitem.mitem_desc}}{{if $mitem.submenu}}{{/if}}
{{if $mitem.submenu}}{{$mitem.submenu}}{{/if}}
{{/foreach }}
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 50ccdf4cd..c5778a644 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -6,16 +6,12 @@
-
+
{{if $renamePage}}
- -
- {{$renamePage}}
-
+ {{$renamePage}}
{{/if}}
- -
- Embed Image
-
-
+ Embed Image
+
-- {{$editOrSourceLabel}}
- - View
- - History
+ - {{$editOrSourceLabel}}
+ - View
+ - History
{{$header}}
-+
{{if $pages}} {{foreach $pages as $page}} --
+
-
{{if $page.resource_id && $candel}}
-
+
{{/if}}
- {{$page.title}}
+ {{$page.title}}
{{/foreach}}
{{/if}}
{{if $canadd}}
- - {{$addnew}}
+ - {{$addnew}}
{{/if}}
{{if $canadd}} diff --git a/view/tpl/wikilist_widget.tpl b/view/tpl/wikilist_widget.tpl index 1f92b5807..9853f9850 100644 --- a/view/tpl/wikilist_widget.tpl +++ b/view/tpl/wikilist_widget.tpl @@ -1,8 +1,8 @@{{$header}}
-+
{{foreach $wikis as $wiki}} -- {{$wiki.title}}
+ - {{$wiki.title}}
{{/foreach}}