Added vcard and photo classes

This commit is contained in:
Sarven Capadisli 2010-01-12 01:44:15 +00:00 committed by Zach Copley
parent 2b78c061fc
commit 69bb4efe00

View File

@ -94,6 +94,7 @@ class ApplicationList extends Widget
$this->out->elementStart('li', array('class' => 'application', $this->out->elementStart('li', array('class' => 'application',
'id' => 'oauthclient-' . $this->application->id)); 'id' => 'oauthclient-' . $this->application->id));
$this->out->elementStart('span', 'vcard author');
if (!$this->connections) { if (!$this->connections) {
$this->out->elementStart('a', $this->out->elementStart('a',
array('href' => common_local_url('showapplication', array('href' => common_local_url('showapplication',
@ -107,11 +108,13 @@ class ApplicationList extends Widget
} }
if (!empty($this->application->icon)) { if (!empty($this->application->icon)) {
$this->out->element('img', array('src' => $this->application->icon)); $this->out->element('img', array('src' => $this->application->icon,
'class' => 'photo'));
} }
$this->out->raw($this->application->name); $this->out->raw($this->application->name);
$this->out->elementEnd('a'); $this->out->elementEnd('a');
$this->out->elementEnd('span');
$this->out->raw(' by '); $this->out->raw(' by ');