File tree Expand file tree Collapse file tree 6 files changed +30
-0
lines changed
Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,15 @@ function onShowEnd() {
190190 $ app ->tpl ->setVar ("show_per_domain_relay_options " , 0 );
191191 }
192192
193+ // APS is enabled or not
194+ $ global_config = $ app ->getconf ->get_global_config ('sites ' );
195+ if ($ global_config ['show_aps_menu ' ] == 'y ' ) {
196+ $ app ->tpl ->setVar ("show_aps_menu " , 1 );
197+ } else {
198+ $ app ->tpl ->setVar ("show_aps_menu " , 0 );
199+ }
200+
201+
193202
194203 //* Set the 'customer no' default value
195204 if ($ this ->id == 0 ) {
Original file line number Diff line number Diff line change @@ -73,6 +73,13 @@ function onShowEnd() {
7373 } else {
7474 $ app ->tpl ->setVar ("show_per_domain_relay_options " , 0 );
7575 }
76+ // APS is enabled or not
77+ $ global_config = $ app ->getconf ->get_global_config ('sites ' );
78+ if ($ global_config ['show_aps_menu ' ] == 'y ' ) {
79+ $ app ->tpl ->setVar ("show_aps_menu " , 1 );
80+ } else {
81+ $ app ->tpl ->setVar ("show_aps_menu " , 0 );
82+ }
7683 parent ::onShowEnd ();
7784 }
7885
Original file line number Diff line number Diff line change @@ -184,6 +184,14 @@ function onShowEnd() {
184184 $ app ->tpl ->setVar ("show_per_domain_relay_options " , 0 );
185185 }
186186
187+ // APS is enabled or not
188+ $ global_config = $ app ->getconf ->get_global_config ('sites ' );
189+ if ($ global_config ['show_aps_menu ' ] == 'y ' ) {
190+ $ app ->tpl ->setVar ("show_aps_menu " , 1 );
191+ } else {
192+ $ app ->tpl ->setVar ("show_aps_menu " , 0 );
193+ }
194+
187195 //* Set the 'customer no' default value
188196 if ($ this ->id == 0 ) {
189197 //* get the system config
Original file line number Diff line number Diff line change @@ -433,6 +433,7 @@ <h4 class="panel-title">
433433 </ div >
434434 </ div >
435435 </ div >
436+ < tmpl _if name ="show_aps_menu ">
436437 < div class ="panel panel-default ">
437438 < div class ="panel-heading " role ="tab " id ="headingAPS ">
438439 < h4 class ="panel-title ">
@@ -450,6 +451,7 @@ <h4 class="panel-title">
450451 </ div >
451452 </ div >
452453 </ div >
454+ </ tmpl _if>
453455</ div >
454456 < input type ="hidden " name ="id " value ="{tmpl_var name='id'} ">
455457
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ <h4 class="panel-title">
391391 </ div >
392392 </ div >
393393 <!-- APS -->
394+ < tmpl _if name ="show_aps_menu ">
394395 < div class ="panel panel-default ">
395396 < div class ="panel-heading " role ="tab " id ="headingAPS ">
396397 < h4 class ="panel-title ">
@@ -408,6 +409,7 @@ <h4 class="panel-title">
408409 </ div >
409410 </ div >
410411 </ div >
412+ </ tmpl _if>
411413 < tmpl _if name ="is_admin ">
412414 <!-- Client -->
413415 < div class ="panel panel-default ">
Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ <h4 class="panel-title">
435435 </ div >
436436 </ div >
437437 <!-- APS -->
438+ < tmpl _if name ="show_aps_menu ">
438439 < div class ="panel panel-default ">
439440 < div class ="panel-heading " role ="tab " id ="headingAPS ">
440441 < h4 class ="panel-title ">
@@ -452,6 +453,7 @@ <h4 class="panel-title">
452453 </ div >
453454 </ div >
454455 </ div >
456+ </ tmpl _if>
455457 <!-- Client -->
456458 < div class ="panel panel-default ">
457459 < div class ="panel-heading " role ="tab " id ="headingClient ">
You can’t perform that action at this time.
0 commit comments