themes MDL-24493 Added redirect page layout and styles for all themes

This commit is contained in:
Sam Hemelryk 2010-10-25 08:52:37 +00:00
parent f2a04fc197
commit 96321cf4d8
8 changed files with 31 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;}

View File

@ -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),
),
);
/////////////////////////////////////////////////////////

View File

@ -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%;}

View File

@ -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;}

View File

@ -370,3 +370,5 @@ h2.headingblock {
#dockeditempanel .dockeditempanel_hd .commands {
float: right;
}
.pagelayout-redirect {background-position:0 0;}

View File

@ -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]]