CoreFiles by mySites.guru
default_profile.php40 lines, 1,180 bytes, from Joomla_3.2.6-Stable-Full_Package.zip
Raw History Compare with 3.2.5
md5
a1d435bbcc65bf49dcbb999cc1115ed3
sha1
34681b5f6bdbbeda6b720da3282058d6617386cd
sha256
b0c3d5e5fa0f7b6a4b65348af363a3b2796bfb27c924a16be84302964232c379
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<?php if (JPluginHelper::isEnabled('user', 'profile')) :
	$fields = $this->item->profile->getFieldset('profile'); ?>
	<div class="contact-profile" id="users-profile-custom">
		<dl class="dl-horizontal">
			<?php foreach ($fields as $profile) :
				if ($profile->value) :
					echo '<dt>' . $profile->label . '</dt>';
					$profile->text = htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8');

					switch ($profile->id) :
						case "profile_website":
							$v_http = substr($profile->value, 0, 4);

							if ($v_http == "http") :
								echo '<dd><a href="' . $profile->text . '">' . $profile->text . '</a></dd>';
							else :
								echo '<dd><a href="http://' . $profile->text . '">' . $profile->text . '</a></dd>';
							endif;
							break;

						default:
							echo '<dd>' . $profile->text . '</dd>';
							break;
					endswitch;
				endif;
			endforeach; ?>
		</dl>
	</div>
<?php endif; ?>

The same content is in 13 releases, Joomla 3.2.3 to 3.4.0-alpha. See them all, or every version of this file.