name = acym_translation('ACYM_WEBSITE_LINKS');
$onePlugin->plugin = __CLASS__;
$onePlugin->help = 'plugin-online';
return $onePlugin;
}
function textPopup()
{
$others = [];
$others['readonline'] = ['default' => acym_translation('ACYM_VIEW_ONLINE', true), 'desc' => acym_translation('ACYM_VIEW_ONLINE_DESC')];
?>
$var)) continue;
$found = preg_match_all($match, $email->$var, $results[$var]) || $found;
if (empty($results[$var][0])) unset($results[$var]);
}
if (!$found) return;
$tags = [];
foreach ($results as $var => $allresults) {
foreach ($allresults[0] as $i => $oneTag) {
if (isset($tags[$oneTag])) {
continue;
}
$arguments = explode('|', strip_tags(str_replace('%7C', '|', $allresults[2][$i])));
$tag = new stdClass();
$tag->type = $allresults[1][$i];
for ($j = 0, $a = count($arguments) ; $j < $a ; $j++) {
$args = explode(':', $arguments[$j]);
$arg0 = trim($args[0]);
if (empty($arg0)) {
continue;
}
if (isset($args[1])) {
$tag->$arg0 = $args[1];
} else {
$tag->$arg0 = true;
}
}
$addkey = empty($email->key) ? '' : '&key='.$email->key;
$lang = empty($email->lang) ? '' : '&lang='.$email->lang;
$link = '';
if ($tag->type == 'readonline') {
$link = acym_frontendLink('archive&task=view&id='.$email->id.'&userid={subtag:id}-{subtag:key}'.$addkey.$lang.'&'.acym_noTemplate());
}
if (empty($allresults[3][$i])) {
$tags[$oneTag] = $link;
} else {
$tags[$oneTag] = ''.$allresults[3][$i].'';
}
}
}
$this->acympluginHelper->replaceTags($email, $tags);
}
}