Code: Select all
if (!$is_local && $external_prefix)
{
$external_prefix = (NO_EXTERNAL_LINK_PREFIX && preg_match('/\.(?:' . NO_EXTERNAL_LINK_PREFIX . ')(?:[#?]|$)/', $href)) ? '' : $external_prefix;
$new_link = str_replace('href="', 'href="' . $external_prefix, $new_link);
}
Code: Select all
if (!$is_local && $external_prefix)
{
$external_prefix = (NO_EXTERNAL_LINK_PREFIX && preg_match('/\.(?:' . NO_EXTERNAL_LINK_PREFIX . ')(?:[#?]|$)/', $href)) ? '' : $external_prefix;
$full_href = $external_prefix . $full_href;
$new_link = $this->insert_attribute('href', htmlentities($full_href), $new_link, true);
}
Code: Select all
$full_href = $href;
$is_local = null;
Code: Select all
tags?
Code: Select all
if ($is_local && (strpos($href, 'asp-rel-articles-01') !== false || strpos($href, 'asp-rel-articles-02') !== false || strpos($href, 'asp-rel-articles-03') !== false || strpos($href, 'asp-rel-articles-04') !== false))
{
$new_target = EXTERNAL_LINK_TARGET;
}
if ($new_target)
{