Skip to content
Permalink
Browse files

removed google plus support

  • Loading branch information...
oscarotero committed Jun 23, 2019
1 parent 3e08d55 commit 09550e98da0db56baaf91c5b7d43f4d65c509311
Showing with 0 additions and 22 deletions.
  1. +0 −22 src/Adapters/Google.php
@@ -21,7 +21,6 @@ public static function check(Response $response)
'www.google.*/maps*',
'calendar.google.com/calendar/*',
'drive.google.com/file/*/view',
'plus.google.com/*/posts/*',
]);
}
@@ -47,11 +46,6 @@ public function getCode()
$url = $this->getResponse()->getUrl();
if ($url->getHost() === 'plus.google.com') {
return '<script src="https://apis.google.com/js/plusone.js" type="text/javascript"></script>'
.'<div class="g-post" data-href="'.$url.'"></div>';
}
if ($url->getHost() === 'calendar.google.com') {
return Utils::iframe($url);
}
@@ -70,22 +64,6 @@ public function getCode()
*/
public function getImagesUrls()
{
if ($this->getResponse()->getUrl()->getHost() === 'plus.google.com') {
return parent::getImagesUrls();
}
return [];
}
/**
* {@inheritdoc}
*/
public function getProviderName()
{
if ($this->getResponse()->getUrl()->getHost() === 'plus.google.com') {
return 'Google Plus';
}
return parent::getProviderName();
}
}

0 comments on commit 09550e9

Please sign in to comment.
You can’t perform that action at this time.