00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 class Mage_Core_Block_Text_Tag_Meta extends Mage_Core_Block_Text
00029 {
00030 protected function _toHtml()
00031 {
00032 if (!$this->getContentType()) {
00033 $this->setContentType('text/html; charset=utf-8');
00034 }
00035 $this->addText('<meta http-equiv="Content-Type" content="'.$this->getContentType().'"/>'."\n");
00036 $this->addText('<title>'.$this->getTitle().'</title>'."\n");
00037 $this->addText('<meta name="title" content="'.$this->getTitle().'"/>'."\n");
00038 $this->addText('<meta name="description" content="'.$this->getDescription().'"/>'."\n");
00039 $this->addText('<meta name="keywords" content="'.$this->getKeywords().'"/>'."\n");
00040 $this->addText('<meta name="robots" content="'.$this->getRobots().'"/>'."\n");
00041
00042 return parent::_toHtml();
00043 }
00044 }