<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="block p-2">
<div class="userprofilelock_message">
	<div class="userprofilelock_message_icon">
		<i></i>
	</div>
	<div class="userprofilelock_message_cont">
		<?php if ($this->viewer->getIdentity() == $this->subject->getIdentity()) { ?>
			<?php echo $this->translate("You have locked your profile"); ?>
			<p><a href="<?php echo $this->url(array("id" => $this->subject->getIdentity(), 'profilelock' => $this->subject->profilelock), 'userprofile_lock', true); ?>" class="smoothbox"><?php echo $this->translate("Unlock Profile"); ?></a></p>
		<?php } else { ?>
			<p class="userprofilelock_message_title"><?php echo $this->translate("%s's profile is locked", $this->subject->getTitle()); ?></p>
			<p><?php echo $this->translate("Only friends can see what this member shares on their profile."); ?></p>
		<?php } ?>
	</div>
</div>
</div>
<?php if (!$this->viewer->isSuperAdmin() && $this->viewer->getIdentity() != $this->subject->getIdentity()) { ?>
	<script>
		en4.core.runonce.add(function() {
			var layout_main = scriptJquery('#global_page_user-profile-index').find('#global_content').find('.layout_main');
			layout_main.find('.layout_middle').remove();
			layout_main.find('.layout_left').remove();
			layout_main.find('.layout_right').remove();
			var layout_bottom = scriptJquery('#global_page_user-profile-index').find('#global_content').find('.layout_bottom');
			layout_bottom.find('.layout_middle').remove();
		});
	</script>
<?php } ?>