1
1
Fork 0

no sharing icon for private msgs

This commit is contained in:
Friendika 2011-03-16 22:04:00 -07:00
parent 9d9176f87e
commit 47f0abf27e
2 changed files with 4 additions and 2 deletions

View file

@ -219,6 +219,7 @@ function network_content(&$a, $update = 0) {
$cmnt_tpl = load_view_file('view/comment_item.tpl'); $cmnt_tpl = load_view_file('view/comment_item.tpl');
$like_tpl = load_view_file('view/like.tpl'); $like_tpl = load_view_file('view/like.tpl');
$noshare_tpl = load_view_file('view/like_noshare.tpl');
$tpl = load_view_file('view/wall_item.tpl'); $tpl = load_view_file('view/wall_item.tpl');
$wallwall = load_view_file('view/wallwall_item.tpl'); $wallwall = load_view_file('view/wallwall_item.tpl');
@ -362,7 +363,7 @@ function network_content(&$a, $update = 0) {
$likebuttons = ''; $likebuttons = '';
if($item['id'] == $item['parent']) { if($item['id'] == $item['parent']) {
$likebuttons = replace_macros($like_tpl,array( $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
'$id' => $item['id'], '$id' => $item['id'],
'$likethis' => t("I like this \x28toggle\x29"), '$likethis' => t("I like this \x28toggle\x29"),
'$nolike' => t("I don't like this \x28toggle\x29"), '$nolike' => t("I don't like this \x28toggle\x29"),

View file

@ -267,6 +267,7 @@ function profile_content(&$a, $update = 0) {
$cmnt_tpl = load_view_file('view/comment_item.tpl'); $cmnt_tpl = load_view_file('view/comment_item.tpl');
$like_tpl = load_view_file('view/like.tpl'); $like_tpl = load_view_file('view/like.tpl');
$noshare_tpl = load_view_file('view/like_noshare.tpl');
$tpl = load_view_file('view/wall_item.tpl'); $tpl = load_view_file('view/wall_item.tpl');
@ -309,7 +310,7 @@ function profile_content(&$a, $update = 0) {
if(can_write_wall($a,$a->profile['profile_uid'])) { if(can_write_wall($a,$a->profile['profile_uid'])) {
if($item['id'] == $item['parent']) { if($item['id'] == $item['parent']) {
$likebuttons = replace_macros($like_tpl,array( $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
'$id' => $item['id'], '$id' => $item['id'],
'$likethis' => t("I like this \x28toggle\x29"), '$likethis' => t("I like this \x28toggle\x29"),
'$nolike' => t("I don't like this \x28toggle\x29"), '$nolike' => t("I don't like this \x28toggle\x29"),