setupLocale(); if ($INFO['subscribed']) { $title = $this->lang['js']['unsubscribe']; $target = $INFO['subscribed'][0]['target']; $class = 'plugin_qsub_subscribed'; } else { $title = $this->lang['js']['subscribe']; $target = ''; $class = 'plugin_qsub_notsubscribed'; } // we hide one of the SVGs based on the outer class $svg = inlineSVG(__DIR__ . '/images/bell-ring.svg').inlineSVG(__DIR__ . '/images/bell-outline.svg'); $link = $submgr->getLinkAttributes('plugin_qsub_'); $link['data-target'] = $target; $link['title'] = $title; $link['class'] .= ' ' . $class; $attr = buildAttributes($link); return "$svg"; } }