Your IP : 216.73.216.224


Current Path : /var/www/html/components/com_osmembership/view/register/tmpl/
Upload File :
Current File : /var/www/html/components/com_osmembership/view/register/tmpl/default_terms_conditions.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
 *
 */

$articleId = $this->plan->terms_and_conditions_article_id ?: $this->config->article_id;

if ($articleId > 0)
{
	$articleUrl = OSMembershipHelperHtml::getArticleUrl($articleId);

	if ($articleUrl)
	{
		OSMembershipHelperModal::iframeModal('.osm-modal');
	?>
		<div class="<?php echo $controlGroupClass ?> osm-terms-and-conditions-container">
			<div class="<?php echo $controlLabelClass; ?>">
				<?php echo Text::_('OSM_TERM_AND_CONDITION'); ?>
				<span class="required">*</span>
			</div>
			<div class="<?php echo $controlsClass; ?>">
				<label class="checkbox" for="osm-accept-terms-conditions">
					<input type="checkbox" id="osm-accept-terms-conditions" name="accept_term" value="1" class="validate[required] form-check-input<?php echo $this->bootstrapHelper->getFrameworkClass('uk-checkbox', 1); ?>" />
					<?php echo Text::_('OSM_ACCEPT'); ?>&nbsp;<a href="<?php echo Route::_($articleUrl . '&tmpl=component&format=html'); ?>" class="osm-modal"><?php echo Text::_('OSM_TERM_AND_CONDITION'); ?></a>
				</label>
			</div>
		</div>
	<?php
	}
}