Example #1
0
 public function summary()
 {
     $data = [];
     foreach ($this->fields() as $key) {
         $data[] = ['name' => 'twitter:' . $key, 'content' => SettingsRecord::get($this->category, $key)];
     }
     return $data;
 }
Example #2
0
 public function summary()
 {
     return [['itemprop' => 'name', 'content' => SettingsRecord::get($this->category, 'name')], ['itemprop' => 'description', 'content' => SettingsRecord::get($this->category, 'description')]];
 }
Example #3
0
 public function summary()
 {
     return [['property' => 'place:location:latitude', 'content' => SettingsRecord::get($this->category, 'latitude')], ['property' => 'place:location:longitude', 'content' => SettingsRecord::get($this->category, 'longitude')], ['property' => 'business:contact_data:street_address', 'content' => SettingsRecord::get($this->category, 'streetAddress')], ['property' => 'business:contact_data:street_address', 'content' => SettingsRecord::get($this->category, 'locality')], ['property' => 'business:contact_data:country_name', 'content' => SettingsRecord::get($this->category, 'countryName')], ['property' => 'business:contact_data:email', 'content' => SettingsRecord::get($this->category, 'email')], ['property' => 'business:contact_data:phone_number', 'content' => SettingsRecord::get($this->category, 'phoneNumber')], ['property' => 'business:contact_data:website', 'content' => SettingsRecord::get($this->category, 'website')]];
 }