Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Google+ #29

Merged
merged 1 commit into from Jan 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 2 additions & 11 deletions ps_sharebuttons.php
Expand Up @@ -32,7 +32,7 @@

class Ps_Sharebuttons extends Module implements WidgetInterface
{
protected static $networks = array('Facebook', 'Twitter', 'Google', 'Pinterest');
protected static $networks = array('Facebook', 'Twitter', 'Pinterest');

private $templateFile;

Expand All @@ -50,7 +50,7 @@ public function __construct()
parent::__construct();

$this->displayName = $this->trans('Social media share buttons', array(), 'Modules.Sharebuttons.Admin');
$this->description = $this->trans('Displays social media sharing buttons (Twitter, Facebook, Google+ and Pinterest) on every product page.', array(), 'Modules.Sharebuttons.Admin');
$this->description = $this->trans('Displays social media sharing buttons (Twitter, Facebook and Pinterest) on every product page.', array(), 'Modules.Sharebuttons.Admin');

$this->templateFile = 'module:ps_sharebuttons/views/templates/hook/ps_sharebuttons.tpl';
}
Expand All @@ -60,7 +60,6 @@ public function install()
return parent::install()
&& Configuration::updateValue('PS_SC_TWITTER', 1)
&& Configuration::updateValue('PS_SC_FACEBOOK', 1)
&& Configuration::updateValue('PS_SC_GOOGLE', 1)
&& Configuration::updateValue('PS_SC_PINTEREST', 1)
&& $this->registerHook('displayProductButtons')
;
Expand Down Expand Up @@ -190,14 +189,6 @@ public function getWidgetVariables($hookName, array $params)
);
}

if (Configuration::get('PS_SC_GOOGLE')) {
$social_share_links['googleplus'] = array(
'label' => $this->trans('Google+', array(), 'Modules.Sharebuttons.Shop'),
'class' => 'googleplus',
'url' => 'https://plus.google.com/share?url='.$sharing_url,
);
}

if (Configuration::get('PS_SC_PINTEREST')) {
$social_share_links['pinterest'] = array(
'label' => $this->trans('Pinterest', array(), 'Modules.Sharebuttons.Shop'),
Expand Down