Example #1
0
 /**
  * @param SeoEntity $seo
  */
 protected function handle(SeoEntity $seo)
 {
     $this->addProperty('title', substr($seo->getSeoTitle(), 0, 70));
     $this->addProperty('description', substr($seo->getSeoDescription(), 0, 200));
     if ($image = $seo->getSeoImage()) {
         $this->addProperty('image', asset($image->path));
     }
 }
Example #2
0
 /**
  * @param SeoEntity $seo
  */
 protected function handle(SeoEntity $seo)
 {
     //add the facebook app id to enable insights.
     $type = $seo->getSeoTypeFacebook();
     $this->addProperty('type', $type);
     $this->addProperty('title', $seo->getSeoTitle());
     $this->addProperty('description', $seo->getSeoDescription());
     if ($type == 'article') {
         if ($seo->publish_at) {
             $this->addProperty('article:published_time', $seo->publish_at->format(DATE_ATOM));
         }
         $this->addProperty('article:modified_time', $seo->updated_at->format(DATE_ATOM));
     }
     if ($image = $seo->getSeoImage()) {
         $this->addProperty('image', asset($image->path));
     }
 }
Example #3
0
 /**
  * @param SeoEntity $seo
  */
 protected function handle(SeoEntity $seo)
 {
     $type = $seo->getSeoTypeGoogle();
     $this->addProperty('type', $type);
     $this->addProperty('title', $seo->getSeoTitle());
     $this->addProperty('description', $seo->getSeoDescription());
     if ($type == 'article') {
         if ($seo->publish_at) {
             $this->addProperty('datePublished', $seo->publish_at->format(DATE_ATOM));
         }
         $this->addProperty('dateModified', $seo->updated_at->format(DATE_ATOM));
         $this->addProperty('publisher', 'digiredo.be');
         if ($seo->getSeoAuthor()) {
             $this->addProperty('author', $seo->getSeoAuthor());
         }
     }
     if ($image = $seo->getSeoImage()) {
         $this->addProperty('image', asset($image->path));
     }
 }
Example #4
0
 /**
  * @param SeoEntity $seo
  */
 protected function handle(SeoEntity $seo)
 {
     $this->addProperty('title', $seo->getSeoTitle());
     $this->addProperty('description', $seo->getSeoDescription());
     $this->addProperty('keywords', $seo->getSeoKeywords());
 }