CoreFiles by mySites.guru
default_profile.php40 lines, 1,180 bytes, from Joomla_3.4.3-Stable-Full_Package.zip
Raw History Compare with 3.4.2
md5
a0e95ced37bf14167563fa04da72a14d
sha1
9c13e7f51eba4924144db3c6baa648f28fb8fb6c
sha256
377443a7bc5a6f57209610dcf636fc0d5ff34f25f861f3fd70d87d005ca5278c
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2015 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 11 releases, Joomla 3.4.0-beta1 to 3.4.3. See them all, or every version of this file.