mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
themes MDL-24493 Added redirect page layout and styles for all themes
This commit is contained in:
parent
f2a04fc197
commit
96321cf4d8
@ -2460,7 +2460,7 @@ function redirect($url, $message='', $delay=-1) {
|
||||
}
|
||||
|
||||
// Include a redirect message, even with a HTTP redirect, because that is recommended practice.
|
||||
$PAGE->set_pagelayout('embedded'); // No header and footer needed
|
||||
$PAGE->set_pagelayout('redirect'); // No header and footer needed
|
||||
$CFG->docroot = false; // to prevent the link to moodle docs from being displayed on redirect page.
|
||||
echo $OUTPUT->redirect_message($encodedurl, $message, $delay, $debugdisableredirect);
|
||||
exit;
|
||||
|
@ -146,6 +146,12 @@ $THEME->layouts = array(
|
||||
'regions' => array(),
|
||||
'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
|
||||
),
|
||||
// The pagelayout used when a redirection is occuring.
|
||||
'redirect' => array(
|
||||
'file' => 'embedded.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
|
||||
),
|
||||
);
|
||||
|
||||
// We don't want the base theme to be shown on the theme selection screen, by setting
|
||||
|
@ -317,4 +317,7 @@ clear: both;
|
||||
|
||||
#custommenu .yui3-menu-horizontal .yui3-menu-content li a {
|
||||
cursor:pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.pagelayout-redirect #content p,
|
||||
.pagelayout-redirect #content div {color:#FFF;}
|
@ -162,7 +162,12 @@ $THEME->layouts = array(
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
|
||||
),
|
||||
|
||||
// The pagelayout used when a redirection is occuring.
|
||||
'redirect' => array(
|
||||
'file' => 'embedded.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
||||
),
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
@ -676,4 +676,9 @@ padding: 0
|
||||
.path-enrol .enrolcohortbutton.instance1 {float:right;}
|
||||
|
||||
/* Registration */
|
||||
#page-admin-registration-hubselector .registration_textfield {width: 400px;}
|
||||
#page-admin-registration-hubselector .registration_textfield {width: 400px;}
|
||||
|
||||
/**
|
||||
* Redirect
|
||||
*/
|
||||
.pagelayout-redirect #content {text-align:center;margin-top:10%;margin-bottom:10%;}
|
@ -32,4 +32,6 @@ h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {text-align:center;}
|
||||
|
||||
.groupmanagementtable {width:90%;}
|
||||
.groupmanagementtable td {vertical-align:top;border-width:0px;}
|
||||
.groupmanagementtable td p {margin:0px;}
|
||||
.groupmanagementtable td p {margin:0px;}
|
||||
|
||||
.pagelayout-redirect #page {background-image:none;}
|
@ -370,3 +370,5 @@ h2.headingblock {
|
||||
#dockeditempanel .dockeditempanel_hd .commands {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.pagelayout-redirect {background-position:0 0;}
|
@ -636,6 +636,9 @@ ul.topics li#section-0, ul.weeks li#section-0 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.pagelayout-redirect {background-position:0 0;border-top:1px solid #853650;}
|
||||
.pagelayout-redirect #content {margin-top:150px;}
|
||||
|
||||
/* Splash Theme Specific settings for Administrators to customise css.
|
||||
---------------------------*/
|
||||
[[setting:customcss]]
|
Loading…
x
Reference in New Issue
Block a user