]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'friendica/master' into mobile
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 13 Feb 2012 08:46:42 +0000 (09:46 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 13 Feb 2012 08:46:42 +0000 (09:46 +0100)
include/conversation.php
mod/display.php
view/jot-header.tpl
view/search_item.tpl
view/theme/quattro/quattro.less
view/theme/quattro/style.css

index 35abb29ca58e216a25fadf846f19997ed284ec4f..b44d4acd6e94acbed8a105c8939b5b00cd8c3899 100755 (executable)
@@ -489,7 +489,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                }
 
                                $likebuttons = '';
-                               $shareable = ((($profile_owner == local_user()) && ($mode != 'display') && (! $item['private'])) ? true : false);
+                               $shareable = ((($profile_owner == local_user()) &&  (! $item['private'])) ? true : false); //($mode != 'display') &&
 
                                if($page_writeable) {
                                        if($toplevelpost) {
@@ -821,7 +821,7 @@ function format_like($cnt,$arr,$type,$id) {
 }}
 
 
-function status_editor($a,$x, $notes_cid = 0) {
+function status_editor($a,$x, $notes_cid = 0, $popup=false) {
 
        $o = '';
                
@@ -885,7 +885,7 @@ function status_editor($a,$x, $notes_cid = 0) {
 
        $o .= replace_macros($tpl,array(
                '$return_path' => $a->cmd,
-               '$action' => 'item',
+               '$action' =>  $a->get_baseurl().'/item',
                '$share' => (($x['button']) ? $x['button'] : t('Share')),
                '$upload' => t('Upload photo'),
                '$shortupload' => t('upload photo'),
@@ -924,6 +924,12 @@ function status_editor($a,$x, $notes_cid = 0) {
                '$preview' => t('Preview'),
        ));
 
+
+       if ($popup==true){
+               $o = '<div id="jot-popup" style="display: none;">'.$o.'</div>';
+               
+       }
+
        return $o;
 }
 
index 02f080a790587c1ffc36deeb03abd762511854b4..d96be4333bebc2ac4af56d47da159c07bf29e967 100755 (executable)
@@ -11,6 +11,7 @@ function display_content(&$a) {
        require_once("include/bbcode.php");
        require_once('include/security.php');
        require_once('include/conversation.php');
+       require_once('include/acl_selectors.php');
 
 
        $o = '<div id="live-display"></div>' . "\r\n";
@@ -66,6 +67,23 @@ function display_content(&$a) {
                notice( t('Access to this profile has been restricted.') . EOL);
                return;
        }
+       
+       if ($is_owner)
+               $celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
+
+               $x = array(
+                       'is_owner' => true,
+                       'allow_location' => $a->user['allow_location'],
+                       'default_location' => $a->user['default_location'],
+                       'nickname' => $a->user['nickname'],
+                       'lockstate' => ((($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid']))))) ? 'lock' : 'unlock'),
+                       'acl' => populate_acl((($group || $cid) ? $def_acl : $a->user), $celeb),
+                       'bang' => (($group || $cid) ? '!' : ''),
+                       'visitor' => 'block',
+                       'profile_uid' => local_user()
+               );      
+               $o .= status_editor($a,$x,0,true);
+
 
        $sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups);
 
index 22b4349166f1129bb939b1a36e8df4e24006ba2d..251b9cdd03e9bfd03b4cc2c0f8a81508973d7324 100755 (executable)
@@ -209,6 +209,8 @@ function enableOnUser(){
        }
 
        function jotShare(id) {
+               if ($('#jot-popup').length != 0) $('#jot-popup').show();
+
                $('#like-rotator-' + id).show();
                $.get('share/' + id, function(data) {
                        if (!editor) $("#profile-jot-text").val("");
index c4f3ccac7ba3197c9e0ba82d45dba3466ae7666e..de8bd239617ee9826f8cadc060bc8de9a683657d 100755 (executable)
        <div class="wall-item-bottom">
                <div class="wall-item-links"></div>
                <div class="wall-item-like" id="wall-item-like-$id">$like</div>
-               <div class="wall-item-dislike" id="wall-item-dislike-$id">$dislike</div>        
+               <div class="wall-item-dislike" id="wall-item-dislike-$id">$dislike</div>
+               {{ if $conv }}
+               <div class="wall-item-conv" id="wall-item-conv-$id" >
+                       <a href='$conv.href' id='context-$id' title='$conv.title'>$conv.title</a>
+               {{ endif }}
+               </div>
        </div>
+       
+       
 </div>
+
index 0d58000e6b3ffbb61806040dc1ed1ecb043dc410..ac84e0eff7cbb2fc879eb0aff14e00a3521de7ec 100755 (executable)
@@ -547,6 +547,13 @@ section {
 }
 .wwto .contact-photo { width: 25px; height: 25px; }
 
+
+#pause {
+ position: fixed;
+ bottom: 5px;
+ right: 5px;
+}
+
 /* contacts menu */
 .contact-photo-wrapper { position: relative; }
 .contact-photo { 
index 49d57eb37981c113dd5cd0b213a3e9fa961f752e..0f5db6fe12df5a2c3839b7dbbccc2bdbe9e8299c 100755 (executable)
@@ -891,6 +891,11 @@ section {
   width: 25px;
   height: 25px;
 }
+#pause {
+  position: fixed;
+  bottom: 5px;
+  right: 5px;
+}
 /* contacts menu */
 .contact-photo-wrapper {
   position: relative;