]> git.mxchange.org Git - friendica.git/commitdiff
Moved comment box on photos to be after the last comment, added text for the Preview...
authorMichael Johnston <michaelgeorgejohnston@gmail.com>
Sun, 14 Oct 2012 18:30:10 +0000 (14:30 -0400)
committerMichael Johnston <michaelgeorgejohnston@gmail.com>
Sun, 14 Oct 2012 18:41:31 +0000 (14:41 -0400)
mod/photos.php

index 7108e95698041eef9153fd0fc0f1eca339b470ac..63b093dc376fdb49d86103e361b58b98d05d8d63 100644 (file)
@@ -1447,6 +1447,7 @@ function photos_content(&$a) {
                                                        '$myphoto' => $contact['thumb'],
                                                        '$comment' => t('Comment'),
                                                        '$submit' => t('Submit'),
+                                                       '$preview' => t('Preview'),
                                                        '$sourceapp' => t($a->sourcename),
                                                        '$ww' => ''
                                                ));
@@ -1464,27 +1465,6 @@ function photos_content(&$a) {
 
                                        $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ;
                        
-                                       if($can_post || can_write_wall($a,$owner_uid)) {
-
-                                               if($item['last-child']) {
-                                                       $comments .= replace_macros($cmnt_tpl,array(
-                                                               '$return_path' => '',
-                                                               '$jsreload' => $return_url,
-                                                               '$type' => 'wall-comment',
-                                                               '$id' => $item['item_id'],
-                                                               '$parent' => $item['parent'],
-                                                               '$profile_uid' =>  $owner_uid,
-                                                               '$mylink' => $contact['url'],
-                                                               '$mytitle' => t('This is you'),
-                                                               '$myphoto' => $contact['thumb'],
-                                                               '$comment' => t('Comment'),
-                                                               '$submit' => t('Submit'),
-                                                               '$sourceapp' => t($a->sourcename),
-                                                               '$ww' => ''
-                                                       ));
-                                               }
-                                       }
-
 
                                        if(local_user() && ($item['contact-uid'] == local_user()) 
                                                && ($item['network'] == 'dfrn') && (! $item['self'] )) {
@@ -1522,6 +1502,28 @@ function photos_content(&$a) {
                                                '$drop' => $drop,
                                                '$comment' => $comment
                                        ));
+
+                                       if($can_post || can_write_wall($a,$owner_uid)) {
+
+                                               if($item['last-child']) {
+                                                       $comments .= replace_macros($cmnt_tpl,array(
+                                                               '$return_path' => '',
+                                                               '$jsreload' => $return_url,
+                                                               '$type' => 'wall-comment',
+                                                               '$id' => $item['item_id'],
+                                                               '$parent' => $item['parent'],
+                                                               '$profile_uid' =>  $owner_uid,
+                                                               '$mylink' => $contact['url'],
+                                                               '$mytitle' => t('This is you'),
+                                                               '$myphoto' => $contact['thumb'],
+                                                               '$comment' => t('Comment'),
+                                                               '$submit' => t('Submit'),
+                                                               '$preview' => t('Preview'),
+                                                               '$sourceapp' => t($a->sourcename),
+                                                               '$ww' => ''
+                                                       ));
+                                               }
+                                       }
                                }
                        }