Skip to content

Commit

Permalink
Add twitter cards
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Apr 8, 2020
1 parent 50a28e1 commit 0fcf77b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/CustomizeAdvanced/CustomizeAdvanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public function getEmptyDataObject() {
$obj->disableHTMLDescription = false;
$obj->disableTopMenusInsideIframe = true;
$obj->disableVideoSwap = false;

$parse = parse_url($global['webSiteRootURL']);
$domain = str_replace(".", "", $parse['host']);
$obj->twitter_site = "@{$domain}";

return $obj;
}
Expand Down

0 comments on commit 0fcf77b

Please sign in to comment.