params['do']); $this->label = tpl_getLang('share_on'); $this->svg = tpl_incdir() . 'images/menu/share-variant.svg'; $this->id = '#'; } public function getLinkAttributes($classprefix = 'menuitem dropdown-toggle ') { global $ID; $attr = parent::getLinkAttributes($classprefix); $attr['data-toggle'] = 'dropdown'; $attr['data-remote'] = wl($ID); $attr['data-target'] = '#'; $attr['aria-haspopup'] = 'true'; $attr['aria-expanded'] = 'true'; return $attr; } public function getDropDownMenu() { $enabled_providers = explode(',', tpl_getConf('socialShareProviders')); $share_providers = array( 'twitter' => array('label' => 'Twitter'), 'linkedin' => array('label' => 'LinkedIn'), 'facebook' => array('label' => 'Facebook'), 'pinterest' => array('label' => 'Pinterest'), 'telegram' => array('label' => 'Telegram'), 'whatsapp' => array('label' => 'WhatsApp'), 'yammer' => array('label' => 'Yammer'), 'reddit' => array('label' => 'Reddit'), 'microsoft-teams' => array('label' => 'Teams'), ); $html = ''; $html .= ''; return $html; } }