Skip to content

Commit

Permalink
Bug #15 fix: Add message : please accept terms and conditions to cont…
Browse files Browse the repository at this point in the history
…inue (#16)

* Bug #157654 fix: Add message : please accept terms and conditions to continue

* Bug #157654 fix: Add message : please accept terms and conditions to continue

* Bug #157654 fix: Add message : please accept terms and conditions to continue

* Bug #157654 fix: Add message : please accept terms and conditions to continue

* Bug #157654 fix: Add message : please accept terms and conditions to continue
  • Loading branch information
paritshivani authored Feb 17, 2020
1 parent c09aed3 commit 8f3f286
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/com_tc/site/views/content/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ function validateform(form)
}
}
</script>

<?php if (!empty($this->tc_id))
{?>
<div class="well well-condensed">
<div class="">
<h1><?php echo $this->termsandconditions->title; ?></h1>
<?php echo JText::_("COM_TC_LATEST_TERMSANDCONDITIONS_VERSION") . $this->termsandconditions->version; ?> &nbsp;&nbsp;
<?php echo JText::_("COM_TC_LATEST_TERMSANDCONDITIONS_UPDATED_DATE") . $this->termsandconditions->modified_on; ?>
<strong><?php echo JText::_("COM_TC_LATEST_TERMSANDCONDITIONS_VERSION") . $this->termsandconditions->version; ?>&nbsp;&nbsp;
<?php echo JText::_("COM_TC_LATEST_TERMSANDCONDITIONS_UPDATED_DATE") . $this->termsandconditions->modified_on; ?></strong>
</div>
<br>
<div class="">
Expand Down Expand Up @@ -60,3 +60,4 @@ function validateform(form)
<?php echo JText::_('COM_TC_ACCEPT_TERMSANDCONDITIONS_BUTTON'); ?></button>
</form>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
PLUG_SYSTEM_TC_DESC="This is system plug-in will work on after load page URL for T and C accept to user if system administrator has created T and C for that loaded page."
PLG_USER_TC_LBL_VERSION_NUMBER="Version no"
PLG_USER_TC_DESC_VERSION_NUMBER="Version no should be unique"
PLUG_SYSTEM_TC_TERMS_AND_CONDITIONS_MSG="Please accept following 'Terms and Conditions' to continue"
2 changes: 1 addition & 1 deletion src/plugins/system/plug_system_tc/plug_system_tc.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function onAfterRoute()
$tc_url = 'index.php?option=com_tc&view=content&tc_id=';

// Redirect to Terms and condtitions view
$this->app->redirect(JRoute::_(JURI::root() . $tc_url . $getGlobalTCAcceptIdList[$i]->tc_id . '&return=' . $url));
$this->app->redirect(JRoute::_(JURI::root() . $tc_url . $getGlobalTCAcceptIdList[$i]->tc_id . '&return=' . $url, false), JText::_('PLUG_SYSTEM_TC_TERMS_AND_CONDITIONS_MSG'), 'Notice');
}
}
}
Expand Down

0 comments on commit 8f3f286

Please sign in to comment.