]> git.mxchange.org Git - friendica.git/commitdiff
Vier: Now the language of a post is shown
authorMichael Vogel <icarus@dabo.de>
Thu, 27 Dec 2012 00:05:59 +0000 (01:05 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 27 Dec 2012 00:05:59 +0000 (01:05 +0100)
object/Item.php
view/theme/vier/profile_vcard.tpl
view/theme/vier/style.css
view/theme/vier/wall_thread.tpl

index 0c84146f9bb98e00ea0caf1d2ab5dde5c4de8ff8..5cea341f029f562d647d2a717b172626e392f662 100644 (file)
@@ -115,10 +115,10 @@ class Item extends BaseObject {
                $drop = array(
                        'dropping' => $dropping,
                        'pagedrop' => ((feature_enabled($conv->get_profile_owner(),'multi_delete')) ? $item['pagedrop'] : ''),
-                       'select' => t('Select'), 
+                       'select' => t('Select'),
                        'delete' => t('Delete'),
                );
-               
+
                $filer = (($conv->get_profile_owner() == local_user()) ? t("save to folder") : false);
 
                $diff_author    = ((link_compare($item['url'],$item['author-link'])) ? false : true);
@@ -133,7 +133,7 @@ class Item extends BaseObject {
                if($sp)
                        $sparkle = ' sparkle';
                else
-                       $profile_link = zrl($profile_link);                 
+                       $profile_link = zrl($profile_link);
 
                $normalised = normalise_link((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
                if(($normalised != 'mailbox') && (x($a->contacts,$normalised)))
@@ -212,13 +212,18 @@ class Item extends BaseObject {
 
                localize_item($item);
 
+               if ($item["postopts"]) {
+                       $langdata = explode(";", $item["postopts"]);
+                       $langstr = substr($langdata[0], 5)." (".round($langdata[1]*100, 1)."%)";
+               }
+
                $body = prepare_body($item,true);
 
-        list($categories, $folders) = get_cats_and_terms($item);
+               list($categories, $folders) = get_cats_and_terms($item);
 
                $tmp_item = array(
                        'template' => $this->get_template(),
-                       
+
                        'type' => implode("",array_slice(explode("/",$item['verb']),-1)),
                        'tags' => $tags,
             'hashtags' => $hashtags,
@@ -268,7 +273,8 @@ class Item extends BaseObject {
                        'comment' => $this->get_comment_box($indent),
                        'previewing' => ($conv->is_preview() ? ' preview ' : ''),
                        'wait' => t('Please wait'),
-                       'thread_level' => $thread_level
+                       'thread_level' => $thread_level,
+                       'postopts' => $langstr
                );
 
                $arr = array('item' => $item, 'output' => $tmp_item);
index b982a20693ba33f3005d5de8a494dab37960dd0c..451bf9dabddd05bdd306f6505680a904626a1133 100644 (file)
                                                                
                        </ul>
                        </div>
+               {{ else }}
+                       <div class="profile-edit-side-div"><a class="profile-edit-side-link icon edit" title="$editprofile" href="profiles/$profid" ></a></div>
                {{ endif }}
        </div>
-                               
-       
+
 
        <div id="profile-photo-wrapper"><img class="photo" src="$profile.photo?rev=$profile.picdate" alt="$profile.name" /></div>
        {{ if $pdesc }}<div class="title">$profile.pdesc</div>{{ endif }}
index 5532c06eeed5bd560706fab8420f9b39ef4656b4..9524c73caba948a591a9f348e3fe7b5ae2c2c162 100644 (file)
@@ -1067,8 +1067,9 @@ border-bottom: 1px solid #D2D2D2;
   text-align: left;
   width: 80px;
 }
-.wall-item-container .wall-item-location {
-  padding-right: 40px;
+.wall-item-container {
+  /* padding-right: 30px; */
+  padding-right: 0px;
 }
 .wall-item-container .wall-item-ago {
   word-wrap: break-word;
@@ -1077,7 +1078,7 @@ border-bottom: 1px solid #D2D2D2;
   color: #999;
 }
 .wall-item-location {
-  width: 180px;
+  width: 350px;
   float: left;
 }
 
@@ -1282,6 +1283,10 @@ border-bottom: 1px solid #D2D2D2;
   height: 100px;
 }
 
+#profile-jot-perms {
+  float: right;
+}
+
 #jot-preview-content {
   padding-top: 25px;
 }
@@ -1816,10 +1821,15 @@ div.pager, .birthday-notice, ul.tabs a, #jot-preview-link, .comment-edit-submit-
 }
 
 .profile-edit-side-div {
-  display: none;
-/*  float: right; */
+/*  display: none; */
+  float: right; 
 }
 
+/* aside div.clear {
+  clear: none;
+  float: left;
+} */
+
 #register-form label,
 #profile-edit-form label {
         width: 300px; float: left;
index d535704605467e5e4af6be76d4301e1787642f84..366493a686c277eacf2a9b903f5f70c0f18a692e 100644 (file)
                                 <a href="#" id="filer-$item.id" onclick="itemFiler($item.id); return false;" class="filer-item filer-icon" title="$item.filer"><i class="icon-folder-close icon-large"></i></a>
                        {{ endif }}
                        </div>
-                       <div class="wall-item-location">$item.location</div>                            
+                       <div class="wall-item-location">$item.location $item.postopts</div>                             
                        <div class="wall-item-actions-tools">
 
                                {{ if $item.drop.pagedrop }}
                </div>
        </div>
        <div class="wall-item-bottom">
-               <div class="wall-item-links"></div>
+               <div class="wall-item-links">
+               </div>
                <div class="wall-item-like" id="wall-item-like-$item.id">$item.like</div>
                <div class="wall-item-dislike" id="wall-item-dislike-$item.id">$item.dislike</div>      
        </div>
        
        {{ if $item.threaded }}{{ if $item.comment }}
        <div class="wall-item-bottom">
-               <div class="wall-item-links"></div>
+               <div class="wall-item-links">
+               </div>
                <div class="wall-item-comment-wrapper" id="item-comments-$item.id" style="display: none;">
                                        $item.comment
                </div>