X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshowapplication.php;h=02a4dc15179cf35564be07e1378f15e848038507;hb=7ef8bd9275ebcc85d96260c0c2cfb2ad39547841;hp=f16cc3259aef1ba6b027354f8f73a23e22c86ebb;hpb=2e1c7c779d7d7a12529efdb42437fbc063475ba6;p=quix0rs-gnu-social.git diff --git a/actions/showapplication.php b/actions/showapplication.php index f16cc3259a..02a4dc1517 100644 --- a/actions/showapplication.php +++ b/actions/showapplication.php @@ -149,42 +149,24 @@ class ShowApplicationAction extends OwnerDesignAction $this->elementStart('div', 'entity_profile vcard'); $this->element('h2', null, _('Application profile')); - $this->elementStart('dl', 'entity_depiction'); - $this->element('dt', null, _('Icon')); - $this->elementStart('dd'); if (!empty($this->application->icon)) { $this->element('img', array('src' => $this->application->icon, - 'class' => 'photo logo')); + 'class' => 'photo logo entity_depiction')); } - $this->elementEnd('dd'); - $this->elementEnd('dl'); - $this->elementStart('dl', 'entity_fn'); - $this->element('dt', null, _('Name')); - $this->elementStart('dd'); $this->element('a', array('href' => $this->application->source_url, - 'class' => 'url fn'), + 'class' => 'url fn entity_fn'), $this->application->name); - $this->elementEnd('dd'); - $this->elementEnd('dl'); - $this->elementStart('dl', 'entity_org'); - $this->element('dt', null, _('Organization')); - $this->elementStart('dd'); $this->element('a', array('href' => $this->application->homepage, - 'class' => 'url'), + 'class' => 'url entity_org'), $this->application->organization); - $this->elementEnd('dd'); - $this->elementEnd('dl'); - $this->elementStart('dl', 'entity_note'); - $this->element('dt', null, _('Description')); - $this->element('dd', 'note', $this->application->description); - $this->elementEnd('dl'); + $this->element('div', + 'note entity_note', + $this->application->description); - $this->elementStart('dl', 'entity_statistics'); - $this->element('dt', null, _('Statistics')); - $this->elementStart('dd'); + $this->elementStart('div', 'entity_statistics'); $defaultAccess = ($this->application->access_type & Oauth_application::$writeAccess) ? 'read-write' : 'read-only'; $profile = Profile::staticGet($this->application->owner); @@ -199,8 +181,8 @@ class ShowApplicationAction extends OwnerDesignAction $defaultAccess, $userCnt )); - $this->elementEnd('dd'); - $this->elementEnd('dl'); + $this->elementEnd('div'); + $this->elementEnd('div'); $this->elementStart('div', 'entity_actions'); @@ -253,30 +235,21 @@ class ShowApplicationAction extends OwnerDesignAction $this->elementStart('div', 'entity_data'); $this->element('h2', null, _('Application info')); - $this->elementStart('dl', 'entity_consumer_key'); - $this->element('dt', null, _('Consumer key')); - $this->element('dd', null, $consumer->consumer_key); - $this->elementEnd('dl'); - - $this->elementStart('dl', 'entity_consumer_secret'); - $this->element('dt', null, _('Consumer secret')); - $this->element('dd', null, $consumer->consumer_secret); - $this->elementEnd('dl'); - - $this->elementStart('dl', 'entity_request_token_url'); - $this->element('dt', null, _('Request token URL')); - $this->element('dd', null, common_local_url('ApiOauthRequestToken')); - $this->elementEnd('dl'); - - $this->elementStart('dl', 'entity_access_token_url'); - $this->element('dt', null, _('Access token URL')); - $this->element('dd', null, common_local_url('ApiOauthAccessToken')); - $this->elementEnd('dl'); - - $this->elementStart('dl', 'entity_authorize_url'); - $this->element('dt', null, _('Authorize URL')); - $this->element('dd', null, common_local_url('ApiOauthAuthorize')); - $this->elementEnd('dl'); + $this->element('div', + 'entity_consumer_key', + $consumer->consumer_key); + + $this->element('div', + 'entity_consumer_secret', + $consumer->consumer_secret); + + $this->element('div', + 'entity_request_token_url', + common_local_url('ApiOauthRequestToken')); + + $this->element('div', 'entity_access_token_url', common_local_url('ApiOauthAccessToken')); + + $this->element('div', 'entity_authorize_url', common_local_url('ApiOauthAuthorize')); $this->element('p', 'note', _('Note: We support HMAC-SHA1 signatures. We do not support the plaintext signature method.'));