CoreFiles by mySites.guru
url.php25 lines, 522 bytes, from Joomla_3.7.0-beta4-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta3
md5
3c96b9d98f89944755ea169bebc1126b
sha1
22dc375b1eb246764f9392593da2992b402064cb
sha256
81b121522a8e2fa6136e288c64e117c6e662e9744322d6c331909b73f5072ee7
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.URL
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

$value = $field->value;

if ($value == '')
{
	return;
}

$attributes = '';

if (!JUri::isInternal($value))
{
	$attributes = 'rel="nofollow noopener noreferrer" target="_blank"';
}

echo '<a href="' . $value . '" ' . $attributes . '>' . $value . '</a>';

The same content is in 3 releases, Joomla 3.7.0-beta4 to 3.7.0-rc2. See them all, or every version of this file.