CoreFiles by mySites.guru
url.php25 lines, 502 bytes, from Joomla_3.7.0-beta2-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta1
md5
9426f458013debb4815fe7d2cf4da95a
sha1
760af2a63a4b1ebb4c38616995dfe01fcdf72244
sha256
1ff5eb71622ac369c8d776918d2e6f344ea645b6ad5700b040757ab5e81be0e3
<?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" target="_blank"';
}

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

The same content is in 4 releases, Joomla 3.7.0-alpha2 to 3.7.0-beta3. See them all, or every version of this file.