Skip to content

Commit

Permalink
Bug #36: Frontend - Notice displayed to users above Terms and con… (#37)
Browse files Browse the repository at this point in the history
* Bug #157922: Frontend - Notice displayed to users above Terms and condition

* Bug #157922 fix: Frontend - Notice displayed to users above Terms and condition

* Bug #157922 fix: Frontend - Notice displayed to users above Terms and condition

* Bug #157922 fix: Frontend - Notice displayed to users above Terms and condition

* Bug #157922 fix: Frontend - Notice displayed to users above Terms and condition
  • Loading branch information
paritshivani authored Feb 26, 2020
1 parent 0866bde commit 351df84
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/pkg_tc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<!-- Component -->
<file type="component" id="com_tc">components/com_tc.zip</file>
<!-- Plugins -->
<file type="plugin" id="plug_system_tc" group="system">plugins/system/plug_system_tc.zip</file>
<file type="plugin" id="tc" group="system">plugins/system/tc.zip</file>
</files>
<updateservers>
<server type="collection" priority="1" name="tc"><![CDATA[https://techjoomla.com/updates/stream/tc.xml?format=xml]]></server>
</updateservers>
</extension>
</extension>

This file was deleted.

This file was deleted.

Binary file removed src/plugins/system/plug_system_tc/plug_system_tc.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions src/plugins/system/tc/language/en-GB/en-GB.plg_system_tc.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PLG_SYSTEM_TC="Terms & conditions"
PLG_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"
PLG_SYSTEM_TC_TERMS_AND_CONDITIONS_MSG="Please accept following 'Terms and Conditions' to continue"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PLG_SYSTEM_TC="Terms & conditions"
PLG_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."
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@
*
* @since 1.0.0
*/
class PlgSystemplug_System_Tc extends JPlugin
class PlgSystemTc extends JPlugin
{
public $app;

/**
* Load plugin language file automatically so that it can be used inside component
*
* @var boolean
* @since 2.3.4
*/
protected $autoloadLanguage = true;
/**
* Method to handle an error condition.
*
Expand Down Expand Up @@ -94,7 +101,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, false), JText::_('PLUG_SYSTEM_TC_TERMS_AND_CONDITIONS_MSG'), 'Notice');
$this->app->redirect(JRoute::_(JURI::root() . $tc_url . $getGlobalTCAcceptIdList[$i]->tc_id . '&return=' . $url, false), JText::_('PLG_SYSTEM_TC_TERMS_AND_CONDITIONS_MSG'), 'Notice');
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.0" type="plugin" group="system" method="upgrade">
<name>plug_system_tc</name>
<name>plg_system_tc</name>
<author>Techjoomla</author>
<creationDate>March 2017</creationDate>
<copyright>Copyright(C)2016-17 TechJoomla</copyright>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.techjoomla.com</authorUrl>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<version>1.0</version>
<description>PLUG_SYSTEM_TC_DESC</description>
<description>PLG_SYSTEM_TC_DESC</description>
<files>
<filename plugin="plug_system_tc">plug_system_tc.php</filename>
<filename plugin="tc">tc.php</filename>
</files>
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.plug_system_tc.ini</language>
<language tag="en-GB">en-GB/en-GB.plug_system_tc.sys.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_system_tc.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_system_tc.sys.ini</language>
</languages>
<config name="params">
</config>
Expand Down
2 changes: 1 addition & 1 deletion src/script.pkg_tc.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Pkg_TcInstallerScript extends TJInstaller
// Plugins => { (folder) => { (element) => (published) }* }*
'plugins' => array(
'system' => array(
'plug_system_tc' => 1
'tc' => 1
)
)
)
Expand Down

0 comments on commit 351df84

Please sign in to comment.