Use my modal for tnc
-
Hi,
instead of using the build in modal of your plugin for the “Terms and Conditions” to be shown I would like to use my own (bootstrap) modal. It looks and works better for me and the design is in line with the other modals on my page.
Now I am serching for a way to get the content that was saved in the settings-page to be shown in this structure:
<!-- Modal --> <div class="modal fade" id="tncDialog2" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Terms & Conditions</h4> </div> <div class="modal-body"> <strong>--> Terms and Conditions <--</strong> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!-- Modal -->
See below how I call my modal. I have changed:
data-target="#tncDialog" id="tncLink"
to
data-target="#tncDialog2"
In order to make my modal work.
<input type="checkbox" id="chkAgreeTerms" name="chkAgreeTerms" <?php echo (isset($request['chkAgreeTerms']) ? 'checked="checked"':'')?> /> <label class="terms-label" for="chkAgreeTerms" id="agreeTermsLabel"><?php _e('I have read and agree to the', 'affiliates-manager' ) ?> <span class="cursor-pointer" data-toggle="modal" data-target="#tncDialog2"><?php _e('Terms and Conditions', 'affiliates-manager' ) ?></span></label>
Many thanks.
- The topic ‘Use my modal for tnc’ is closed to new replies.