File tree 7 files changed +11
-97
lines changed
views/templates/admin/hotel_configuration_setting/helpers/view
7 files changed +11
-97
lines changed Original file line number Diff line number Diff line change 150
150
<hook module =" wkfooterpaymentinfoblockcontainer" hook =" displayFooter" position =" 4" />
151
151
<hook module =" wkfooteraboutblock" hook =" displayFooterMostLeftBlock" position =" 3" />
152
152
<hook module =" wkfooteraboutblock" hook =" displayFooterPaymentInfo" position =" 1" />
153
- <hook module =" wkfooterpaymentblock" hook =" displayAddModuleSettingLink" position =" 6" />
154
153
<hook module =" wkfooterpaymentblock" hook =" displayFooterPaymentInfo" position =" 2" />
155
154
<hook module =" wkfooternotificationblock" hook =" displayFooter" position =" 5" />
156
155
<hook module =" blocknavigationmenu" hook =" displayTop" position =" 2" />
157
156
<hook module =" blocknavigationmenu" hook =" displayFooter" position =" 6" />
158
157
<hook module =" blocknavigationmenu" hook =" actionObjectLanguageAddAfter" position =" 6" />
159
- <hook module =" blocknavigationmenu" hook =" displayAddModuleSettingLink" position =" 7" />
160
158
<hook module =" blocknavigationmenu" hook =" displayDefaultNavigationHook" position =" 1" />
161
159
<hook module =" blocknavigationmenu" hook =" displayNavigationHook" position =" 1" />
162
160
<hook module =" blocknewsletter" hook =" Header" position =" 3" />
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ public function __construct()
41
41
$ this ->ps_versions_compliancy = array ('min ' => '1.6 ' , 'max ' => _PS_VERSION_ );
42
42
}
43
43
44
+ public function getContent ()
45
+ {
46
+ Tools::redirectAdmin ($ this ->context ->link ->getAdminLink ('AdminCustomNavigationLinkSetting ' ));
47
+ }
48
+
44
49
public function hookTop ($ params )
45
50
{
46
51
return $ this ->hookDisplayTopSubSecondaryBlock ($ params );
@@ -98,15 +103,6 @@ public function hookActionObjectLanguageAddAfter($params)
98
103
}
99
104
}
100
105
101
- public function hookDisplayAddModuleSettingLink ()
102
- {
103
- $ this ->context ->smarty ->assign (
104
- 'custom_navigation_link_setting_url ' ,
105
- $ this ->context ->link ->getAdminLink ('AdminCustomNavigationLinkSetting ' )
106
- );
107
- return $ this ->display (__FILE__ , 'customNavigationLinkSetting.tpl ' );
108
- }
109
-
110
106
public function install ()
111
107
{
112
108
$ objModuleDb = new WkBlockNavigationMenuDb ();
@@ -128,7 +124,6 @@ public function registerModuleHooks()
128
124
return $ this ->registerHook (
129
125
array (
130
126
'footer ' ,
131
- 'displayAddModuleSettingLink ' ,
132
127
'actionObjectLanguageAddAfter ' ,
133
128
'displayDefaultNavigationHook ' ,
134
129
'displayNavigationHook ' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,13 +29,6 @@ public function renderView()
29
29
'order_restrict_setting_link ' => $ this ->context ->link ->getAdminLink ('AdminOrderRestrictSettings ' ),
30
30
'additional_demand_setting_link ' => $ this ->context ->link ->getAdminLink ('AdminRoomTypeGlobalDemand ' ),
31
31
);
32
- // Reviews setting link if only productcomment module is enabled
33
- if (Module::isEnabled ('productcomments ' )) {
34
- $ review_module_instance = Module::getInstanceByName ('productcomments ' );
35
- $ this ->tpl_view_vars ['htl_reviews_conf_link ' ] = $ this ->context ->link ->getAdminLink ('AdminModules ' , true ).
36
- '&configure= ' .urlencode ($ review_module_instance ->name ).'&tab_module= ' .$ review_module_instance ->tab .
37
- '&module_name= ' .urlencode ($ review_module_instance ->name );
38
- }
39
32
40
33
return parent ::renderView ();
41
34
}
Original file line number Diff line number Diff line change 10
10
<i class =" icon-question-circle" ></i >
11
11
</a >
12
12
</div >
13
- { * Reviews setting link if only productcomment module is enabled *}
14
- { if isset($htl_reviews_conf_link ) && $htl_reviews_conf_link }
15
- <div class =" btn-group setting-link-div col-sm-3 col-xs-12" >
16
- <a type =" button" href =" { $htl_reviews_conf_link } " class =" setting-link btn btn-default col-sm-10 col-xs-10" >
17
- <span class =" col-sm-2 col-xs-2" ><i class =" icon-star" ></i ></span >
18
- <span class =" setting-title col-sm-10 col-xs-10" >{ l s= ' Hotel Reviews' mod =' hotelreservationsystem' } </span >
19
- </a >
20
- <a tabindex =" 0" class =" btn btn-default col-sm-2 col-xs-2" role =" button" data-toggle =" popover" data-trigger =" focus" title =" { l s= ' Hotel Reviews Settings' mod =' hotelreservationsystem' } " data-content =" { l s= ' Configure Reviews setting using this link.' mod =' hotelreservationsystem' } " data-placement =" bottom" >
21
- <i class =" icon-question-circle" ></i >
22
- </a >
23
- </div >
24
- { /if }
25
13
<div class =" btn-group setting-link-div col-sm-3 col-xs-12" >
26
14
<a type =" button" href =" { $order_restrict_setting_link } " class =" setting-link btn btn-default col-sm-10 col-xs-10" >
27
15
<span class =" col-sm-2 col-xs-2" ><i class =" icon-list-alt" ></i ></span >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ public function __construct()
44
44
$ this ->ps_versions_compliancy = array ('min ' => '1.6 ' , 'max ' => _PS_VERSION_ );
45
45
}
46
46
47
+ public function getContent ()
48
+ {
49
+ Tools::redirectAdmin ($ this ->context ->link ->getAdminLink ('AdminFooterPaymentBlockSetting ' ));
50
+ }
51
+
47
52
public function hookFooter ($ params )
48
53
{
49
54
$ objPaymentBlockInfo = new WkFooterPaymentBlockInfo ();
@@ -58,15 +63,7 @@ public function hookdisplayFooterPaymentInfo($params)
58
63
{
59
64
return $ this ->hookFooter ($ params );
60
65
}
61
-
62
- public function hookDisplayAddModuleSettingLink ()
63
- {
64
- $ footerPaymentBlockLink = $ this ->context ->link ->getAdminLink ('AdminFooterPaymentBlockSetting ' );
65
- $ this ->context ->smarty ->assign ('footerPaymentBlockLink ' , $ footerPaymentBlockLink );
66
-
67
- return $ this ->display (__FILE__ , 'footerPaymentSettingLink.tpl ' );
68
- }
69
-
66
+
70
67
public function callInstallTab ()
71
68
{
72
69
//Controllers which are to be used in this modules but we have not to create tab for those controllers...
@@ -117,7 +114,6 @@ public function install()
117
114
}
118
115
if (!parent ::install ()
119
116
||!$ this ->registerHook ('displayFooterPaymentInfo ' )
120
- ||!$ this ->registerHook ('displayAddModuleSettingLink ' )
121
117
|| !$ this ->callInstallTab ()
122
118
|| !$ this ->insertDefaultModuleData ()
123
119
) {
You can’t perform that action at this time.
0 commit comments