Merge pull request #84 from Mibew/button_fix

Fix button generation with disabled visitors tracking
This commit is contained in:
Dmitriy S. Simushev 2014-12-11 13:14:40 +03:00
commit db7aa3d12a

View File

@ -85,7 +85,9 @@ class ImageGenerator extends TextGenerator
$button = HTML5\html('fragment'); $button = HTML5\html('fragment');
$button->addChild(HTML5\html('comment', 'mibew button')); $button->addChild(HTML5\html('comment', 'mibew button'));
$button->addChild($this->getPopup($image)); $button->addChild($this->getPopup($image));
$button->addChild($this->getWidgetCode()); if (Settings::get('enabletracking')) {
$button->addChild($this->getWidgetCode());
}
$button->addChild(HTML5\html('comment', '/ mibew button')); $button->addChild(HTML5\html('comment', '/ mibew button'));
return $button; return $button;