How best to add a checkbox with your privacy policy?
I mean both in the module and in the component when asking a question.
I mean both in the module and in the component when asking a question.
What is TnC?It stands for Terms and Conditions: http://take.ms/Cko5a
Where can I change module code? It can be done rewriting the template?If you are referring to the 'Quick question' module, you can take a look at the following file.
<?php echo nl2br($this->config->get('main_tnctext')); ?>
<content>
<p class="mb-10">
<?php //echo nl2br($this->config->get('main_tnctext')); ?>
Souhlasím s <a href="index.php?option=com_content&view=article&id=15:souhlas&catid=2:uncategorised" class="jcepopup" data-mediabox="1" type="text/html" data-mediabox-width="1200" data-mediabox-height="800">podmínkami ochrany osobních údajů</a>
</p>
<form data-form-response method="post" action="<?php echo JRoute::_('index.php');?>">
<?php echo JHTML::_('form.token');?>
</form>
</content>
COM_EASYDISCUSS_I_HAVE_READ_AND_AGREED="Souhlasím s"
COM_EASYDISCUSS_TERMS_AND_CONDITIONS="podmínkami na ochranu osobních údajů"
<div class="o-checkbox o-checkbox--inline t-mr--md">
<input type="checkbox" name="tnc-ask" id="tnc-ask" data-ed-ask-tnc-checkbox <?php echo ED::tnc()->hasAcceptedTnc('question') ? 'checked="checked"' : '' ?>/>
<label for="tnc-ask">
<?php echo JText::_('COM_EASYDISCUSS_I_HAVE_READ_AND_AGREED');?>
<!--<a href="javascript:void(0);" style="text-decoration: underline;" data-ed-ask-tnc-link>-->
<a href="index.php?option=com_content&view=article&id=15:souhlas&catid=2:uncategorised" class="jcepopup" data-mediabox="1" type="text/html" data-mediabox-width="1200" data-mediabox-height="800">
<?php echo JText::_('COM_EASYDISCUSS_TERMS_AND_CONDITIONS');?>
</a>
</label>
</div>