}
class actionLink extends internalLink {
+ protected $_share = array('facebook', 'twitter', 'googleplus', 'linkedin', 'viadeo');
public function getURL() {
+ if (in_array($this->to, $this->_share)) {
+ return '#';
+ }
return '#/' . $this->to;
}
+ public function getClasses() {
+ if (in_array($this->to, $this->_share)) {
+ return array_merge(array('share'), parent::getClasses());
+ } else {
+ return parent::getClasses();
+ }
+ }
+
+ public function getAdditionnalContent() {
+ if (in_array($this->to, $this->_share)) {
+ return parent::getAdditionnalContent() . ' data-service="' . $this->to . '" ';
+ } else {
+ return parent::getClasses();
+ }
+ }
+
+ public function getDefaultTooltip() {
+ return '';
+ }
+
+
}
class basketLink extends contentLink {