@@ -3951,7 +3951,8 @@ function api_not_allowed(
3951
3951
}
3952
3952
3953
3953
$ tplPlugin = new AppPlugin ();
3954
- $ pluginRegionContent = $ tplPlugin ->load_region ('login_bottom ' , $ tpl , true );
3954
+ $ loginTopRegionContent = $ tplPlugin ->load_region ('login_top ' , $ tpl , true );
3955
+ $ loginBottomRegionContent = $ tplPlugin ->load_region ('login_bottom ' , $ tpl , true );
3955
3956
3956
3957
if (!empty ($ _SERVER ['REQUEST_URI ' ]) &&
3957
3958
(
@@ -3993,15 +3994,15 @@ function api_not_allowed(
3993
3994
$ content .= "<p style='text-align:center'><a href='#' onclick='$(this).parent().next().toggle()'> " .get_lang ('LoginWithExternalAccount ' )."</a></p> " ;
3994
3995
$ content .= "<div style='display:none;'> " ;
3995
3996
}
3997
+ $ content .= PHP_EOL .$ loginTopRegionContent ;
3996
3998
$ content .= '<div class="well"> ' ;
3997
3999
$ content .= $ form ->returnForm ();
3998
4000
$ content .= '</div> ' ;
4001
+ $ content .= PHP_EOL .$ loginBottomRegionContent ;
3999
4002
if (api_is_cas_activated ()) {
4000
4003
$ content .= "</div> " ;
4001
4004
}
4002
4005
4003
- $ content .= PHP_EOL .$ pluginRegionContent ;
4004
-
4005
4006
if (!empty ($ courseCode )) {
4006
4007
$ content .= '<hr/><p style="text-align:center"><a href=" ' .$ home_url .'"> ' .
4007
4008
get_lang ('ReturnToCourseHomepage ' ).'</a></p> ' ;
@@ -4048,9 +4049,11 @@ function api_not_allowed(
4048
4049
$ msg .= "<div style='display:none;'> " ;
4049
4050
}
4050
4051
$ form = api_get_not_allowed_login_form ();
4052
+ $ msg .= PHP_EOL .$ loginTopRegionContent ;
4051
4053
$ msg .= '<div class="well"> ' ;
4052
4054
$ msg .= $ form ->returnForm ();
4053
4055
$ msg .= '</div> ' ;
4056
+ $ msg .= PHP_EOL .$ loginBottomRegionContent ;
4054
4057
if ($ casEnabled ) {
4055
4058
$ msg .= "</div> " ;
4056
4059
}
@@ -4072,14 +4075,14 @@ function api_not_allowed(
4072
4075
4073
4076
if (api_is_anonymous ()) {
4074
4077
$ form = api_get_not_allowed_login_form ();
4078
+ $ msg .= PHP_EOL .$ loginTopRegionContent ;
4075
4079
$ msg .= '<div class="well"> ' ;
4076
4080
$ msg .= $ form ->returnForm ();
4077
4081
$ msg .= '</div> ' ;
4082
+ $ msg .= PHP_EOL .$ loginBottomRegionContent ;
4078
4083
}
4079
4084
}
4080
4085
4081
- $ msg .= PHP_EOL .$ pluginRegionContent ;
4082
-
4083
4086
$ tpl ->assign ('content ' , $ msg );
4084
4087
$ tpl ->display_one_col_template ();
4085
4088
exit ;
0 commit comments