public function setTwitterCard($title, $description, $imageURL, $cardType = 'summary', $siteHandle = null, $creatorHandle = null)
{
$data = array(array('name' => 'twitter:card', 'content' => $cardType), array('name' => 'twitter:title', 'content' => $title), array('name' => 'twitter:description', 'content' => $description), array('name' => 'twitter:image', 'content' => $imageURL));
// add site handle if provided
if ($siteHandle != null) {
$data[] = array('name' => 'twitter:site', 'content' => $siteHandle);
}
// add creator handle if provided
if ($creatorHandle != null) {
$data[] = array('name' => 'twitter:creator', 'content' => $creatorHandle);
}
// add Twitter Card to the header
foreach ($data as $d) {
$this->addMetaData($d);
}
}