diff --git a/include/conversation.php b/include/conversation.php index 6069afb03..10b34ebe6 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -142,8 +142,8 @@ function conversation(&$a, $items, $mode, $update) { // array with html for each thread (parent+comments) - $treads = array(); - $treadsid = -1; + $threads = array(); + $threadsid = -1; if(count($items)) { @@ -155,7 +155,7 @@ function conversation(&$a, $items, $mode, $update) { $tpl = get_markup_template('search_item.tpl'); foreach($items as $item) { - $treadsid++; + $threadsid++; $comment = ''; $owner_url = ''; @@ -254,7 +254,7 @@ function conversation(&$a, $items, $mode, $update) { $arr = array('item' => $item, 'output' => $tmp_item); call_hooks('display_item', $arr); - $treads[$treadsid] .= $arr['output']; + $threads[$threadsid] .= $arr['output']; } @@ -336,8 +336,8 @@ function conversation(&$a, $items, $mode, $update) { $comments_seen = 0; $comments_collapsed = false; - $treadsid++; - $treads[$treadsid] = ""; + $threadsid++; + $threads[$threadsid] = ""; } else { // prevent private email from leaking into public conversation @@ -351,7 +351,7 @@ function conversation(&$a, $items, $mode, $update) { if(($comments[$item['parent']] > 2) && ($comments_seen <= ($comments[$item['parent']] - 2)) && ($item['gravity'] == 6)) { if(! $comments_collapsed) { - $treads[$treadsid] .= '' . ''; + $threads[$threadsid] .= ''; } $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ; @@ -455,7 +455,7 @@ function conversation(&$a, $items, $mode, $update) { ); $star = false; - $starred = "unstarred"; + $isstarred = "unstarred"; if ($profile_owner == local_user() && $toplevelpost) { $isstarred = (($item['starred']) ? "starred" : "unstarred"); @@ -564,7 +564,7 @@ function conversation(&$a, $items, $mode, $update) { $arr = array('item' => $item, 'output' => $tmp_item); call_hooks('display_item', $arr); - $treads[$treadsid] .= $arr['output']; + $threads[$threadsid] .= $arr['output']; } } } @@ -573,11 +573,11 @@ function conversation(&$a, $items, $mode, $update) { // if author collapsing is in force but didn't get closed, close it off now. /*if($blowhard_count >= 3) - $treads[$treadsid] .= '';*/ + $threads[$threadsid] .= '';*/ $page_template = get_markup_template("conversation.tpl"); $o .= replace_macros($page_template, array( - '$treads' => $treads, + '$threads' => $threads, '$dropping' => ($dropping?t('Delete Selected Items'):False), )); diff --git a/js/main.js b/js/main.js index e0694e47f..430f216d1 100644 --- a/js/main.js +++ b/js/main.js @@ -164,6 +164,15 @@ }); function NavUpdate() { + if(! stopped) { + $.get("ping",function(data) { + $(data).find('result').each(function() { + // send nav-update event + $('nav').trigger('nav-update', this); + }); + }) ; + } + if($('#live-network').length) { src = 'network'; liveUpdate(); } if($('#live-profile').length) { src = 'profile'; liveUpdate(); } @@ -182,14 +191,6 @@ } } - if(! stopped) { - $.get("ping",function(data) { - $(data).find('result').each(function() { - // send nav-update event - $('nav').trigger('nav-update', this); - }); - }) ; - } timer = setTimeout(NavUpdate,30000); } diff --git a/view/conversation.tpl b/view/conversation.tpl index e509ddb22..446814959 100644 --- a/view/conversation.tpl +++ b/view/conversation.tpl @@ -1,8 +1,9 @@ -{{ for $treads as $tread }} +{{ for $threads as $thread }}
- $tread + $thread
{{ endfor }} + {{ if $dropping }} - +
+ $comment +
diff --git a/view/wallwall_item.tpl b/view/wallwall_item.tpl index 502bdda32..2429bc20f 100644 --- a/view/wallwall_item.tpl +++ b/view/wallwall_item.tpl @@ -1,58 +1,3 @@ -{#
-
-
-
- - $owner_name -
-
$wall
-
- - $name - menu -
-
    - $item_photo_menu -
-
- -
-
-
- $lock -
$location
-
-
-
- $name $to $owner_name $vwall
-
$ago
-
-
-
$title
-
-
$body
-
-
- $vote - $plink - $edpost - $star - $drop -
-
-
-
$like
-
$dislike
-
-
- $comment -
- -
-
#} - {{ if $indent }}{{ else }}
$star.starred @@ -63,12 +8,12 @@