]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
no sharing icon for private msgs
[friendica.git] / mod / network.php
index 32c7216d44e62638a2bda53f6916e22a17cb65a7..abdf59c4869fc6ae0d268c3fd7dfeedb6b733f6c 100644 (file)
@@ -92,6 +92,8 @@ function network_content(&$a, $update = 0) {
                        '$upload' => t('Upload photo'),
                        '$weblink' => t('Insert web link'),
                        '$youtube' => t('Insert YouTube video'),
+                       '$video' => t('Insert Vorbis [.ogg] video'),
+                       '$audio' => t('Insert Vorbis [.ogg] audio'),
                        '$setloc' => t('Set your location'),
                        '$noloc' => t('Clear browser location'),
                        '$wait' => t('Please wait'),
@@ -217,6 +219,7 @@ function network_content(&$a, $update = 0) {
 
        $cmnt_tpl = load_view_file('view/comment_item.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');
        $wallwall = load_view_file('view/wallwall_item.tpl');
 
@@ -360,10 +363,11 @@ function network_content(&$a, $update = 0) {
 
                        $likebuttons = '';
                        if($item['id'] == $item['parent']) {
-                               $likebuttons = replace_macros($like_tpl,array(
+                               $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
                                        '$id' => $item['id'],
                                        '$likethis' => t("I like this \x28toggle\x29"),
                                        '$nolike' => t("I don't like this \x28toggle\x29"),
+                                       '$share' => t('Share'),
                                        '$wait' => t('Please wait') 
                                ));
                        }