Add 'twitter:title' meta tag support.

This commit is contained in:
Jean Baptiste Favre 2012-09-18 16:20:10 +02:00 committed by Mikael Nordfeldth
parent ade8c6992e
commit f0d86cdb64
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ class AttachmentAction extends Action
null ); null );
$this->element('meta', array('name' => 'twitter:image', $this->element('meta', array('name' => 'twitter:image',
'content' => $this->attachment->url)); 'content' => $this->attachment->url));
$this->element('meta', array('name' => 'twitter:title',
'content' => $this->attachment->title));
$ns = new AttachmentNoticeSection($this); $ns = new AttachmentNoticeSection($this);
$notices = $ns->getNotices(); $notices = $ns->getNotices();