| Current Path : /var/www/html/components/com_osmembership/view/register/tmpl/ |
| Current File : /var/www/html/components/com_osmembership/view/register/tmpl/default_gdpr.php |
<?php
/**
* @package Joomla
* @subpackage Membership Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2012 - 2026 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die ;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
/**
* Layout variables
*
* @var string $controlGroupClass
* @var string $controlLabelClass
* @var string $controlsClass
*/
if ($this->config->show_privacy_policy_checkbox)
{
if ($this->config->privacy_policy_url)
{
$link = $this->config->privacy_policy_url;
}
elseif ($this->config->privacy_policy_article_id > 0)
{
$privacyArticleUrl = OSMembershipHelperHtml::getArticleUrl($this->config->privacy_policy_article_id);
if ($privacyArticleUrl)
{
$link = Route::_($privacyArticleUrl . '&tmpl=component&format=html');
}
else
{
$link = '';
}
}
else
{
$link = '';
}
?>
<div class="<?php echo $controlGroupClass ?> osm-privacy-policy">
<div class="<?php echo $controlLabelClass; ?>">
<?php
if ($link)
{
if ($this->config->privacy_policy_url)
{
?>
<a href="<?php echo $link; ?>" target="_blank"><?php echo Text::_('OSM_PRIVACY_POLICY');?></a>
<?php
}
else
{
OSMembershipHelperModal::iframeModal('.osm-modal');
?>
<a href="<?php echo $link; ?>" class="osm-modal"><?php echo Text::_('OSM_PRIVACY_POLICY');?></a>
<?php
}
}
else
{
echo Text::_('OSM_PRIVACY_POLICY');
}
?>
<span class="required">*</span>
</div>
<div class="<?php echo $controlsClass; ?>">
<label for="agree_privacy_policy">
<input type="checkbox" name="agree_privacy_policy" id="agree_privacy_policy" value="1" class="validate[required] form-check-input<?php echo $this->bootstrapHelper->getFrameworkClass('uk-checkbox', 1); ?>" data-errormessage="<?php echo Text::_('OSM_AGREE_PRIVACY_POLICY_ERROR');?>" />
<?php
$agreePrivacyPolicyMessage = Text::_('OSM_AGREE_PRIVACY_POLICY_MESSAGE');
if (strlen($agreePrivacyPolicyMessage))
{
?>
<div class="osm-privacy-policy-message alert alert-info"><?php echo $agreePrivacyPolicyMessage;?></div>
<?php
}
?>
</label>
</div>
</div>
<?php
}
$action = $this->action ?? '';
if ($this->config->show_subscribe_newsletter_checkbox && ($action != 'renew' || !$this->config->hide_newsletter_checkbox_on_renewal))
{
?>
<div class="<?php echo $controlGroupClass ?> osm-subscribe-to-newsletter-container">
<div class="<?php echo $controlLabelClass; ?>">
<?php echo Text::_('OSM_SUBSCRIBE_NEWSLETTER'); ?>
</div>
<div class="<?php echo $controlsClass; ?>">
<label class="checkbox" for="subscribe_to_newsletter">
<input type="checkbox" name="subscribe_to_newsletter" id="subscribe_to_newsletter" value="1" class="form-check-input<?php echo $this->bootstrapHelper->getFrameworkClass('uk-checkbox', 1); ?>" />
<?php echo Text::_('OSM_JOIN_NEWSLETTER'); ?>
</label>
</div>
</div>
<?php
}