]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved application image inside the anchor
authorSarven Capadisli <csarven@status.net>
Tue, 12 Jan 2010 01:41:38 +0000 (01:41 +0000)
committerZach Copley <zach@status.net>
Mon, 25 Jan 2010 00:36:03 +0000 (16:36 -0800)
lib/applicationlist.php

index b1dcc39a96412a61ce74c4410a5d55e003b27295..8961da43557343af8fe3cdd80c0ff4fcf271fee4 100644 (file)
@@ -94,10 +94,6 @@ class ApplicationList extends Widget
         $this->out->elementStart('li', array('class' => 'application',
                                              'id' => 'oauthclient-' . $this->application->id));
 
-        if (!empty($this->application->icon)) {
-            $this->out->element('img', array('src' => $this->application->icon));
-        }
-
         if (!$this->connections) {
             $this->out->elementStart('a',
                             array('href' => common_local_url('showapplication',
@@ -105,15 +101,18 @@ class ApplicationList extends Widget
                                                       'id' => $this->application->id)),
                                   'class' => 'url'));
 
-            $this->out->raw($this->application->name);
-            $this->out->elementEnd('a');
         } else {
             $this->out->elementStart('a', array('href' =>  $this->application->source_url,
                                                 'class' => 'url'));
-            $this->out->raw($this->application->name);
-            $this->out->elementEnd('a');
         }
 
+        if (!empty($this->application->icon)) {
+            $this->out->element('img', array('src' => $this->application->icon));
+        }
+
+        $this->out->raw($this->application->name);
+        $this->out->elementEnd('a');
+
         $this->out->raw(' by ');
 
         $this->out->elementStart('a', array('href' => $this->application->homepage,