Пример #1
0
 function SmartsectionMetagen($title, $keywords, $description, $categoryPath = false)
 {
     $this->_myts = MyTextSanitizer::GetInstance();
     $this->setCategoryPath($categoryPath);
     $this->setTitle($title);
     $this->setDescription($description);
     if (!$keywords) {
         $keywords = $this->createMetaKeywords();
     }
     $this->setKeywords($keywords);
 }
Пример #2
0
 function SmartsectionMetaGen($title, $keywords = false, $description = false, $categoryPath = false)
 {
     $this->_myts = MyTextSanitizer::GetInstance();
     $this->setCategoryPath($categoryPath);
     $this->setTitle($title);
     $this->setDescription($description);
     if (!$keywords) {
         $keywords = $this->createMetaKeywords();
     }
     $myts = MyTextSanitizer::getInstance();
     if (method_exists($myts, 'formatForML')) {
         $keywords = $myts->formatForML($keywords);
         $description = $myts->formatForML($description);
     }
     $this->setKeywords($keywords);
 }