MDL-20636 Merge remote-tracking branch 'moodle/master' into upgrade

Conflicts:
	lib/filestorage/file_storage.php
	mod/quiz/attemptlib.php
	mod/quiz/lib.php
	mod/quiz/mod_form.php
	mod/quiz/report/overview/overview_table.php
	mod/quiz/report/overview/report.php
	mod/quiz/report/responses/report.php
	mod/quiz/report/responses/responses_table.php
	mod/quiz/report/statistics/db/install.xml
	mod/quiz/report/statistics/qstats.php
	mod/quiz/report/statistics/report.php
	mod/quiz/report/statistics/statistics_question_table.php
	mod/quiz/report/statistics/statistics_table.php
	mod/quiz/report/statistics/version.php
	mod/quiz/review.php
	mod/quiz/reviewquestion.php
	mod/quiz/startattempt.php
	mod/quiz/styles.css
	mod/quiz/view.php
	question/type/essay/questiontype.php
	question/type/match/backup/moodle2/backup_qtype_match_plugin.class.php
	question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php
	question/type/numerical/display.html
	question/type/numerical/questiontype.php
	question/type/questiontype.php
	question/type/random/questiontype.php
	question/type/shortanswer/questiontype.php
	theme/base/style/question.css
This commit is contained in:
Tim Hunt
2011-05-11 20:29:49 +01:00
1225 changed files with 22803 additions and 8568 deletions
+19 -24
View File
@@ -23,20 +23,6 @@ $THEME->parents = array('base'); // TODO: new themes can not be based on standa
$THEME->parents_exclude_sheets = array('base'=>array('styles_moz'));
$THEME->resource_mp3player_colors =
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';
/// With this you can control the colours of the "big" MP3 player
/// that is used for MP3 resources.
$THEME->filter_mediaplugin_colors =
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'waitForPlay=yes';
/// ...And this controls the small embedded player
$THEME->layouts = array(
// Most pages - if we encounter an unknown or a missing page type, this one is used.
'base' => array(
@@ -46,44 +32,52 @@ $THEME->layouts = array(
'standard' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
// Course page
'course' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
// Course page
'coursecategory' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
'incourse' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
'frontpage' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
'admin' => array(
'file' => 'general.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre'
'defaultregion' => 'side-pre',
'options' => array('langmenu' => true)
),
'mydashboard' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
'mypublic' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu' => true)
),
'login' => array(
'file' => 'general.php',
@@ -124,7 +118,8 @@ $THEME->layouts = array(
'report' => array(
'file' => 'report.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre'
'defaultregion' => 'side-pre',
'options' => array('langmenu' => true)
),
);
@@ -132,4 +127,4 @@ $THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->enable_dock = true;
//$THEME->javascripts_footer = array('navigation');
$THEME->editor_sheets = array('editor');
$THEME->editor_sheets = array('editor');
+11 -2
View File
@@ -7,7 +7,8 @@ $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
$showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
@@ -17,6 +18,9 @@ if ($showsidepre && !$showsidepost) {
} else if (!$showsidepost && !$showsidepre) {
$bodyclasses[] = 'content-only';
}
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
@@ -25,7 +29,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -42,6 +46,11 @@ echo $OUTPUT->doctype() ?>
}
echo $PAGE->headingmenu
?></div><?php } ?>
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+11 -2
View File
@@ -5,12 +5,16 @@ $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
$bodyclasses = array();
if (!$showsidepre) {
$bodyclasses[] = 'content-only';
}
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
@@ -19,7 +23,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -36,6 +40,11 @@ echo $OUTPUT->doctype() ?>
}
echo $PAGE->headingmenu
?></div><?php } ?>
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 770 B

View File

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 269 B

+29 -3
View File
@@ -121,8 +121,6 @@ html, body {background-color:#C8C9C7;}
.group .r1 .cell,
.admin table .r1 .cell {background-color:#EEE;}
.admin .plugincompattable .r1 .cell {background-color:#FFF;}
.singlebutton,
.buttons {text-align:center;margin:20px;}
.buttons form {display:inline;}
@@ -222,4 +220,32 @@ html, body {background-color:#C8C9C7;}
/** Overide for RTL layout **/
.dir-rtl #page-header .navbar .breadcrumb {float:right;}
.dir-rtl #page-header .navbar .navbutton {float:left;}
.dir-rtl #page-header .navbar .navbutton {float:left;}
/** Custom menu **/
/*YUI Reset */
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-content,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label-active,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menuitem-active .yui3-menuitem-content,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label-menuvisible {background-position: -10000px -10000px;}
.yui3-skin-sam #page .yui3-menu-label,
.yui3-skin-sam #page .yui3-menu .yui3-menu .yui3-menu-label,
.yui3-skin-sam #page .yui3-menubuttonnav .yui3-menu-label em { background-position: right center; }
.yui3-skin-sam #page .yui3-splitbuttonnav .yui3-menu-label .yui3-menu-toggle {background-position: 3px center;}
.yui3-skin-sam #page .yui3-splitbuttonnav .yui3-menu-label-menuvisible .yui3-menu-toggle {background-position: 0% 50%;}
#custommenu {clear: both;padding-left: 4px;margin-bottom: 0px;padding-bottom: 2px;}
.yui3-skin-sam #page .yui3-menu-label,
.yui3-skin-sam #page .yui3-menuitem-content {color: #fff;font-weight: 800;line-height: 30px;}
.yui3-skin-sam #page .custom_menu_submenu .yui3-menu-label,
.yui3-skin-sam #page .custom_menu_submenu .yui3-menuitem-content {color: #000 !important;text-shadow: none !important;line-height: 25px;}
.yui3-skin-sam #page .yui3-menu-label.yui3-menu-label-active,
.yui3-skin-sam #page .yui3-menuitem-active .yui3-menuitem-content {color: #000;background-color: #697F55;}
.yui3-skin-sam #page .yui3-menu-content,
.yui3-skin-sam #page .yui3-menu .yui3-menu .yui3-menu-content,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label,
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menuitem-content {border: none !important;}
.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label,
.yui3-skin-sam .yui3-menu-horizontal .yui3-menuitem-content {border-color:#808080;border-style:solid;border-width:0px 0;}
#page .custom_menu_submenu {border: 1px solid #697F55 !important;-webkit-border-bottom-right-radius: 5px;-webkit-border-bottom-left-radius: 5px;-moz-border-radius-bottomright: 5px;-moz-border-radius-bottomleft: 5px;border-bottom-right-radius: 5px;border-bottom-left-radius: 5px;}
-8
View File
@@ -190,8 +190,6 @@ $THEME->csspostprocess = 'arialist_process_css';
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
@@ -258,10 +256,4 @@ $THEME->rarrow = '&rang;';
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->editor_sheets = array('editor');
+10 -10
View File
@@ -29,40 +29,40 @@ $string['region-side-pre'] = 'Left';
$string['choosereadme'] = '
<div class="clearfix">
<div class="theme_screenshot">
<h2>Arialist</h2>
<img src="arialist/pix/screenshot.png" />
<h3>Theme Discussion Forum:</h3>
<p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p>
<h3>Theme Credits</h3>
<p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p>
<h3>Theme Documentation:</h3>
<p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p>
<h3>Report a bug:</h3>
<p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p>
</div>
<div class="theme_description">
<h2>About</h2>
<p>Arialist is a very clean and simple two-column, fluid-width theme for Moodle 2.0.</p>
<h2>Tweaks</h2>
<p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p>
<h2>Credits</h2>
<p>This theme was coded and is maintained by Patrick Malley of NewSchool Learning. He can be contacted by email at [email protected]. </p>
<p>This theme was coded and is maintained by Patrick Malley of NewSchool Learning. He can be contacted by email at [email protected]. </p>
<h2>License</h2>
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.
</div>
</div>';
$string['linkcolor'] = 'Link Color';
$string['linkcolor'] = 'Link color';
$string['linkcolordesc'] = 'This sets the link color for the theme.';
$string['configtitle'] = 'Arialist settings';
$string['customcss'] = 'Custom CSS';
+6 -6
View File
@@ -24,7 +24,7 @@ if (!empty($PAGE->theme->settings->tagline)) {
} else {
$tagline = '<!-- There was no custom tagline set -->';
}
if (!empty($PAGE->theme->settings->logo)) {
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
}
@@ -33,11 +33,11 @@ echo $OUTPUT->doctype() ?>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<?php if ($hascustommenu) { ?>
@@ -70,7 +70,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
@@ -79,7 +79,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -87,7 +87,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
+4 -4
View File
@@ -27,7 +27,7 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<?php if ($hascustommenu) { ?>
@@ -77,7 +77,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -85,7 +85,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
@@ -93,7 +93,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+1 -1
View File
@@ -27,7 +27,7 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<?php if ($hascustommenu) { ?>
+1 -1
View File
@@ -5,7 +5,7 @@
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
+6 -6
View File
@@ -25,10 +25,10 @@ echo $OUTPUT->doctype() ?>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -49,7 +49,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -57,7 +57,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
@@ -65,7 +65,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
@@ -73,7 +73,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+4 -4
View File
@@ -32,7 +32,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
<?php if ($hasheading || $hasnavbar) { ?>
@@ -64,7 +64,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -72,7 +72,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
@@ -80,7 +80,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
+1 -1
View File
@@ -26,7 +26,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
<?php if ($hasheading || $hasnavbar) { ?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+34 -14
View File
@@ -3,26 +3,21 @@
**/
.formtable tbody th {font-weight: normal;text-align: right;}
.plugincompattable td.nonstandard,
.plugincompattable td.missingplugin {font-weight: bold;}
.plugincompattable td.standard,
.plugincompattable td.warning {font-style: normal;}
.path-admin .manageauthtable {width:100%;}
#page-admin-index .c0 {vertical-align: top;}
#page-admin-index .c1 {vertical-align: middle;}
#page-admin-blocks table.generaltable th,
#page-admin-filters table.generaltable th,
#page-admin-auth table.generaltable th,
#page-admin-modules table.generaltable th,
#page-admin-modules table.generaltable td.c0 {white-space: nowrap;padding: 4px;}
#page-admin-blocks .generaltable th,
#page-admin-filters .generaltable th,
#page-admin-auth .generaltable th,
#page-admin-modules .generaltable th,
#page-admin-modules .generaltable td.c0 {white-space: nowrap;padding: 4px;}
#page-admin-blocks table.generaltable td.cell,
#page-admin-filters table.generaltable td.cell,
#page-admin-modules table.generaltable td.cell,
#page-admin-auth table.generaltable td.cell{padding: 4px;}
#page-admin-blocks .generaltable td.cell,
#page-admin-filters .generaltable td.cell,
#page-admin-modules .generaltable td.cell,
#page-admin-auth .generaltable td.cell{padding: 4px;}
.path-admin .incompatibleblockstable td.c0 {font-weight: bold;}
@@ -116,6 +111,7 @@
.path-admin table.rolecap {margin-left: auto;margin-right: auto;}
.path-admin table.rolecap tr.rolecap th {text-align: left;font-weight: normal;}
.path-admin.dir-rtl table.rolecap tr.rolecap th {text-align: right;}
.path-admin .rolecap .hiddenrow {display: none;}
.path-admin .rolecap .inherit,
.path-admin .rolecap .allow,
@@ -174,3 +170,27 @@
.dir-rtl #adminsettings .form-item .form-setting,
.dir-rtl #adminsettings .form-item .form-label,
.dir-rtl #adminsettings .form-item .form-description { float: right;text-align: right}
.dir-rtl.path-admin .roleassigntable p {text-align: right;}
/** Plugins check */
#page-admin-index #plugins-check-info {text-align:center;margin:1em;}
#page-admin-index #plugins-check {margin-left:auto; margin-right:auto;}
#page-admin-index #plugins-check .displayname .pluginicon {width:16px;}
#page-admin-index #plugins-check .missingfromdisk .displayname {background-color:#ffd3d9;}
#page-admin-index #plugins-check .standard .source {color:#999;}
#page-admin-index #plugins-check .extension .source {background-color:#f3f2aa;}
#page-admin-index #plugins-check .msg td {text-align:center;}
#page-admin-index #plugins-check .status-downgrade .status {background-color:#ffd3d9;}
#page-admin-index #plugins-check .status-missing .status {background-color:#ffd3d9;}
#page-admin-index #plugins-check .status-new .status {background-color:#e7f1c3;}
#page-admin-index #plugins-check .status-nodb .status {color:#999;}
#page-admin-index #plugins-check .status-upgrade .status {background-color:#d2ebff;}
#page-admin-index #plugins-check .status-uptodate .status {color:#999;}
/** Plugins management */
#page-admin-plugins #plugins-control-panel {margin-left:auto; margin-right:auto;}
#page-admin-plugins #plugins-control-panel .displayname .pluginicon {width:16px;}
#page-admin-plugins #plugins-control-panel .missingfromdisk .displayname {background-color:#ffd3d9;}
#page-admin-plugins #plugins-control-panel .disabled .availability {background-color:#eee;}
#page-admin-plugins #plugins-control-panel .extension .source {background-color:#f3f2aa;}
#page-admin-plugins #plugins-control-panel .msg td {text-align:center;}
+2 -1
View File
@@ -27,5 +27,6 @@
.block.hidden .block-hider-show {display:inline;}
/** Overide for RTL layout **/
.dir-rtl .block .header .block_action {float:left;}
.dir-rtl .block .header,
.dir-rtl .block h2.header {text-align:right;}
.dir-rtl .block .header .commands { text-align: right;}
+85 -10
View File
@@ -12,14 +12,18 @@ a img {border-width:0;}
acronym,
abbr {cursor: help;}
.dir-ltr,
.mdl-left {text-align: left;}
.mdl-left,
.dir-rtl .mdl-right {text-align: left;}
.dir-rtl,
.mdl-right {text-align: right;}
.mdl-right,
.dir-rtl .mdl-left {text-align: right;}
#add,
#remove,
.centerpara,
.mdl-align {text-align: center;}
a.dimmed,
a.dimmed:link,
a.dimmed:visited,
a.dimmed_text,
.dimmed_text,
.dimmed_text a,
@@ -247,6 +251,7 @@ a.skip:active {position: static;display: block;}
.groupmanagementtable #addselect_wrapper {width: 100%;}
.groupmanagementtable #removeselect_wrapper label,
.groupmanagementtable #addselect_wrapper label {font-weight: normal;}
.dir-rtl .groupmanagementtable p {text-align: right;}
#group-usersummary {width: 14em;}
.groupselector {margin-top: 3px;margin-bottom: 3px;}
@@ -474,6 +479,7 @@ body.tag .managelink {padding: 5px;}
.file-picker .fp-toolbar {padding: .8em;background: #FFFFCC;text-align:center;margin: 3px;}
.file-picker .fp-toolbar a {padding: 0 .5em;}
.file-picker .fp-list {list-style-type:none;padding:0;float:left;width:100%;margin:0;}
.dir-rtl .file-picker .fp-list {text-align:right;}
.file-picker .fp-list li {border-bottom:1px dotted gray;margin-bottom: 1em;}
.file-picker .fp-repo-name {display:block;padding: .5em;margin-bottom: .5em;}
.file-picker .fp-pathbar {margin: .4em;border-bottom: 1px dotted gray;}
@@ -622,6 +628,11 @@ body.tag .managelink {padding: 5px;}
.userenrolment .col_group .addgroup a img {vertical-align:bottom;}
.userenrolment .col_enrol .enrolment {float:left;padding:3px;margin:3px;}
.userenrolment .col_enrol .enrolment a {float:right;margin-left:3px;}
#page-enrol-users .enrol_user_buttons {float:right;}
#page-enrol-users .enrol_user_buttons .enrolusersbutton {margin-left:1em;display:inline;}
#page-enrol-users .enrol_user_buttons .enrolusersbutton div,
#page-enrol-users .enrol_user_buttons .enrolusersbutton form {display:inline;}
#page-enrol-users .enrol_user_buttons .enrolusersbutton input {padding-left:6px;padding-right:6px;}
/**
* Overide for RTL layout
@@ -674,14 +685,6 @@ body.tag .managelink {padding: 5px;}
*/
.ie.dir-rtl .mform .fitem .felement {margin-right:0;text-align:right;float:right;}
/**
* Filters
*/
.jsenabled .mediaplugin.mediaplugin_mp3 object {height:15px;width:100px; }
.jsenabled .mediaplugin.mediaplugin_flv object {height:600px;width:800px;}
.ie .mediaplugin.mediaplugin_mp3 object{height:20px;}
/**
* Fix for broken YUI images in the menunav component
*/
@@ -704,3 +707,75 @@ body.tag .managelink {padding: 5px;}
.mod-indent-14 {margin-left:280px;}
.mod-indent-15,
.mod-indent-huge {margin-left:300px;}
.dir-rtl .felement.feditor select {margin-right:18.75%;}
/* Resourcelib mp3 player size: only width could be changed here, height hardcoded in JS */
.resourcecontent .resourcemediaplugin_mp3 object {height:25px; width: 600px}
/*
Fix for SubScript & SuperScript
------------------------------*/
sub {vertical-align: sub;}
sup {vertical-align: super;}
/** Fix YUI 2 Treeview for Right to left languages **/
.dir-rtl .ygtvtn,
.dir-rtl .ygtvtm,
.dir-rtl .ygtvtmh,
.dir-rtl .ygtvtmhh,
.dir-rtl .ygtvtp,
.dir-rtl .ygtvtph,
.dir-rtl .ygtvtphh,
.dir-rtl .ygtvln,
.dir-rtl .ygtvlm,
.dir-rtl .ygtvlmh,
.dir-rtl .ygtvlmhh,
.dir-rtl .ygtvlp,
.dir-rtl .ygtvlph,
.dir-rtl .ygtvlphh,
.dir-rtl .ygtvdepthcell,
.dir-rtl .ygtvok,
.dir-rtl .ygtvok:hover,
.dir-rtl .ygtvcancel,
.dir-rtl .ygtvcancel:hover {width:18px; height:22px; background-image:url([[pix:theme|yui2-treeview-sprite-rtl]]); background-repeat: no-repeat; cursor:pointer;}
.dir-rtl .ygtvtn {background-position: 0 -5600px;}
.dir-rtl .ygtvtm {background-position: 0 -4000px;}
.dir-rtl .ygtvtmh,
.dir-rtl .ygtvtmhh {background-position: 0 -4800px;}
.dir-rtl .ygtvtp {background-position: 0 -6400px;}
.dir-rtl .ygtvtph,
.dir-rtl .ygtvtphh {background-position: 0 -7200px;}
.dir-rtl .ygtvln {background-position: 0 -1600px;}
.dir-rtl .ygtvlm {background-position: 0 0;}
.dir-rtl .ygtvlmh,
.dir-rtl .ygtvlmhh {background-position: 0 -800px;}
.dir-rtl .ygtvlp {background-position: 0 -2400px;}
.dir-rtl .ygtvlph,
.dir-rtl .ygtvlphh {background-position: 0 -3200px}
.dir-rtl .ygtvdepthcell {background-position: 0 -8000px;}
.dir-rtl .ygtvok {background-position: 0 -8800px;}
.dir-rtl .ygtvok:hover {background-position: 0 -8844px;}
.dir-rtl .ygtvcancel {background-position: 0 -8822px;}
.dir-rtl .ygtvcancel:hover {background-position: 0 -8866px;}
.dir-rtl #yui-gen4.yui-layout-unit-left {left:500px !important;}
.dir-rtl #yui-gen6.yui-layout-unit-center {left:0px !important;}
.dir-rtl.yui-skin-sam .yui-panel .hd {text-align:left;}
.dir-rtl .yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {text-align:right;}
/** Fix TinyMCE editor right to left **/
.dir-rtl .clearlooks2.ie9 .mceAlert .mceMiddle span,.dir-rtl .clearlooks2 .mceConfirm .mceMiddle span {top: 44px;}
.dir-rtl .o2k7Skin table,
.dir-rtl .o2k7Skin tbody,
.dir-rtl .o2k7Skin a,
.dir-rtl .o2k7Skin img,
.dir-rtl .o2k7Skin tr,
.dir-rtl .o2k7Skin div,
.dir-rtl .o2k7Skin td,
.dir-rtl .o2k7Skin iframe,
.dir-rtl .o2k7Skin span,
.dir-rtl .o2k7Skin *,
.dir-rtl .o2k7Skin .mceText,
.dir-rtl .o2k7Skin .mceListBox .mceText {text-align:right;}
+1 -1
View File
@@ -15,7 +15,7 @@
#grade-aggregation-help code {display: block;margin-top: 7px;}
.gradeexportlink {padding: 2em;text-align: center;}
.gradetreebox {margin-top:10px;}
.gradetreebox {margin-top:10px;overflow-x:auto;overflow-y:hidden;}
.gradetreebox table {font-size: 0.8em;width: 100%;}
.gradetreebox td.colspan,
.gradetreebox tr.category .cell {background-color: #DDD;}
+1 -1
View File
@@ -90,4 +90,4 @@ body {margin:auto 0px;width:auto;}
.ie6.pagelayout-report #report-main-content {float:none;width:auto;}
.ie6.pagelayout-report #report-region-wrap {float:none;width:200px;left:auto;position:absolute;top:0;}
.ie6.pagelayout-report #report-region-pre,
.ie6.pagelayout-report #report-region-pre .block {width:100%;}
.ie6.pagelayout-report #report-region-pre .block {width:100%;}
+2
View File
@@ -36,6 +36,7 @@ body.jsenabled #qtypechoicecontainer {display: block;}
#combinedfeedbackhdr div.fcheckbox {margin-bottom: 1em;}
.que {clear: left;text-align: left;margin: 0 auto 1.8em auto;}
.dir-rtl .que {text-align: right;}
.que .info {float: left;width: 6em;padding:0.5em;margin-bottom: 1.8em;background: #eee;}
.que h2.no {margin: 0;font-size: 0.8em;line-height: 1;}
@@ -57,6 +58,7 @@ body.jsenabled #qtypechoicecontainer {display: block;}
.que .ablock {margin: 0.7em 0 0.3em 0;}
.que .im-controls {margin-top: 0.5em;text-align: left;}
.dir-rtl .que .im-controls {text-align: right;}
.que .specificfeedback,
.que .generalfeedback,
+4 -1
View File
@@ -40,6 +40,7 @@
.userselector div label {margin-right: 0.3em;}
#userselector_options .collapsibleregioncaption {font-weight: bold;}
#userselector_options p {margin:0.2em 0;text-align:left;}
.dir-rtl #userselector_options p {text-align:right;}
/** user full profile */
#page-user-profile .messagebox {text-align:center;margin-left:auto;margin-right:auto;}
/** user course profile */
@@ -48,4 +49,6 @@
/** Overide for RTL layout **/
.dir-rtl .userprofile .profilepicture {float:right; margin-left:20px;margin-right:0px;}
.dir-rtl .descriptionbox {margin-right: 110px;margin-left: 0px; }
.dir-rtl .userlist table#participants td,
.dir-rtl .userlist table#participants th {text-align: right;}
.dir-rtl .userlist table#participants {margin: 0 auto;}
-13
View File
@@ -190,13 +190,6 @@ $THEME->layouts = array(
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
@@ -258,10 +251,4 @@ $THEME->layouts = array(
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->editor_sheets = array('editor');
+6 -6
View File
@@ -25,11 +25,11 @@ echo $OUTPUT->doctype() ?>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -54,7 +54,7 @@ echo $OUTPUT->doctype() ?>
<?php } ?>
</div>
</div>
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
@@ -63,7 +63,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -71,7 +71,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
@@ -86,7 +86,7 @@ echo $OUTPUT->doctype() ?>
<div class="myclear"></div>
</div>
<!-- END OF CONTENT -->
<div class="myclear"></div>
+4 -4
View File
@@ -28,7 +28,7 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -77,7 +77,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -85,7 +85,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
@@ -93,7 +93,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+1 -1
View File
@@ -28,7 +28,7 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
+3
View File
@@ -125,6 +125,9 @@ fieldset#general {
.course-content .current {
background: #f14e16;
}
.course-content .current .left {
color: #fff;
}
-12
View File
@@ -164,13 +164,6 @@ $THEME->layouts = array(
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
@@ -232,8 +225,3 @@ $THEME->layouts = array(
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
+1 -1
View File
@@ -5,7 +5,7 @@
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page-wrapper" class="embedded">
+16 -16
View File
@@ -29,8 +29,8 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
@@ -38,7 +38,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-wrapper">
<div id="page" class="clearfix">
<div id="page-header" class="clearfix">
<?php if ($PAGE->heading) { ?>
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
@@ -56,11 +56,11 @@ echo $OUTPUT->doctype() ?>
</div>
<?php } ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -68,7 +68,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -76,7 +76,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -84,29 +84,29 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="clearfix"></div>
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php echo $OUTPUT->login_info(); ?>
</div>
<?php }
if ($hasheading || $hasnavbar) { ?>
<div class="myclear"></div>
</div> <!-- END #page -->
</div> <!-- END #page-wrapper -->
<?php } ?>
<div id="page-footer-bottom">
@@ -116,7 +116,7 @@ if ($hasheading || $hasnavbar) { ?>
echo $OUTPUT->standard_footer_html();
} ?>
</div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
+16 -16
View File
@@ -29,8 +29,8 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
@@ -38,7 +38,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-wrapper">
<div id="page" class="clearfix">
<div id="page-header" class="clearfix">
<?php if ($PAGE->heading) { ?>
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
@@ -56,20 +56,20 @@ echo $OUTPUT->doctype() ?>
</div>
<div class="myclear"></div>
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"> <?php echo $PAGE->button; ?></div>
</div>
<?php } ?>
<?php } ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -77,7 +77,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -85,7 +85,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -93,14 +93,14 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="myclear"></div>
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php echo $OUTPUT->login_info(); ?>
@@ -111,7 +111,7 @@ echo $OUTPUT->doctype() ?>
if ($hasheading || $hasnavbar) { ?>
<div class="myclear"></div>
</div> <!-- END #page -->
</div> <!-- END #page-wrapper -->
<?php } ?>
@@ -122,11 +122,11 @@ if ($hasheading || $hasnavbar) { ?>
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
} ?>
</div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 770 B

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 269 B

+9 -1
View File
@@ -7,6 +7,7 @@ body {
margin: 10px 5%;
background: #5b7439;
padding: 5px;
min-width: 930px; /* fixes minimum page width */
}
#page {
@@ -16,6 +17,10 @@ body {
}
#page-content {
min-width: inherit;
}
a:link,
a:visited {
color: #69804e;
@@ -312,9 +317,12 @@ h2.headingblock {
.course-content .current {
background:#69804e;
color:#fff;
}
.course-content .current .left {
color: #fff;
}
.course-content .main .content {
padding: 10px;
background:#fff;
+17 -29
View File
@@ -18,7 +18,7 @@
/**
* Configuration for Moodle's brick theme.
*
* DO NOT MODIFY THIS THEME!
* DO NOT MODIFY THIS THEME!
* COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
*
* For full information about creating Moodle themes, see:
@@ -33,7 +33,7 @@ $THEME->name = 'brick';
////////////////////////////////////////////////////
// Name of the theme. Most likely the name of
// the directory in which this file resides.
// the directory in which this file resides.
////////////////////////////////////////////////////
@@ -44,11 +44,11 @@ $THEME->parents = array(
/////////////////////////////////////////////////////
// Which existing theme(s) in the /theme/ directory
// do you want this theme to extend. A theme can
// extend any number of themes. Rather than
// creating an entirely new theme and copying all
// of the CSS, you can simply create a new theme,
// extend the theme you like and just add the
// do you want this theme to extend. A theme can
// extend any number of themes. Rather than
// creating an entirely new theme and copying all
// of the CSS, you can simply create a new theme,
// extend the theme you like and just add the
// changes you want to your theme.
////////////////////////////////////////////////////
@@ -61,7 +61,7 @@ $THEME->sheets = array(
);
////////////////////////////////////////////////////
// Name of the stylesheet(s) you've including in
// Name of the stylesheet(s) you've including in
// this theme's /styles/ directory.
////////////////////////////////////////////////////
@@ -85,7 +85,7 @@ $THEME->enable_dock = true;
// $THEME->editor_sheets
////////////////////////////////////////////////////
// An array of stylesheets to include within the
// An array of stylesheets to include within the
// body of the editor.
////////////////////////////////////////////////////
@@ -167,7 +167,7 @@ $THEME->layouts = array(
'regions' => array('side-post'),
'defaultregion' => 'side-post',
),
);
///////////////////////////////////////////////////////////////
@@ -181,23 +181,16 @@ $THEME->layouts = array(
//$THEME->csspostprocess = 'arialist_process_css';
////////////////////////////////////////////////////
// Allows the user to provide the name of a function
// that all CSS should be passed to before being
// Allows the user to provide the name of a function
// that all CSS should be passed to before being
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
// An array containing the names of JavaScript files
// located in /javascript/ to include in the theme.
// located in /javascript/ to include in the theme.
// (gets included in the head)
////////////////////////////////////////////////////
@@ -210,7 +203,7 @@ $THEME->layouts = array(
//$THEME->larrow = '&lang;';
////////////////////////////////////////////////////
// Overrides the left arrow image used throughout
// Overrides the left arrow image used throughout
// Moodle
////////////////////////////////////////////////////
@@ -243,22 +236,17 @@ $THEME->layouts = array(
// $THEME->plugins_exclude_sheets
////////////////////////////////////////////////////
// An array of plugin sheets to ignore and not
// An array of plugin sheets to ignore and not
// include.
////////////////////////////////////////////////////
// $THEME->renderfactory
////////////////////////////////////////////////////
// Sets a custom render factory to use with the
// Sets a custom render factory to use with the
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->csspostprocess = 'brick_process_css';
//$THEME->rendererfactory = 'theme_overridden_renderer_factory';
+8 -8
View File
@@ -40,30 +40,30 @@ $string['choosereadme'] = '<div class="clearfix">
<p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p>
<h3>Theme Credits</h3>
<p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p>
<p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p>
<h3>Report a bug:</h3>
<p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p>
</div>
<div class="theme_description">
<h2>About</h2>
<p>Brick is a two-column, fluid-width theme for Moodle 2.0. You can change the theme color scheme via the theme settings page.</p>
<h2>Tweaks</h2>
<p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you wish to modify aspects of this theme beyond the settings offered, we advise creating a new theme that uses this theme, Base, and Canvas all as parents. This will ensure updates to any of those themes in the core will find their way into your new theme.</p>
<h2>Credits</h2>
<p>This theme was coded and is maintained by John Stabinger of NewSchool Learning. He can be contacted by email at [email protected]. </p>
<h2>License</h2>
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.</p>
</div>
</div>';
$string['configtitle'] = 'Brick Settings';
$string['configtitle'] = 'Brick settings';
$string['logo'] = 'logo';
$string['logodesc'] = 'Change the logo of this theme by entering the URL to a new one (i.e., http://www.somesite/animage.png). As a reference, the default logo is 265px wide by 60px high. A transparent PNG will work best.';
+13 -13
View File
@@ -25,12 +25,12 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<!-- START OF HEADER -->
<div id="headerwrap">
<div id="page-header">
<div id="header">
<?php if (!empty($PAGE->theme->settings->logo)) { ?>
@@ -41,9 +41,9 @@ echo $OUTPUT->doctype() ?>
<a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
</div>
<?php } ?>
<div id="loggedinas">
<?php if ($hasheading) {
<?php if ($hasheading) {
echo $OUTPUT->lang_menu();
echo $OUTPUT->login_info();
echo $PAGE->headingmenu;
@@ -51,13 +51,13 @@ echo $OUTPUT->doctype() ?>
</div>
<div id="headerbottom">
<div id="menu">
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
</div>
</div>
</div>
@@ -78,26 +78,26 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
@@ -105,7 +105,7 @@ echo $OUTPUT->doctype() ?>
<!-- END OF CONTENT -->
</div>
</div>
</div>
+21 -21
View File
@@ -26,19 +26,19 @@ echo $OUTPUT->doctype() ?>
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<!-- START OF HEADER -->
<div id="headerwrap">
<div id="page-header">
<div id="header">
<?php if (!empty($PAGE->theme->settings->logo)) { ?>
<div id="logo">
</div>
<?php } else { ?>
<div id="nologo">
@@ -46,9 +46,9 @@ echo $OUTPUT->doctype() ?>
</div>
<?php } ?>
<div id="loggedinas">
<?php if ($hasheading) {
<?php if ($hasheading) {
echo $OUTPUT->lang_menu();
echo $OUTPUT->login_info();
echo $PAGE->headingmenu;
@@ -56,7 +56,7 @@ echo $OUTPUT->doctype() ?>
</div>
<div id="headerbottom">
<div id="menu">
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
@@ -67,7 +67,7 @@ echo $OUTPUT->doctype() ?>
<h1><?php echo $PAGE->heading ?></h1>
</div>
<?php } ?>
</div>
</div>
@@ -87,11 +87,11 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php if ($hasnavbar) { ?>
<div class="navbar">
<div class="wrapper">
@@ -99,29 +99,29 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php if ($hasnavbutton) { ?>
<div class="navbutton"><?php echo $PAGE->button; ?></div>
<?php } ?>
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
@@ -129,7 +129,7 @@ echo $OUTPUT->doctype() ?>
<!-- END OF CONTENT -->
</div>
</div>
</div>
+1 -1
View File
@@ -10,7 +10,7 @@ html a:hover,body a:hover, ul.dropdown li.hover, ul.dropdown li:hover, ul.dropdo
background: url([[setting:logo]]) no-repeat;
}
#headerwrap {
#page-header {
background: [[setting:maincolor]] url([[pix:theme|header]]) repeat-x;
border-bottom: 1px solid [[setting:maincolor]];
}
+2 -1
View File
@@ -39,10 +39,11 @@ html, body {
/* Header
----------------------------*/
#headerwrap {
#page-header {
width: 100%;
top: 0px;
height: 140px;
float: none;
}
#header {
-13
View File
@@ -218,13 +218,6 @@ $THEME->hidefromselector = true;
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
@@ -273,10 +266,4 @@ $THEME->hidefromselector = true;
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->editor_sheets = array('editor');
+1 -1
View File
@@ -5,7 +5,7 @@
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
+10 -10
View File
@@ -20,10 +20,10 @@ echo $OUTPUT->doctype() ?>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -31,7 +31,7 @@ echo $OUTPUT->doctype() ?>
<!-- START OF HEADER -->
<div id="wrapper" class="clearfix">
<div id="page-header">
<div id="page-header-wrapper" class="clearfix">
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
@@ -40,13 +40,13 @@ echo $OUTPUT->doctype() ?>
echo $OUTPUT->login_info();
echo $OUTPUT->lang_menu();
echo $PAGE->headingmenu;
?>
?>
</div>
</div>
</div>
<div class="clearer"></div> <!-- temporarily added on 06/25/10 -->
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
@@ -55,7 +55,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -63,7 +63,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -71,7 +71,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -79,7 +79,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+5 -5
View File
@@ -22,7 +22,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -66,7 +66,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -74,7 +74,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -82,7 +82,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -90,7 +90,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+2 -2
View File
@@ -22,7 +22,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -62,7 +62,7 @@ echo $OUTPUT->doctype() ?>
<!-- START OF CONTENT -->
<div id="page-content-wrapper" class="clearfix">
<div id="page-content">
<div id="report-main-content">
+1 -6
View File
@@ -110,15 +110,10 @@
}
.plugincheckwrapper {text-align: center;}
.plugincompattable {font-size: 70%;text-align: left;}
.plugincompattable caption {text-align: center;width: 100%;font-weight: bold;font-size: 130%;}
.plugincompattable td.ok {color: #008000;}
.plugincompattable td.warning {color: #DF7800;}
.plugincompattable td.error {color: #DF0000;}
/**
* Web services
*/
#page-admin-webservice-service_users .missingcaps {color: #ff6600;font-size: 90%;}
#page-admin-setting-webservicetokens .missingcaps {color: #ff6600;font-size: 90%;}
#page-admin-webservice-service_functions .functiondesc {font-size: 90%;}
#page-admin-webservice-service_functions .functiondesc {font-size: 90%;}
-6
View File
@@ -106,17 +106,11 @@ dfn {
}
pre, code {
margin: 1.5em 0;
white-space: pre;
}
pre, code, tt {
font: 1.2em monospace;
line-height: 1.5;
}
tt {
display: block;
margin: 1.5em 0;
line-height: 1.5;
}
+1 -4
View File
@@ -6,8 +6,6 @@
#page-admin-course-category .generalbox td,
#attempts th,
#attempts td,
.plugincompattable th,
.plugincompattable td,
.environmenttable th,
.environmenttable td,
.forumheaderlist td,
@@ -22,9 +20,8 @@
.results .header,
#attempts .header,
.generaltable .header,
.plugincompattable th,
.environmenttable th,
.forumheaderlist th {
background: #f3f3f3;
border-bottom-width: 2px;
}
}
+4 -6
View File
@@ -115,19 +115,13 @@ dfn {
}
pre, code {
margin: 1.5em 0;
white-space: pre;
}
pre, code, tt {
font: 1.2em monospace;
line-height: 1.5;
}
tt {
display: block;
margin: 1.5em 0;
line-height: 1.5;
}
.small {
@@ -150,6 +144,10 @@ tt {
display: none;
}
.icon.hide {
display: inline;
}
.highlight {
background: #ffc;
}
+133 -50
View File
@@ -1,5 +1,7 @@
<?php
defined('MOODLE_INTERNAL') || die();
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -29,13 +31,15 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$THEME->name = 'formal_white';
////////////////////////////////////////////////////
// Name of the theme. Most likely the name of
// the directory in which this file resides.
////////////////////////////////////////////////////
$THEME->parents = array('canvas','base');
$THEME->parents = array('base','canvas');
/////////////////////////////////////////////////////
// Which existing theme(s) in the /theme/ directory
// do you want this theme to extend. A theme can
@@ -46,101 +50,114 @@ $THEME->parents = array('canvas','base');
// changes you want to your theme.
////////////////////////////////////////////////////
$THEME->sheets = array('dock','base','general','fw_corners','formalwhite','settings');
$THEME->parents_exclude_sheets = array(
'canvas'=>array(
'core',
'pagelayout',
'tabs',
'tables',
),
);
////////////////////////////////////////////////////
// An array of stylesheets not to inherit from the
// themes parents
////////////////////////////////////////////////////
$THEME->sheets = array('frame' ,'menu', 'course',
'pagelayout','core', 'calendar',
'tabs' ,'quiz', 'formal_white');
////////////////////////////////////////////////////
// Name of the stylesheet(s) you've including in
// this theme's /styles/ directory.
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
'canvas'=>array(
'tabs',
),
);
$THEME->resource_mp3player_colors =
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';
/// With this you can control the colours of the "big" MP3 player
/// that is used for MP3 resources.
$THEME->enable_dock = true;
////////////////////////////////////////////////////
// Do you want to use the new navigation dock?
////////////////////////////////////////////////////
$THEME->filter_mediaplugin_colors =
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'waitForPlay=yes';
/// ...And this controls the small embedded player
$THEME->editor_sheets = array('editor');
////////////////////////////////////////////////////
// An array of stylesheets to include within the
// body of the editor.
////////////////////////////////////////////////////
$THEME->layouts = array(
// Most pages - if we encounter an unknown or a missing page type, this one is used.
'base' => array(
'file' => 'general.php',
'regions' => array()
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'standard' => array(
'general' => array(
'file' => 'general.php',
'regions' => array('side-post'),
'defaultregion' => 'side-post'
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
// Course page
'course' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu'=>true),
),
// Course page
'coursecategory' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
),
'incourse' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
),
'frontpage' => array(
'file' => 'general.php',
'file' => 'frontpage.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-pre'
'defaultregion' => 'side-post',
'options' => array('langmenu'=>true),
),
'admin' => array(
'file' => 'general.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre'
'defaultregion' => 'side-pre',
),
'mydashboard' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
'options' => array('langmenu'=>true),
),
'mypublic' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
'defaultregion' => 'side-post',
),
'login' => array(
'file' => 'general.php',
'regions' => array()
'regions' => array(),
'options' => array('langmenu'=>true),
),
// Pages that appear in pop-up windows - no navigation, no blocks, no header.
'popup' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true),
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
),
// No blocks and minimal footer - used for legacy frame layouts only!
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter', 'noblocks'=>true),
'options' => array('nofooter'=>true),
),
// Embeded pages, like iframe embeded in moodleform
// Embeded pages, like iframe embeded in moodleform (chat)
'embedded' => array(
'file' => 'general.php',
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true),
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
),
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
// This must not have any blocks, and it is good idea if it does not have links to
@@ -148,7 +165,7 @@ $THEME->layouts = array(
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
// Should display the content and basic headers only.
'print' => array(
@@ -157,19 +174,85 @@ $THEME->layouts = array(
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
'report' => array(
'file' => 'report.php',
'file' => 'general.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre'
'defaultregion' => 'side-pre',
),
);
///////////////////////////////////////////////////////////////
// These are all of the possible layouts in Moodle. The
// simplest way to do this is to keep the theme and file
// variables the same for every layout. Including them
// all in this way allows some flexibility down the road
// if you want to add a different layout template to a
// specific page.
///////////////////////////////////////////////////////////////
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->enable_dock = true;
$THEME->javascripts_footer = array('navigation');
/**
* Sets the function that will replace our settings within the CSS
*/
$THEME->csspostprocess = 'formalwhite_process_css';
$THEME->csspostprocess = 'formal_white_user_settings';
////////////////////////////////////////////////////
// Allows the user to provide the name of a function
// that all CSS should be passed to before being
// delivered.
////////////////////////////////////////////////////
$THEME->editor_sheets = array('editor');
// $THEME->javascripts
////////////////////////////////////////////////////
// An array containing the names of JavaScript files
// located in /javascript/ to include in the theme.
// (gets included in the head)
////////////////////////////////////////////////////
// $THEME->javascripts_footer
////////////////////////////////////////////////////
// As above but will be included in the page footer.
////////////////////////////////////////////////////
//$THEME->larrow = "&#60";
////////////////////////////////////////////////////
// Overrides the left arrow image used throughout
// Moodle
////////////////////////////////////////////////////
//$THEME->rarrow = "&#62";
////////////////////////////////////////////////////
// Overrides the right arrow image used throughout Moodle
////////////////////////////////////////////////////
// $THEME->layouts
////////////////////////////////////////////////////
// An array setting the layouts for the theme
////////////////////////////////////////////////////
// $THEME->parents_exclude_javascripts
////////////////////////////////////////////////////
// An array of JavaScript files NOT to inherit from
// the themes parents
////////////////////////////////////////////////////
// $THEME->parents_exclude_sheets
////////////////////////////////////////////////////
// An array of stylesheets not to inherit from the
// themes parents
////////////////////////////////////////////////////
// $THEME->plugins_exclude_sheets
////////////////////////////////////////////////////
// An array of plugin sheets to ignore and not
// include.
////////////////////////////////////////////////////
// $THEME->rendererfactory
////////////////////////////////////////////////////
// Sets a custom render factory to use with the
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
-154
View File
@@ -1,154 +0,0 @@
/**
* Customises the dock for the fw theme and does some other cool stuff
*/
function customise_dock_for_theme() {
// If we don't have M.core_dock or Y then bail
if (!M.core_dock) {
return false;
}
// Change the defautl remove all icon to work with our black dock
M.core_dock.cfg.display.removeallicon = M.util.image_url('dock_removeall', 'theme');
// On draw completed add the ability to move the dock to from the left to the right
M.core_dock.on('dock:drawcompleted', fw.dock.enable_side_switching, fw.dock);
// When the dock is first drawn check to see if it should be moved
M.core_dock.on('dock:drawstarted', fw.dock.check_initial_position, fw.dock);
// Corrects the panel x position for the theme
M.core_dock.on('dock:itemadded', function(item) {
item.on('dockeditem:showstart', fw.dock.correct_panel_x_position, fw.dock, item);
item.on('dockeditem:resizecomplete', fw.dock.correct_panel_x_position, fw.dock, item);
});
// Override the default fix_title_orientation method with our fw method
// this will use SVG and rotate the text if possible.
M.core_dock.genericblock.prototype.fix_title_orientation = fw.dock.fix_title_orientation;
M.core_dock.genericblock.prototype.resize_block_space = fw.dock.resize_block_space;
return true;
}
var fw = (function(){
return {
namespaces : {
svg : 'http://www.w3.org/2000/svg'
},
dock : {
enable_side_switching : function() {
var movedock = M.core_dock.Y.Node.create('<img src="'+M.util.image_url('movedock', 'theme')+'" />');
var c = M.core_dock.node.one('.controls');
c.insertBefore(M.core_dock.Y.Node.create('<br />'), c.one('img'));
c.insertBefore(movedock, c.one('br'));
movedock.on('click', this.switch_dock_side);
},
correct_panel_x_position : function(item) {
var dockoffset = M.core_dock.Y.one('#dock_item_'+item.id+'_title').get('offsetWidth');
var panelwidth = M.core_dock.Y.one(item.panel.body).get('offsetWidth');
var screenwidth = parseInt(M.core_dock.Y.get(document.body).get('winWidth'));
switch (M.core_dock.cfg.position) {
case 'left':
item.panel.cfg.setProperty('x', dockoffset);
break;
case 'right':
item.panel.cfg.setProperty('x', (screenwidth-panelwidth-dockoffset-5));
break;
}
},
switch_dock_side : function () {
var oldorientation = M.core_dock.cfg.orientation;
var oldclass = M.core_dock.cfg.css.dock+'_'+M.core_dock.cfg.position+'_'+oldorientation;
switch (M.core_dock.cfg.position) {
case 'right':
M.core_dock.cfg.position = 'left';
M.core_dock.cfg.orientation = 'vertical';
break;
case 'left':
M.core_dock.cfg.position = 'right';
M.core_dock.cfg.orientation = 'vertical';
break;
}
var newclass = M.core_dock.cfg.css.dock+'_'+M.core_dock.cfg.position+'_'+M.core_dock.cfg.orientation;
M.core_dock.node.replaceClass(oldclass, newclass);
M.core_dock.Y.Cookie.set('dock_position', M.core_dock.cfg.position);
},
check_initial_position : function () {
var cookieposition = M.core_dock.Y.Cookie.get('dock_position');
if (cookieposition && cookieposition != 'null' && cookieposition !== M.core_dock.cfg.position) {
var oldclass = M.core_dock.cfg.css.dock+'_'+M.core_dock.cfg.position+'_'+M.core_dock.cfg.orientation;
M.core_dock.cfg.position = cookieposition;
if (M.core_dock.node) {
var newclass = M.core_dock.cfg.css.dock+'_'+M.core_dock.cfg.position+'_'+M.core_dock.cfg.orientation;
M.core_dock.node.replaceClass(oldclass, newclass);
}
}
},
fix_title_orientation : function (node) {
if (M.core_dock.cfg.orientation == 'vertical') {
return fw.transform.make_vertical_text(node);
}
return node;
},
resize_block_space : function (node) {
var blockregions = {
pre: {hasblocks:true,c:'side-pre-only'},
post: {hasblocks:true,c:'side-post-only'},
noblocksc:'noblocks'
};
M.core_dock.Y.all('div.block-region').each(function(blockregion){
if (blockregion.hasClass('side-pre') && blockregion.all('.block').size() == 0) {
blockregions.pre.hasblocks = false;
} else if (blockregion.hasClass('side-post') && blockregion.all('.block').size() == 0) {
blockregions.post.hasblocks = false;
}
});
if (blockregions.pre.hasblocks && blockregions.post.hasblocks) {
// No classes required both regions have blocks
M.core_dock.Y.one(document.body).removeClass(blockregions.pre.c).removeClass(blockregions.post.c).removeClass(blockregions.noblocksc);
} else if (blockregions.pre.hasblocks) {
// side-pre-only required: remove any other classes
M.core_dock.Y.one(document.body).addClass(blockregions.pre.c).removeClass(blockregions.post.c).removeClass(blockregions.noblocksc);
} else if (blockregions.post.hasblocks) {
// side-post-only required: remove any other classes
M.core_dock.Y.one(document.body).removeClass(blockregions.pre.c).addClass(blockregions.post.c).removeClass(blockregions.noblocksc);
} else {
// All blocks have been docked: add noblocks remove side-xxx-only's if set
M.core_dock.Y.one(document.body).removeClass(blockregions.pre.c).removeClass(blockregions.post.c).addClass(blockregions.noblocksc);
}
return '200px';
}
},
transform : {
make_vertical_text : function(node) {
if (YAHOO.env.ua.ie > 0) {
if (YAHOO.env.ua.ie > 7) {
node.setAttribute('style', 'writing-mode: tb-rl; filter: flipV flipH;');
} else {
node.innerHTML = node.innerHTML.replace(/(.)/g, "$1<br />");
}
return node;
}
var test = M.core_dock.Y.Node.create('<div><span>'+node.firstChild.nodeValue+'</span></div>');
M.core_dock.Y.one(document.body).append(test);
var height = test.one('span').get('offsetWidth');
test.remove();
var txt = document.createElementNS(fw.namespaces.svg, 'text');
txt.setAttribute('x', '0');
txt.setAttribute('y', '0');
txt.setAttribute('transform','rotate(90, 5, 5)');
txt.appendChild(document.createTextNode(node.firstChild.nodeValue));
var svg = document.createElementNS(fw.namespaces.svg, 'svg');
svg.setAttribute('version', '1.1');
svg.setAttribute('height', height);
svg.setAttribute('width', 30);
svg.appendChild(txt);
var div = document.createElement(node.nodeName);
div.appendChild(svg);
return div;
}
}
}
})();
@@ -23,54 +23,58 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['blockcolumnbgc'] = 'Blocks columns background colour';
$string['blockcolumnbgcdesc'] = 'This sets the blocks columns background colour for the theme.';
$string['blockcolumnwidth'] = 'Blocks colum width';
$string['blockcolumnwidthdesc'] = 'This sets the blocks column width for the theme. <strong>Using widths lower than 200px, the calendar block is not supposed to fit.</strong>';
$string['blockcontentbgc'] = 'Blocks content background colour';
$string['blockcontentbgcdesc'] = 'This sets the blocks content background colour for the theme.';
$string['choosereadme'] = '
<div class="clearfix">
<div class="theme_screenshot">
<h2>Formal White</h2>
<img src="formal_white/pix/screenshot.gif" />
<h3>Theme Discussion Forum:</h3>
<p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p>
<h3>Theme Credits</h3>
<p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p>
<h3>Theme Documentation:</h3>
<p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p>
<h3>Report a bug:</h3>
<p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p>
</div>
<div class="theme_description">
<h2>About</h2>
<p>Formal White is a fluid-width, three-column theme ported over to 2.0 from Moodle 1.X.</p>
<h2>Tweaks</h2>
<p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p>
<div class="theme_screenshot">
<h2>Formal White</h2>
<img src="formal_white/pix/screenshot.gif" />
<h2>Credits</h2>
<p>This theme was coded and is maintained by MediaTouch 2000. </p>
<h3>Theme Discussion Forum:</h3>
<p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p>
<h2>License</h2>
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.
</div>
<h3>Theme Credits</h3>
<p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p>
<h3>Theme Documentation:</h3>
<p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p>
<h3>Report a bug:</h3>
<p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p>
</div>
<div class="theme_description">
<h2>About</h2>
<p>Formal White is a fluid-width, three-column theme ported over to 2.0 from Moodle 1.X.</p>
<h2>Tweaks</h2>
<p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p>
<h2>Credits</h2>
<p>This theme was coded and is maintained by MediaTouch 2000. </p>
<h2>License</h2>
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.
</div>
</div>';
$string['pluginname'] = 'Formal white';
$string['backgroundcolor'] = 'Blocks background colour';
$string['backgroundcolordesc'] = 'This sets the blocks background colour for the theme.';
$string['configtitle'] = 'Formal_white settings';
$string['configtitle'] = 'Formal white theme';
$string['customcss'] = 'Custom CSS';
$string['customcssdesc'] = 'Any CSS you enter here will be added to every page allowing your to easily customise this theme.';
$string['displaylogo'] = 'Pages header content';
$string['displaylogodesc'] = 'Choose whether display moodle logo or page heading text in the header.';
$string['footnote'] = 'Footnote';
$string['footnotedesc'] = 'The content from this textarea will be displayed in the footer of every page.';
$string['logo'] = 'Logo';
$string['logodesc'] = 'Enter the URL to an image to use as the logo for this site. Should be http://www.yoursite.com/path/to/logo.png<br />Preferred picture height is 100 pixels';
$string['headerbgc'] = 'Header background colour';
$string['headerbgcdesc'] = 'This sets the blocks header background colour for the theme.';
$string['heading'] = 'Display page heading';
$string['logo'] = 'logo';
$string['logodesc'] = 'Change the logo of this theme by entering the URL to a new one (i.e., http://www.somesite/animage.png). As a reference, the default logo is 300px wide by 80px high. A transparent .png will work best.<br />The chosen logo will be shown in each page of the site without any distinction between front page and other pages.';
$string['moodlelogo'] = 'Display moodle logo';
$string['noframe'] = 'Formal white 1.9 look';
$string['noframedesc'] = 'Select this option to require your moodle page to look like moodle 1.*, alias, without the surrounding frame.';
$string['pluginname'] = 'Formal white';
$string['region-side-post'] = 'Right';
$string['region-side-pre'] = 'Left';
$string['regionwidth'] = 'Column width';
$string['regionwidthdesc'] = 'This sets the width of the two block regions that form the left and right columns.';
$string['alwayslangmenu'] = 'Display languages menu';
$string['alwayslangmenudesc'] = 'Select this option to ALWAYS display lang menu. Take care that lang menu will be shown only if your site managess more than a single language.';
$string['regionwidthdesc'] = 'This sets the width of the two block regions that form the left and right columns.';
+34
View File
@@ -0,0 +1,34 @@
<?php
defined('MOODLE_INTERNAL') || die();
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html(); ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<!-- main mandatory content of the moodle page -->
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<!-- end of main mandatory content of the moodle page -->
</div>
</div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html(); ?>
</body>
</html>
+216
View File
@@ -0,0 +1,216 @@
<?php
defined('MOODLE_INTERNAL') || die();
$hasheading = $PAGE->heading;
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
$showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
} else if ($showsidepost && !$showsidepre) {
$bodyclasses[] = 'side-post-only';
} else if (!$showsidepost && !$showsidepre) {
$bodyclasses[] = 'content-only';
}
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
/************************************************************************************************/
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
} else {
$logourl = $OUTPUT->pix_url('logo', 'theme');
}
$hasframe = !isset($PAGE->theme->settings->noframe) || !$PAGE->theme->settings->noframe;
$displaylogo = !isset($PAGE->theme->settings->displaylogo) || $PAGE->theme->settings->displaylogo;
/************************************************************************************************/
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html();
if ($hasframe) { ?>
<div id="frametop">
<div id="framebottom">
<div id="frametopright">
<div>&nbsp;</div>
</div>
<div id="frameleft">
<div id="frameright">
<div id="wrapper">
<?php } ?>
<!-- begin of page-header -->
<?php if ($hasheading) { ?>
<div id="page-header">
<?php if ($displaylogo) { ?>
<div id="headerlogo">
<img src="<?php echo $logourl ?>" alt="Custom logo here" />
</div>
<?php } else { ?>
<h1 class="headerheading"><?php echo $PAGE->heading ?></h1>
<?php } ?>
<div class="headermenu">
<?php
echo $OUTPUT->login_info();
if (($CFG->langmenu) && (!empty($PAGE->layout_options['langmenu']))) {
echo $OUTPUT->lang_menu();
}
echo $PAGE->headingmenu;
?>
</div>
</div>
<?php } ?>
<!-- end of page-header -->
<!-- begin of custom menu -->
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<!-- end of custom menu -->
<!-- begin of navigation bar -->
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"><?php echo $PAGE->button; ?></div>
</div>
<?php } ?>
<!-- end of navigation bar -->
<!-- start of moodle content -->
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<!-- main mandatory content of the moodle page -->
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<!-- end of main mandatory content of the moodle page -->
<!-- left column block - diplayed only if... -->
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
<?php } ?>
<!-- end of left column block - diplayed only if... -->
<!-- right column block - diplayed only if... -->
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
<!-- end of right column block - diplayed only if... -->
</div>
</div>
</div>
<!-- end of moodle content -->
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
</div> <!-- end of wrapper -->
</div> <!-- </frameright> -->
</div> <!-- </frameleft> -->
<div id="framebottomright">
<div>&nbsp;</div>
</div>
</div> <!-- </framebottom> -->
</div> <!-- </frametop> -->
<?php }
if ($hasfooter) {
if ($hasframe) { ?>
<!-- START OF FOOTER -->
<div id="page-footer">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="footerframetop">
<div id="footerframebottom">
<div id="footerframetopright">
<div>&nbsp;</div>
</div>
<div id="footerframeleft">
<div id="footerframeright">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div>
</div> <!-- </footerframeright></footerframeleft> -->
<div id="footerframebottomright">
<div>&nbsp;</div>
</div>
</div>
</div> <!-- </footerframebottom></footerframetop> -->
<?php }
//manco di una div da chiudere
} else { ?>
<!-- START OF FOOTER -->
<div id="page-footer" class="noframefooter">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="page-footer-content">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div> <!-- end of page-footer_noframe-content -->
<?php }
//manco di una div da chiudere
} ?>
<div class="moodledocsleft">
<?php
//echo $OUTPUT->login_info();
//echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
</div>
<div class="moodledocs">
<?php echo page_doc_link(get_string('moodledocslink')); ?>
</div>
</div> <!-- end of page-footer or page-footer_noframe -->
<?php //ho chiuso la div di cui mancavo prima
}
echo $OUTPUT->standard_end_of_body_html(); ?>
</body>
</html>
+176 -105
View File
@@ -1,13 +1,16 @@
<?php
$hasheading = ($PAGE->heading);
defined('MOODLE_INTERNAL') || die();
$hasheading = $PAGE->heading;
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));
$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
$showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
@@ -20,21 +23,22 @@ if ($showsidepre && !$showsidepost) {
} else if (!$showsidepost && !$showsidepre) {
$bodyclasses[] = 'content-only';
}
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
/************************************************************************************************/
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
} else {
$logourl = $OUTPUT->pix_url('logo', 'theme');
$logourl = $OUTPUT->pix_url('logo_small', 'theme');
}
if (!empty($PAGE->theme->settings->footnote)) {
$footnote = $PAGE->theme->settings->footnote;
} else {
$footnote = '<!-- There was no custom footnote set -->';
}
$hasframe = !isset($PAGE->theme->settings->noframe) || !$PAGE->theme->settings->noframe;
$displaylogo = !isset($PAGE->theme->settings->displaylogo) || $PAGE->theme->settings->displaylogo;
/************************************************************************************************/
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
@@ -43,102 +47,169 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
<div id="page2">
<div id="headerleft" class="headerleft"><div>&nbsp;</div></div>
<div id="bodyleft" class="bodyleft">
<div id="bodyright" class="bodyright">
<div id="header-i3" class="i3">
<?php if ($hasheading || $hasnavbar) { // This is what gets printed on the home page only
?>
<div id="header-home" class="clearfix">
<div id="headerenvelop">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html();
<!-- //echo '<h1 class="logo headermain">'.$PAGE->heading.'</h1>'; -->
<?php echo '<div id="logo"><img class="sitelogo" src="'.$logourl.'" alt="Custom logo here" /></div>';
echo '<div class="headermenu">';
echo $OUTPUT->login_info();
if (!empty($PAGE->theme->settings->alwayslangmenu)) {
echo $OUTPUT->lang_menu();
}
echo $PAGE->headingmenu;
echo '</div>'; // closes: <div class="headermenu">
echo '</div>'; // closes: <div id="headerenvelop">
echo '</div>'; // closes: <div id="header-home" class="clearfix">
if ($hascustommenu) {
echo '<div id="custommenu">'.$custommenu.'</div>';
}
//Accessibility: breadcrumb trail/navbar now a DIV, not a table.
if ($hasnavbar) {
echo '<div class="navbar clearfix">';
echo ' <div class="breadcrumb">'.$OUTPUT->navbar().'</div>';
echo ' <div class="navbutton">'.$PAGE->button.'</div>';
echo '</div>';
}
} ?>
<!-- END OF HEADER -->
<div id="page-content" class="shrinker">
<!-- <div id="content" class="shrinker"> -->
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- </div> -->
</div>
</div> <!-- closes: <div id="header-i3" class="i3"> -->
</div> <!-- closes: <div id="bodyright" class="bodyright"> -->
</div> <!-- closes: <div id="bodyleft" class="bodyleft"> -->
<div id="contentfooter" class="contentfooter"><div>&nbsp;</div></div>
</div> <!-- closes: <div id="page2"> -->
</div> <!-- closes:<div id="page"> -->
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
<?php echo $footnote; ?>
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
</div>
if ($hasframe) { ?>
<div id="frametop">
<div id="framebottom">
<div id="frametopright">
<div>&nbsp;</div>
</div>
<div id="frameleft">
<div id="frameright">
<div id="wrapper">
<?php } ?>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
<!-- begin of page-header -->
<?php if ($hasheading) { ?>
<div id="page-header">
<?php if ($displaylogo) { ?>
<div id="headerlogo">
<img src="<?php echo $logourl ?>" alt="Custom logo here" />
</div>
<?php } else { ?>
<h1 class="headerheading"><?php echo $PAGE->heading ?></h1>
<?php } ?>
<div class="headermenu">
<?php
echo $OUTPUT->login_info();
if (($CFG->langmenu) && (!empty($PAGE->layout_options['langmenu']))) {
echo $OUTPUT->lang_menu();
}
echo $PAGE->headingmenu;
?>
</div>
</div>
<?php } ?>
<!-- end of page-header -->
<!-- begin of custom menu -->
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<!-- end of custom menu -->
<!-- begin of navigation bar -->
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"><?php echo $PAGE->button; ?></div>
</div>
<?php } ?>
<!-- end of navigation bar -->
<!-- start of moodle content -->
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<!-- main mandatory content of the moodle page -->
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
</div>
<!-- end of main mandatory content of the moodle page -->
<!-- left column block - diplayed only if... -->
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
<?php } ?>
<!-- end of left column block - diplayed only if... -->
<!-- right column block - diplayed only if... -->
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
<!-- end of right column block - diplayed only if... -->
</div>
</div>
</div>
<!-- end of moodle content -->
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
</div> <!-- end of wrapper -->
</div> <!-- </frameright> -->
</div> <!-- </frameleft> -->
<div id="framebottomright">
<div>&nbsp;</div>
</div>
</div> <!-- </framebottom> -->
</div> <!-- </frametop> -->
<?php }
if ($hasfooter) {
if ($hasframe) { ?>
<!-- START OF FOOTER -->
<div id="page-footer">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="footerframetop">
<div id="footerframebottom">
<div id="footerframetopright">
<div>&nbsp;</div>
</div>
<div id="footerframeleft">
<div id="footerframeright">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div>
</div> <!-- </footerframeright></footerframeleft> -->
<div id="footerframebottomright">
<div>&nbsp;</div>
</div>
</div>
</div> <!-- </footerframebottom></footerframetop> -->
<?php }
} else { ?>
<!-- START OF FOOTER -->
<div id="page-footer" class="noframefooter">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="page-footer-content">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div> <!-- end of page-footer_noframe-content -->
<?php }
} ?>
<div class="moodledocsleft">
<?php
//echo $OUTPUT->login_info();
//echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
</div>
<div class="moodledocs">
<?php echo page_doc_link(get_string('moodledocslink')); ?>
</div>
</div> <!-- end of page-footer or page-footer_noframe -->
<?php //ho chiuso la div di cui mancavo prima
}
echo $OUTPUT->standard_end_of_body_html(); ?>
</body>
</html>
-127
View File
@@ -1,127 +0,0 @@
<?php
$hasheading = ($PAGE->heading);
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));
$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
} else if ($showsidepost && !$showsidepre) {
$bodyclasses[] = 'side-post-only';
} else if (!$showsidepost && !$showsidepre) {
$bodyclasses[] = 'content-only';
}
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
} else {
$logourl = $OUTPUT->pix_url('logo', 'theme');
}
if (!empty($PAGE->theme->settings->footnote)) {
$footnote = $PAGE->theme->settings->footnote;
} else {
$footnote = '<!-- There was no custom footnote set -->';
}
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
<div id="page2">
<div id="headerleft" class="headerleft"><div>&nbsp;</div></div>
<div id="bodyleft" class="bodyleft">
<div id="bodyright" class="bodyright">
<div id="header-i3" class="i3">
<?php if ($hasheading || $hasnavbar) { // This is what gets printed on the home page only
?>
<div id="header-home" class="clearfix">
<div id="headerenvelop">
<!-- //echo '<h1 class="logo headermain">'.$PAGE->heading.'</h1>'; -->
<?php echo '<div id="logo"><img class="sitelogo" src="'.$logourl.'" alt="Custom logo here" /></div>';
echo '<div class="headermenu">';
echo $OUTPUT->login_info();
if (!empty($PAGE->theme->settings->alwayslangmenu)) {
echo $OUTPUT->lang_menu();
}
echo $PAGE->headingmenu;
echo '</div>'; // closes: <div class="headermenu">
echo '</div>'; // closes: <div id="headerenvelop">
echo '</div>'; // closes: <div id="header-home" class="clearfix">
if ($hascustommenu) {
echo '<div id="custommenu">'.$custommenu.'</div>';
}
//Accessibility: breadcrumb trail/navbar now a DIV, not a table.
if ($hasnavbar) {
echo '<div class="navbar clearfix">';
echo ' <div class="breadcrumb">'.$OUTPUT->navbar().'</div>';
echo ' <div class="navbutton">'.$PAGE->button.'</div>';
echo '</div>';
}
} ?>
<!-- END OF HEADER -->
<div id="page-content" class="clearfix shrinker">
<div id="report-main-content">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="report-region-wrap">
<div id="report-region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div> <!-- closes: <div id="header-i3" class="i3"> -->
</div> <!-- closes: <div id="bodyright" class="bodyright"> -->
</div> <!-- closes: <div id="bodyleft" class="bodyleft"> -->
<div id="contentfooter" class="contentfooter"><div>&nbsp;</div></div>
</div> <!-- closes: <div id="page2"> -->
</div> <!-- closes:<div id="page"> -->
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
<?php echo $footnote; ?>
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
</div>
<?php } ?>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
</html>
+70 -58
View File
@@ -1,5 +1,7 @@
<?php
defined('MOODLE_INTERNAL') || die();
/**
* Makes our changes to the CSS
*
@@ -7,86 +9,96 @@
* @param theme_config $theme
* @return string
*/
function formalwhite_process_css($css, $theme) {
function formal_white_user_settings($css, $theme) {
// Set the background color
if (!empty($theme->settings->backgroundcolor)) {
$backgroundcolor = $theme->settings->backgroundcolor;
// Set the page header background color
if (empty($theme->settings->headerbgc)) {
$headerbgc = '#E3DFD4'; // default (o forse è meglio #FEF9F6?)
} else {
$backgroundcolor = null;
$headerbgc = $theme->settings->headerbgc;
}
$css = formalwhite_set_backgroundcolor($css, $backgroundcolor);
$css = formal_white_set_headerbgc($css, $headerbgc);
// Set the region width
if (!empty($theme->settings->regionwidth)) {
$regionwidth = $theme->settings->regionwidth;
// Set the block content background color
if (empty($theme->settings->blockcontentbgc)) {
$blockcontentbgc = '#F6F6F6'; // default (o forse è meglio #FEF9F6?)
} else {
$regionwidth = null;
$blockcontentbgc = $theme->settings->blockcontentbgc;
}
$css = formalwhite_set_regionwidth($css, $regionwidth);
$css = formal_white_set_blockcontentbgc($css, $blockcontentbgc);
// Set the custom CSS
if (!empty($theme->settings->customcss)) {
$customcss = $theme->settings->customcss;
// Set the block column background color
if (empty($theme->settings->blockcolumnbgc)) {
$blockcolumnbgc = '#E3DFD4'; // default
} else {
$customcss = null;
$blockcolumnbgc = $theme->settings->blockcolumnbgc;
}
$css = formalwhite_set_customcss($css, $customcss);
$css = formal_white_set_blockcolumnbgc($css, $blockcolumnbgc);
// Set the logo image
if (!empty($theme->settings->logo)) {
$logo = $theme->settings->logo;
} else {
$logo = null;
}
$css = formal_white_set_logo($css, $logo);
// set the width of the two blocks colums
if (!empty($theme->settings->blockcolumnwidth)) {
$blockcolumnwidth = $theme->settings->blockcolumnwidth;
} else {
$blockcolumnwidth = '200'; // default
}
$css = formal_white_set_blockcolumnwidth($css, $blockcolumnwidth);
// Return the CSS
return $css;
}
/**
* Sets the background colour variable in CSS
* Sets the link color variable in CSS
*
* @param string $css
* @param mixed $backgroundcolor
* @return string
*/
function formalwhite_set_backgroundcolor($css, $backgroundcolor) {
$tag = '[[setting:backgroundcolor]]';
$replacement = $backgroundcolor;
if (is_null($replacement)) {
$replacement = '#F7F6F1';
}
$css = str_replace($tag, $replacement, $css);
function formal_white_set_headerbgc($css, $headerbgc) {
$tag = '[[setting:headerbgc]]';
$css = str_replace($tag, $headerbgc, $css);
return $css;
}
/**
* Sets the region width variable in CSS
*
* @param string $css
* @param mixed $regionwidth
* @return string
*/
function formalwhite_set_regionwidth($css, $regionwidth) {
$tag = '[[setting:regionwidth]]';
$doubletag = '[[setting:regionwidthdouble]]';
$replacement = $regionwidth;
if (is_null($replacement)) {
$replacement = 200;
}
$css = str_replace($tag, $replacement.'px', $css);
$css = str_replace($doubletag, ($replacement*2).'px', $css);
$css = str_replace($tag, ($replacement+10).'px', $css);
function formal_white_set_blockcontentbgc($css, $blockcontentbgc) {
$tag = '[[setting:blockcontentbgc]]';
$css = str_replace($tag, $blockcontentbgc, $css);
return $css;
}
/**
* Sets the custom css variable in CSS
*
* @param string $css
* @param mixed $customcss
* @return string
*/
function formalwhite_set_customcss($css, $customcss) {
$tag = '[[setting:customcss]]';
$replacement = $customcss;
if (is_null($replacement)) {
$replacement = '';
}
$css = str_replace($tag, $replacement, $css);
function formal_white_set_blockcolumnbgc($css, $blockcolumnbgc) {
$tag = '[[setting:blockcolumnbgc]]';
$css = str_replace($tag, $blockcolumnbgc, $css);
return $css;
}
function formal_white_set_logo($css, $logo) {
global $OUTPUT;
$tag = '[[setting:logo]]';
if (is_null($logo)) {
$logo = $OUTPUT->pix_url('logo', 'theme');
}
$css = str_replace($tag, $logo, $css);
return $css;
}
function formal_white_set_blockcolumnwidth($css, $blockcolumnwidth) {
$tag = '[[setting:blockcolumnwidth]]';
$css = str_replace($tag, $blockcolumnwidth.'px', $css);
$tag = '[[setting:minusdoubleblockcolumnwidth]]';
$css = str_replace($tag, (-2*$blockcolumnwidth).'px', $css);
$tag = '[[setting:doubleblockcolumnwidth]]';
$css = str_replace($tag, (2*$blockcolumnwidth).'px', $css);
return $css;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

+50 -19
View File
@@ -8,49 +8,80 @@ defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
// Background colour setting
$name = 'theme_formal_white/backgroundcolor';
$title = get_string('backgroundcolor','theme_formal_white');
$description = get_string('backgroundcolordesc', 'theme_formal_white');
$default = '#F7F6F1';
// moodle 1.* like setting
$name = 'theme_formal_white/noframe';
$title = get_string('noframe','theme_formal_white');
$description = get_string('noframedesc', 'theme_formal_white');
$default = '0';
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$settings->add($setting);
// page header background colour setting
$name = 'theme_formal_white/headerbgc';
$title = get_string('headerbgc','theme_formal_white');
$description = get_string('headerbgcdesc', 'theme_formal_white');
$default = '#E3DFD4';
$previewconfig = array('selector'=>'#page-header', 'style'=>'backgroundColor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// Block background colour setting
$name = 'theme_formal_white/blockcontentbgc';
$title = get_string('blockcontentbgc','theme_formal_white');
$description = get_string('blockcontentbgcdesc', 'theme_formal_white');
$default = '#F6F6F6';
$previewconfig = array('selector'=>'.block .content', 'style'=>'backgroundColor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// Block cloumns colour setting
$name = 'theme_formal_white/blockcolumnbgc';
$title = get_string('blockcolumnbgc','theme_formal_white');
$description = get_string('blockcolumnbgcdesc', 'theme_formal_white');
$default = '#E3DFD4';
$previewconfig = array('selector'=>'#page-content, #page-content #region-pre, #page-content #region-post-box', 'style'=>'backgroundColor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// display logo or heading
$name = 'theme_formal_white/displaylogo';
$title = get_string('displaylogo','theme_formal_white');
$description = get_string('displaylogodesc', 'theme_formal_white');
$default = '1';
$choices = array(1=>get_string('moodlelogo', 'theme_formal_white'),0=>get_string('heading', 'theme_formal_white'));
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
$settings->add($setting);
// Logo file setting
$name = 'theme_formal_white/logo';
$title = get_string('logo','theme_formal_white');
$description = get_string('logodesc', 'theme_formal_white');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$default = '';
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL);
$settings->add($setting);
// Block region width
$name = 'theme_formal_white/regionwidth';
$title = get_string('regionwidth','theme_formal_white');
$description = get_string('regionwidthdesc', 'theme_formal_white');
$default = 200;
$name = 'theme_formal_white/blockcolumnwidth';
$title = get_string('blockcolumnwidth','theme_formal_white');
$description = get_string('blockcolumnwidthdesc', 'theme_formal_white');
$default = '200';
$choices = array(150=>'150px', 170=>'170px', 200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
$settings->add($setting);
// alwayslangmenu setting
$name = 'theme_formal_white/alwayslangmenu';
$title = get_string('alwayslangmenu','theme_formal_white');
$description = get_string('alwayslangmenudesc', 'theme_formal_white');
$setting = new admin_setting_configcheckbox($name, $title, $description, 0);
$settings->add($setting);
// Foot note setting
$name = 'theme_formal_white/footnote';
$title = get_string('footnote','theme_formal_white');
$description = get_string('footnotedesc', 'theme_formal_white');
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
$default = '';
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
$settings->add($setting);
// Custom CSS file
$name = 'theme_formal_white/customcss';
$title = get_string('customcss','theme_formal_white');
$description = get_string('customcssdesc', 'theme_formal_white');
$setting = new admin_setting_configtextarea($name, $title, $description, '');
$default = '';
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
$settings->add($setting);
}
-37
View File
@@ -1,37 +0,0 @@
body, div, p, li, input, option, textarea {font-size:8pt;line-height:1.5em;}
body, div, p, li, input, option, textarea, h1, h2, h3, h4, h5 {font-family:Arial, Helvetica, sans-serif;}
h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {text-align:center;}
.generalbox {padding:10px;margin-bottom:15px;}
.generaltable, .userinfobox {margin-left:auto;margin-right:auto;}
#notice.generalbox {margin-left: auto;margin-right: auto;width: 60%;}
.notifyproblem {padding:10px;color:#660000;text-align:center;}
.notifysuccess {padding:10px;color:#006600;text-align:center;}
.paging {text-align:center;}
/**
* Tabs
*/
.tabtree {position:relative;margin-bottom:3.5em;}
.tabtree .tabrow0 {text-align:center;width:100%;margin:1em 0px;}
.tabtree .tabrow0 li {display:inline;margin-right:-4px;}
.tabtree .tabrow0 li.here a {position:relative;z-index:102;}
.tabtree .tabrow0 li a {background-image:url([[pix:theme|tab/left]]);padding-left:14px;padding-top:10px;background-repeat:no-repeat;padding-bottom:3px;margin-bottom:-1px;}
.tabtree .tabrow0 li a:hover {background-image:url([[pix:theme|tab/left_hover]]);}
.tabtree .tabrow0 li a span { background-image:url([[pix:theme|tab/right]]);background-repeat:no-repeat;background-position:100% 0%;padding-right:14px;padding-top:10px;padding-bottom:3px;}
.tabtree .tabrow0 li a:hover span {background-image:url([[pix:theme|tab/right_hover]]);}
.tabtree .tabrow0 ul,
.tabtree .tabrow0 div {background-image:url([[pix:theme|tab/tabrow1]]);background-position:0% 50%;position:absolute;width:100%;border-top:1px solid #aaa;padding:0.25em 0px;top:100%;margin:0px;}
.tabtree .tabrow0 .empty {height:1px;overflow:hidden;padding:0px;position:absolute;}
.tabtree .tabrow1 li a,
.tabtree .tabrow1 li a:hover,
.tabtree .tabrow1 li a span,
.tabtree .tabrow1 li a:hover span {background-image:none !important;}
.groupmanagementtable {width:90%;}
.groupmanagementtable td {vertical-align:top;border-width:0px;}
.groupmanagementtable td p {margin:0px;}
.pagelayout-redirect #page {background-image:none;}
+53
View File
@@ -0,0 +1,53 @@
/* i nomi dei mesi */
.path-calendar .minicalendarblock h3 {font-size:1.0em;margin:0;text-align:center;}
/* spaziatura fra nome del mese e minicalendar corrispondente */
.path-calendar .block .minicalendar {margin:5px 0 10px 0;}
/* la quadrettatura del calendario */
.path-calendar .calendartable th,
.path-calendar .calendartable td {border:1px [[setting:blockcolumnbgc]] solid;}
/* il rilievo del giorno corrente nel minicalendar */
/*.path-calendar .calendartable td.today {border:2px #444444 solid;}*/
.path-calendar .minicalendar td.today {border:2px #444444 solid;}
/* il bordo del generico evento nella lista a centro pagina */
.path-calendar .maincalendar .eventlist .event {border: 1px [[setting:blockcolumnbgc]] solid;}
/* se c'è una duration... nel minicalendar */
.path-calendar .minicalendar .calendar_event_user,
.path-calendar .minicalendar .duration_user {border-bottom:2px #A1BECB dotted;}
.path-calendar .minicalendar .calendar_event_course,
.path-calendar .minicalendar .duration_course {border-bottom:2px #FF9966 dotted;}
.path-calendar .minicalendar .calendar_event_global,
.path-calendar .minicalendar .duration_global {border-bottom:2px #66D14D dotted;}
.path-calendar .minicalendar .calendar_event_group,
.path-calendar .minicalendar .duration_group {border-bottom:2px #FBBB23 dotted;}
/* se c'è una duration... nel calendartable */
/* attento: non servono perché potrei avere più di una duration */
/* per questo la casella non va segnata con un border-bottom */
/* ma vanno riporati gli eventi al suo interno */
.path-calendar .maincalendar .calendarmonth th,
.path-calendar .minicalendar th {background:url([[pix:theme|gradient-sb]]) repeat-x 0 0;}
/* i settaggi del calendario del blocco */
/* la quadrettatura del calendario */
.calendartable th,
.calendartable td {border:1px [[setting:blockcolumnbgc]] solid;}
/* il rilievo del giorno corrente nel calendario del blocco */
.calendartable .today {border:2px #444444 solid;}
/* se c'è una duration... nel minicalendar */
.calendartable .calendar_event_user,
.calendartable .duration_user {border-bottom:2px #A1BECB dotted;}
.calendartable .calendar_event_course,
.calendartable .duration_course {border-bottom:2px #FF9966 dotted;}
.calendartable .calendar_event_global,
.calendartable .duration_global {border-bottom:2px #66D14D dotted;}
.calendartable .calendar_event_group,
.calendartable .duration_group {border-bottom:2px #FBBB23 dotted;}
+536
View File
@@ -0,0 +1,536 @@
/************************************************************************
Non sono riuscito a trovare un modo per sovrascrivere la regola
border: 2px solid #ddd;
presente nel file
/theme/canvas/style/core.css
Per questo questo file è stato creato a partire dalla copia del
foglio di stile core.css del tema canvas, ed è stato adeguato alle
esigenze del tema corrente.
************************************************************************/
.sitetopic {
border: none;
}
.headingblock {
border-bottom: 1px solid #ddd;
font-size: 1.3em;
color: #333;
}
#notice {
text-align: center;
}
.noticebox,
.expired,
.notopenyet,
.notifysuccess,
.notifyproblem,
.errorbox,
.continuebutton,
.singlebutton,
.buttons,
.singleselect {
text-align: center;
margin: 1em 0;
}
.navbutton .singlebutton {
margin: 0;
}
.generalbox {
border-color: #ddd;
}
.noticebox .generalbox {
border: none;
margin:2em 0;
}
.expired,
.notopenyet {
border: none;
color: #f00;
}
.buttons .singlebutton input {
margin: 0 1em;
}
.initialbar {
text-align: center;
}
.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
padding-right: 0;
}
.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
padding-left: 0;
}
input[type="text"],
input[type="password"],
textarea {
width: auto;
padding: 2px 0 2px 0;
margin: 5px 0 5px 0;
}
input[type="checkbox"],
input[type="radio"] {
margin-right: 7px;
}
/* Login
------------------------*/
.loginbox {
margin: 15px 25%;
}
.loginbox .loginerrors {
color: #f00;
}
.loginbox .loginform {
margin: 15px auto 0;
width: 50%;
}
.loginbox .loginform .form-label {
float: none;
width: 100%;
margin: 0 auto;
text-align: left;
}
.dir-rtl .loginbox .loginform .form-label {
text-align: right;
}
.loginbox .loginform .form-input {
float: none;
width: 100%;
margin: 0 auto;
}
.loginbox .loginform .form-input #username,
.loginbox .loginform .form-input #password {
width: 50%;
color: #000;
}
.loginbox .loginform .form-input #loginbtn {
margin: 0.5em auto;
}
.loginbox .forgetpass {
margin: 1em 0 0;
font-size: 0.95em;
}
.loginbox.twocolumns {
width: 90%;
margin-left: 5%;
}
.loginbox .guestsub {
border-top: 1px solid #DDDDDD;
margin: 5px 20%
}
.loginbox.twocolumns .loginpanel {
border-color: #ddd;
padding-right: 0.5%;
}
.loginbox.twocolumns .signuppanel {
padding-left: 1%;
width: 48%;
}
#page-course-loginas #notice {
border: none;
}
#page-login-forgot_password .generalbox {
margin: 0 auto 1.5em;
width: 75%;
padding: 10px;
}
#page-login-signup .mform {
width: 85%;
margin: 0 auto;
}
#page-login-signup .mform .fitem .fitemtitle {
width: 20%;
}
#page-login-signup .mform .fitem .felement {
margin-left: 21%;
}
/* User
-----------------------*/
.userinfobox {
border-color: #ddd;
padding: 0
}
.userinfobox .content {
text-align: left;
padding-left:10px
}
.userinfobox .links {
vertical-align: top;
background: #f4f4f4;
padding-left: 10px;
}
.userinfobox .links a {
display: block;
text-align: left;
}
.profilepicture {
float: left;
margin-right: 10px;
}
.descriptionbox {
margin-left: 110px;
border: 1px solid #ddd;
padding: 10px;
}
.path-user .description {
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.userprofile .list {
margin-top: 10px;
}
.userprofile .list td {
padding-top: 3px;
padding-bottom: 3px;
}
.userprofile .list .c0 {
padding-left: 0;
font-weight: bold;
}
#page-user-view .buttons {
text-align: center;
width: 70%;
margin: 0 auto;
}
#page-user-view .buttons div {
padding: 0 0 10px;
}
#page-user-index .controls {
width: 100%
}
#page-user-index .controls .singleselect {
margin: 0;
}
.rolesform {
text-align: center;
margin: 1em 0;
}
#participantsform {
text-align: center;
}
#participants {
width: 100%;
margin: 1em auto 0;
}
#participants th,
#participants td {
vertical-align: middle;
}
.groupinfobox {border-color: #DDDDDD;width: 60%;margin-left: 20%;margin-right: 20%;}
/* Notes
------------------------*/
.path-notes .generalbox {
border: none;
}
/* Roles
------------------------*/
.path-admin-roles .generaltable {
/* width: 65%; hiding because it's causing problems on role/assign */
}
.path-admin-roles .generaltable th {
vertical-align: middle;
}
.path-admin-roles .generaltable .lastcol {
width: 15%;
}
.path-admin-roles .backlink {
text-align: center;
}
/* Blogs
------------------------*/
.blog_entry .audience {
color: #444;
margin: 0 0 0.5em;
font-size: 0.9em;
}
.blog_entry .tags {
margin-bottom: 0.5em;
}
/* Tags
------------------------*/
#big-tag-cloud-box {
padding: 10px;
}
#tag-management-box {
text-align: center;
}
.tag-management-form {
border: none;
padding: 0 0 1em;
}
#tag-management-list {
margin: 1em 0
}
#page-tag-index #tag-blogs {
border-width: 0 0 1px;
width: 65%;
margin: 1em auto;
}
#tagblogentries {
margin: 0 0 1em;
}
#tagblogentries li {
list-style: none;
padding: 0.25em 0;
margin: 0
}
#big-tag-cloud-box {
border: none;
}
#tag-user-table {
width: 95%;
margin: 0 auto;
border-width: 0 0 1px;
}
.managelink {
text-align: right;
}
#page-tag-index .headingblock {
text-align: center;
margin-bottom: 0;
}
#page-tag-index #tag-management-box {
border-bottom: 1px solid #ddd;
padding: 4px 0;
}
#page-tag-index .relatedpages {
text-align: center;
}
#page-tag-manage .lastinitial {
margin-bottom: 0.5em;
}
#page-tag-manage .green {
text-align: center;
padding: 0 0 1em;
}
/* YUI overlays
------------------------*/
#helppopupbox {
z-index: 99999 !important;
}
/* Embedded Pages
------------------------*/
.pagelayout-embedded {
text-align: center;
background-color: #fff;
background-image: none;
}
.pagelayout-embedded #content {
padding-top: 30px;
}
/* Forms
-----------------------*/
.mform .fsubmit {
text-align: center;
padding: 2px;
}
.form-label .form-shortname {
font-size: 0.8em;
color: #777;
}
.form-description {
font-size: 0.95em;
color: #444;
}
.mform .hidden .fitem .fgroup {
width: 100%;
text-align: center;
margin: 1em 0;
}
.path-backup .mform .hidden .fitem .fgroup {
text-align: left;
}
.path-backup .mform .grouped_settings {
margin:1em;
}
.path-backup .mform .grouped_settings .grouped_settings {
margin:0;
}
/* Comments
-----------------------*/
.comment-list li {
background: #eee !important;
list-style: none;
}
/* Gradebook
----------------------*/
.path-grade h1.headerheading {
text-align: left; /* Strangely necessary TODO: find bug */
}
.gradestable .lastrow th.header {
background: #ddd;
}
.gradestable .lastrow td.cell {
background: #eee !important;
}
.user-grade td.b1t,
.user-grade td.baggt {
background: #ddd !important;
}
#page-grade-edit-scale-index .generaltable {
margin: 1em auto;
}
#page-grade-report-grader-preferences .generalbox {
border: none;
}
.path-grade-report-grader form {
text-align: left;
}
/* Footer
-----------------------*/
#page-footer .logininfo {
padding: 1em 0;
}
#page-footer .homelink,
#page-footer .sitelink {
padding: 1em 0;
}
.homelink a {
text-decoration: none;
border-top: 1px solid #cecece;
border-bottom: 2px solid #8a8a8a;
border-left: 1px solid #cecece;
border-right: 2px solid #8a8a8a;
}
.homelink a:hover {
text-decoration: none;
border-bottom: 1px solid #cecece;
border-top: 2px solid #8a8a8a;
border-right: 1px solid #cecece;
border-left: 2px solid #8a8a8a;
}
/**
* Enrol - TODO: tidy up styles here
*/
.userenrolment {font-size:90%;border:1px solid #E3DFD4;}
.userenrolment tr.r0 {background-color:#F9F9F9;}
.userenrolment tr.r1 {background-color:#F3F3F3;}
.userenrolment td {border:1px solid #E9E9E9;border-top-color:#F6F6F6;border-right-color:#EEE;border-left-color:#F3F3F3;}
.userenrolment td.c0 {border-left-color:#E3DFD4;}
.userenrolment td.c4 {border-right-color:#E3DFD4;}
.userenrolment .col_userdetails {padding:3px;min-width:35%;}
.userenrolment .col_role .roles {position:relative;}
.userenrolment .col_role .role {line-height:10px;font-size:10px;}
.userenrolment .col_role .role a img {height:8px;}
.userenrolment .col_role .addrole {background-color:#DDD;border:1px outset #EEE;-moz-border-radius:5px;}
.userenrolment .col_group {max-width:300px;}
.userenrolment .col_group .group {line-height:10px;font-size:10px;}
.userenrolment .col_group .group a img {height:8px;}
.userenrolment .col_group .addgroup {background-color:#DDD;border:1px outset #EEE;-moz-border-radius:5px;}
.userenrolment .col_enrol {max-width:300px;}
.userenrolment .col_enrol .enrolment {border:1px outset #E6E6E6;background-color:#EEE;line-height:10px;font-size:10px;-moz-border-radius:5px;}
.path-enrol .enrolusersbutton,
.path-enrol .enrolcohortbutton {float:left;}
.path-enrol .enrolusersbutton.instance1,
.path-enrol .enrolcohortbutton.instance1 {float:right;}
/* Registration */
#page-admin-registration-hubselector .registration_textfield {width: 400px;}
/**
* Redirect
*/
.pagelayout-redirect #content {text-align:center;margin-top:10%;margin-bottom:10%;}
+122
View File
@@ -0,0 +1,122 @@
/** Course formats **/
.course-content .section li.activity {margin:7px 0;}
.course-content .header {background-image:url([[pix:theme|gradient_h]]);background-repeat:repeat-x;border-top:1px #C6BDA8 solid;}
.course-content h2.header {padding-left:1em;}
.course-content ul.weeks li.section {border:1px solid #DDD;}
.course-content ul.weeks li.section .content {background-color:#FAFAFA;padding:5px 10px;}
.course-content ul.weeks li.section .content h3 {margin:0;color:#777;font-weight:normal;}
.course-content ul.weeks li.section .left {padding:5px 0;}
.course-content ul.weeks li.section .right {padding:5px 0;}
/** Course **/
.coursebox {border:1px solid #DDD;border-color:#DDDDDD;}
.coursebox .info {margin:5px;font-size:1em;}
.coursebox .info .name {margin:3px 0;}
.coursebox .info .teachers {margin:0 1em;font-size:0.9em;}
.coursebox .cost {font-size:0.9em;padding-top:20px;}
.coursebox .summary {margin:5px;font-size:0.9em;}
#page-course-recent h2.main {font-size:1.1em;}
#page-course-recent .user {font-size:0.75em;}
#page-course-recent .grade {font-style:italic;font-size:0.9em;}
#page-course-recent .forum-recent .reply .title {font-style:italic;font-size:0.9em;}
#page-course-recent .forum-recent .discussion .title {font-weight:bold;font-style:italic;font-size:0.9em;}
.path-course-view .availabilityinfo {font-size:0.85em;color:#aaa;}
.path-course-view .availabilityinfo strong {font-weight:normal;color:black;}
.path-course-view .dimmed_text img {opacity:0.3;filter:alpha(opacity='30');}
.path-course-view .section {font-size:0.95em;line-height:1.2em;}
.path-course-view .section .activity {padding:0.2em 0;}
.path-course-view .section .activity a {line-height:1em;}
.path-course-view .section .weekdates {margin:0;font-weight:normal;font-size:1em;}
.path-course-view .section .groupinglabel {color:#666666;}
.path-course-view .section .left {font-weight:bold;}
.path-course-view .weeks .section,
.path-course-view .topics .section,
.path-course-view .section td {border-color:#DDDDDD;}
.path-course-view .weeks .content ,
.path-course-view .topics .content,
.path-course-view .weeks .section,
.path-course-view .topics .section {background:transparent;}
.path-course-view .section td.side {background:#FFFFFF;}
.path-course-view .weeks .current,
.path-course-view .topics .current,
.path-course-view .current td.side {background:#FFD991;}
.path-course-view .weeks .hidden,
.path-course-view .topics .hidden,
.path-course-view .hidden td.side {background:#DDDDDD;}
.path-course-view .section .weekdates {color:#777777;}
.path-course-view .weeks .weekdates ,
.path-course-view .topics .weekdates {color:#333333;}
.weeks li.section ,
.topics li.section {border-style:solid;border-width:1px;}
.weeks .content,
.topics .content {padding:5px;}
.categoryboxcontent {border-color:#DDDDDD;}
#page-course-user .graph {text-align:center;}
#page-course-user .section {border-color:#AAAAAA;}
#page-course-user .info {text-align:center;}
#page-admin-report .plugin,
#page-course-report .plugin,
#page-course-import .plugin {margin-bottom:20px;margin-left:10%;margin-right:10%;border:1px solid #cecece;background-color:#fdfdfd;}
.path-course-view .unread {background:#9EBEFF;}
.path-course-view .completionprogress {font-size:0.80em; padding:8px 26px 5px 5px;}
#page-course-category .courseboxes,
#page-course-index .courseboxes {padding:20px;}
#page-course-report #content {padding-top:15px;padding-bottom:15px;}
#page-course-report #region-main p,
#page-course-report-log-index #region-main .info,
#page-course-report-log-indexlive #region-main .info,
#page-course-report-stats-index #region-main .graph {text-align:center;}
#page-course-report .logselectform,
#page-course-report .participationselectform,
#page-course-report-log-index .logselectform,
#page-course-report-participation-index .participationselectform {text-align:center;}
.addcoursebutton {text-align:center;}
.categorypicker {text-align:center;margin-bottom:10px;}
.path-course-report-outline .loginfo {text-align:center;margin:1em;}
.categorylist {width:90%;margin:0 auto;text-align:left;}
/* Course and category combo list on front page */
.course_category_tree .controls {margin-bottom:5px;text-align:right;float:right;}
.course_category_tree .controls div {padding-right:2em;font-size:75%;}
.course_category_tree .category {background-color:#FFF;background-image:url([[pix:theme|hgradient]]);background-repeat:repeat-x;border:1px solid #ddd;margin-bottom:10px;}
.course_category_tree .category .subcategories {background-color:inherit;padding-left:11px;border-width:1px 0 1px 1px;border-color:#FFF;border-style:solid;margin-top:8px;}
.course_category_tree .category.with_children .category_label {background-position:3px 3px;margin-left:6px;}
.course_category_tree .category_link .category_link {font-size:95%;}
.course_category_tree .category_label {padding-left:13px;}
.course_category_tree .category_link {display:block;margin:5px;font-size:120%;font-weight:bold;}
.course_category_tree .category .courses {background-color:inherit;}
.course_category_tree .category .courses .course_link {margin:5px;margin-right:100px;}
.course_category_tree .category .course {border:1px solid #f9f9f9;border-bottom-color:#eee;border-right-width:0;}
.course_category_tree .category .course:last-child {border-bottom-color:#f6f6f6;}
.course_category_tree .category .course.even {background-color:#f6f6f6;border-color:#eee;border-top-color:#f9f9f9;}
.course_category_tree .category .course_info {right:3px;top:3px;}
.course_category_tree .category .course:hover {background-color:#eee;}
.course_category_tree .category .category {margin:5px 0 5px 5px;border-right:0 transparent none;border-left:0 transparent none;border-bottom:1px transparent solid;}
/* Publication */
#page-course-publish-metadata .metadatatext {width:400px;}
#page-course-publish-metadata .hubscreenshot {
display:inline;
float:left;
margin-right:10px;
}
#page-course-publish-metadata .hubscreenshot img {vertical-align:bottom;}
#page-course-publish-metadata .hubdescription {}
#page-course-publish-metadata .hubinfo {display:block; margin-bottom:20px;}
#page-course-publish-metadata .hublink {}
#page-course-publish-backup .courseuploadtextinfo {text-align:center;}
#page-course-publish-backup .sharecoursecontinue {text-align:center;}
-54
View File
@@ -1,54 +0,0 @@
/** Core overrides **/
body.has_dock {margin-left:30px;margin-right:30px;}
/* This CSS is for the dock */
.dock {width:30px;position:fixed;top:0px;left:0px;height:100%;background-image:url([[pix:theme|vgradient]]);background-repeat: repeat-y;background-position:100% 0;background-color:#DDD;border-right:1px solid #AAA;z-index:2002;}
.dock .dockeditem {background-color:#DDD;}
.dock .dockeditem .firstdockitem {margin-top:1em;}
.dock .dockeditem .dockedtitle {border-bottom:1px solid #AAA;border-top:1px solid #CCC;cursor:pointer;background-image:url([[pix:theme|vgradient]]);background-position:90% 0;background-repeat: repeat-y;}
.dock .dockeditem .dockedtitle.activeitem {background-position:80% 0;}
.dock .dockeditem .dockedtitle h2 {font-size:0.8em;line-height:100%;text-transform:uppercase;text-align:center;margin:12px 0px;}
.dock .block_tree .current_branch {}
.dock .controls {position:absolute;bottom:1em;text-align:center;width:100%;}
.dock .controls img {cursor:pointer;}
.dock .bd.oversized_content {overflow-y:auto;overflow-x:visible;height:inherit;}
.dock .bd.oversized_content .content {margin:6px 6px 6px 0px;padding-bottom:6px;}
.dock .yui-panel .hd {text-align:right;border-width:0 0 1px 0;padding:3px 5px;}
.dock .yui-panel .hd .commands img {margin-right:2px;}
/**.dock .bd .content .blockcommands {text-align:right;border:1px solid #AAA;border-width:0 0 1px 1px;background-image:url([[pix:theme|hgradient]]);background-repeat: repeat-x;}**/
/** YUI overrides **/
.yui-skin-sam .dock .yui-panel {border-width:1px 2px 1px 1px;border-color:#AAA;min-width:150px;}
.yui-skin-sam .dock .yui-panel .bd {border-width:0;background-color:#FAFAFA;}
/** Override the above if the dock is on the right **/
.dock.dock_right_vertical {left:auto;right:0px;border-width:0px 0px 1px 5px;}
.dock.dock_right_vertical .commands {text-align:right;}
.yui-skin-sam .dock.dock_right_vertical .yui-panel {border-width:1px 0 1px 5px;}
/* block expansion code */
.block_js_expansion .block_tree {overflow-x:scroll;}
.block_js_expansion.mouseover .content {width:200%;z-index:1000;position:relative;}
.block_js_expansion.mouseover .content .block_tree {width:100%; background-color:#FAFAFA; padding-bottom:0px;}
/* CSS for shadows */
.divshadow div {position:absolute;width:3px;height:3px;background-color:#333;}
.divshadow .shadow_top {top:-3px;right:0px;width:100%;}
.divshadow .shadow_bottom {bottom:-3px;right:0px;width:100%;}
.divshadow .shadow_left {top:0px;left:-3px;height:100%;}
.divshadow .shadow_right {bottom:0px;right:-3px;height:100%;}
.divshadow .shadow_top_right {top:-3px;right:-3px;}
.divshadow .shadow_bottom_right {bottom:-3px;right:-3px;}
.divshadow .shadow_top_left {top:-3px;left:-3px;}
.divshadow .shadow_bottom_left {bottom:-3px;left:-3px;}
/** IE stylings */
.ie6 .block .block_tree {width:160px;overflow-x:scroll;}
.ie7 .block .block_tree {overflow-x:scroll;}
.ie6 .block_tree .tree_item {width:100%;}
.ie6 .dock {position:absolute;}
.ie6 .dock hr {display:none;margin:0px;height:0px;padding:0px;}
.ie6 .dock li p {background-color:inherit;}
.ie6 .dock .bd.oversized_content .content, .ie7 .dock .bd.oversized_content .content {padding-bottom:0px;}
.ie6 .block_js_expansion.mouseover .content, .ie7 .block_js_expansion.mouseover .content{ padding-bottom:2px;}
.ie6 .dock .bd.oversized_content {width:100%;}
.ie7 .dock .bd.oversized_content {width:400px;}
-2
View File
@@ -1,2 +0,0 @@
body, div, p, li, input, option, textarea {font-size:8pt;line-height:1.5em;}
body, div, p, li, input, option, textarea, h1, h2, h3, h4, h5 {font-family:Arial, Helvetica, sans-serif;}
+114
View File
@@ -0,0 +1,114 @@
/***
*** Core
***/
html, body {
font-family:Arial, Verdana, Helvetica, sans-serif;
margin:0;
padding:0;
background-color:#EFEFEF;
font-size:13px;
}
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
h1 {font-size:1.4em;font-weight:bold;}
h2 {font-size:1.3em;}
h3 {font-size:1.2em;}
h4 {font-weight:bold;}
h2.main, h3.main, h4.main {
margin:0;
padding:0;
text-align: center;
}
#headerlogo {margin:0.3em;float:left;top:1em;z-index:1;}
h1.headerheading {margin:14px 11px 8px 11px;float:left;font-size:2em;z-index:1;}
/* headermenu */
.headermenu {float:right;top:1em;z-index:2;}
#dock {background-color:#E3DFD4;border-right:1px #000 dashed;}
/* navbar */
.navbar {width:auto;padding-top:0.35em;padding-bottom:0.15em;background-image:url([[pix:theme|bg_bread]]);}
.navbar li span {color:#E3DFD4;}
.navbar li a:link, .navbar li a:visited {color:white;}
/* navbutton */
.navbutton {padding-right:0.5em;}
.navbutton table td {padding:0;}
/* breadcrumb */
.breadcrumb {margin-left:0.8em;}
/* generalbox */
.generalbox {border-color:#E3DFD4;}
/* tables */
.editcourse th,
.editcourse td,
.generaltable th,
.generaltable td,
#page-admin-course-category .generalbox th,
#page-admin-course-category .generalbox td,
#attempts th,
#attempts td,
.environmenttable th,
.environmenttable td,
.forumheaderlist td,
.forumheaderlist th {
border: 1px solid #E3DFD4;
border-collapse: collapse;
}
th.header,
.formtable tbody th,
.generalbox th,
.generaltable th.header {background-image:url([[pix:theme|gradient_h]]);background-repeat:repeat-x;border-top:1px #C6BDA8 solid;background-color:#E3DFD4;}
/*#modules, .compatibleblockstable {margin-left:auto; margin-right:auto;} waiting for MDL-26760*/
/* admin pages */
div#chooseuser {border:0 transparent none;}
table.groupmanagementtable,
table.groupmanagementtable tr,
table.groupmanagementtable td {border-width:0px;}
table.groupmanagementtable td#buttonscell {vertical-align:middle;text-align:center;}
table#defineroletable tr.rolecapheading {background-image:url([[pix:theme|gradient_h]]);background-repeat:repeat-x;}
/*table#defineroletable tr.rolecap {border-top:1px #F30 dashed;}*/
tr.rolecap {border-top:1px #F30 dashed;}
tr.rolecapheading + tr.rolecap {border-top:none;}
/* course categories */
#page-admin-course-index .editcourse td div.singleselect {text-align:left;}
/* course */
ul.topics .section span.commands {margin-left:2em;} /* distanza dei comandi dagli elementi del corso */
.mform fieldset {border:1px #DDD solid;}
/* block */
.block {border:1px #C6BDA8 solid;margin-bottom:0.5em;}
.block .header h2 {margin:0;padding-left:0.3em;}
.block .header .title {background-image:url([[pix:theme|gradient_h]]);background-repeat:repeat-x;clear:both;line-height:2em;}
.block .header .title .commands {padding-left:0.3em;text-align:right;}
.block .content {background-color:[[setting:blockcontentbgc]];}
/* block login */
.block_login .btn {margin-top:0.5em;text-align:center;}
/* pagelayout-report */
.pagelayout-report #page-header {float:left;}
.pagelayout-report #page-content {overflow:hidden;}
/* page-footer */
#page-footer {text-align:center;width:100%;padding:0;}
.noframefooter {background-color:#FFF;clear: both;float: left;width:100%;}
#page-footer-content {text-align:center;border:7px #E3DFD4 double;margin:0;padding:0.5em;}
#page-footer .logininfo {padding:0.3em 0 0.7em 0;}
#page-footer .moodledocs {text-align:center;background-color:#EFEFEF;padding:0.7em 0 0.8em 0;}
/** Custom CSS **/
[[setting:customcss]]
-126
View File
@@ -1,126 +0,0 @@
/***
*** Core
***/
html, body {
background-color: #FBF9FA;
}
.block .header {
}
.block .header .title {
background-image: url([[pix:theme|gradient_h]]);
background-repeat: repeat-x;
clear: both;
line-height: 2em;
}
.block .header .title .block_action {
margin-top: 4px;
}
.block .header .title h2 {
}
.block .header .title .commands {
margin-left: 4px;
}
.block .header .title .commands a {
margin: 0 2px;
}
.block .content {
display:block;
padding:4px;
}
body {
font-family: Helvetica, Arial, Verdana, sans-serif;
font-size: 0.95em;
line-height: 1.4;
margin: 0;
padding: 0;
}
#page-site-index {
display:block;
}
#page {
width:97%;
background-image: url([[pix:theme|roundcorner/header]]);
margin:15px 1.5% 0;
background-position:0 0;
background-repeat:repeat-x;
min-width: 934px;
}
#headerenvelop { /* Inside Header Middle */
color:black;
height: 105px;
/*background-color: #E3DFD4;*/
}
#logo {
float: left;
/*display:inline;*/
}
.sitelogo {
margin:5px 0 -4px 3px;
}
/* Header */
#header, #header-home {
padding:0 17px;
background-color: #E3DFD4;
margin-left:17px;
margin-right:17px;
}
#custommenu, .navbar {
margin-right: 17px;
margin-left: 17px;
}
.yui3-skin-sam .yui3-menu-content {border-right:none;border-left:none;}
.navbar {
width:auto;
padding:3px 1em;
background-image: url([[pix:theme|bg_bread]]);
}
/* content */
#page-content {
float: none;
width: auto;
margin-right: 17px;
margin-left: 17px;
background-color: #FFF;
}
.shrinker { /* To keep content off of the background image */
margin:1px 0 0 0;
}
/* Link Colors */
a:link, a:visited {
color:#375faf;
}
a:hover, a:active {
color:#304469;
}
#headerenvelop a:link, #headerenvelop a:visited {
color:#375FAF;
}
.clearfix {
min-width: 0;
/* overflow: hidden; */
display:block;
}
+158
View File
@@ -0,0 +1,158 @@
/****
*
* #frametop
* #framebottom
* ! #frametopright
* | | <div>---/<div>
* ! /#frametopright
* | #frameleft
* | | #frameright
* | | | #wrapper
* | | | | #page-header
* | | | | | #headerlogo
* | | | | | | <img>
* | | | | | h1#headerheading---/h1#headerheading
* | | | | | #headermenu---/#headermenu
* | | | | /#page-header
* | | | | #custommenu---/#custommenu
* | | | | .navbar clearfix---/.navbar clearfix
* | | | | .breadcrumb---/.breadcrumb
* | | | | .navbutton---/.navbutton
* | | | | /.navbar clearfix
* | | | | #page-content
* | | | | .
* | | | | .
* | | | | .
* | | | | /#page-content
* | | | | .clearfix---/.clearfix
* | | | /#wrapper
* | | #frameright
* | /#frameleft
* | #framebottomright
* | | <div>---/<div>
* ! /#framebottomright
* /#framebottom
* /#frametop
*
* The body tag may also contain one of three layout specific classes that describe
* the regions of the page and allow us to theme more easily.
*
* default (no class) = Content + side pre + side post
* side-pre-only = Content + side pre
* side-post-only = Content + side post
* content-only = Content
*
****/
#wrapper,
#footerwrapper {
padding:0 17px 0 17px;
float:none; /* serve a qualcosa? */
/*clear:both;*/
/*overflow:hidden;*/
}
#frametop,
#footerframetop {
background-image:url([[pix:theme|roundcorner/header]]);
margin:15px 15px 0;
background-position:0 0;
background-repeat:repeat-x;
min-width:934px;
}
#frametopright,
#footerframetopright { /* Frame background top right */
background-image:url([[pix:theme|roundcorner/header_r]]);
background-repeat:no-repeat;
background-position:100% 0;
text-align:left;
height:17px;
margin:0 0 0 17px;
}
#frametopright div,
#footerframetopright div { /* Frame background top left */
background-image:url([[pix:theme|roundcorner/header_l]]);
font-size:1px;
line-height:1%;
height:17px;
background-repeat:no-repeat;
background-position:0 0;
background-color:transparent;
position:relative;
width:17px;
margin-left:-17px;
}
#frameleft,
#footerframeleft { /* Frame background left */
background-image:url([[pix:theme|roundcorner/body_l]]);
background-repeat:repeat-y;
background-position:0 0;
background-color:#FFF;
}
#frameright,
#footerframeright { /* Frame background right */
background-image:url([[pix:theme|roundcorner/body_r]]);
background-repeat:repeat-y;
background-position:100% 0;
background-color:transparent;
/*margin-left:17px;*/
/*padding-right:17px;*/
}
#framebottomright,
#footerframebottomright { /* Frame background bottom right */
background-image:url([[pix:theme|roundcorner/footer_r]]);
background-repeat:no-repeat;
background-position:100% 0;
text-align:left;
margin:0 0 0 17px;
}
#framebottomright div,
#footerframebottomright div { /* Frame background bottom left */
background-image:url([[pix:theme|roundcorner/footer_l]]);
font-size:1px;
line-height:1%;
height:17px;
background-repeat:no-repeat;
background-position:0 0;
background-color:transparent;
position:relative;
width:17px;
margin-left:-17px;
}
#framebottom,
#footerframebottom { /* Bottom Middle */
background-image:url([[pix:theme|roundcorner/footer]]);
background-repeat:repeat-x;
background-position:0 100%;
background-attachment:scroll;
background-color:transparent;
}
/*******************************************************************/
/* Footer section */
/*******************************************************************/
#footerwrapper {
background-color:white;
margin:0 17px 0 17px;
}
#footerframetop {
margin-top:0;
}
#footerwrapper p,
#footerwrapper div {
margin:0;
}
/*******************************************************************/
/* End of footer section */
/*******************************************************************/
-66
View File
@@ -1,66 +0,0 @@
div.headerleft div { /* Page background top left */
background-image: url([[pix:theme|roundcorner/header_l]]);
font-size:1px;
line-height:1%;
height:17px;
background-repeat:no-repeat;
background-position:0 0;
background-color:transparent;
position:relative;
width:17px;
margin-left:-17px;
}
div.headerleft { /*Page background top right */
background-image: url([[pix:theme|roundcorner/header_r]]);
background-repeat:no-repeat;
background-position:100% 0;
text-align:left;
height:17px;
margin:0 0 0 17px;
}
div.bodyleft { /* Page background left */
background-image: url([[pix:theme|roundcorner/body_l]]);
background-repeat:repeat-y;
background-position:0 0;
background-color:transparent;
}
div.bodyright { /* Page background right */
background-image: url([[pix:theme|roundcorner/body_r]]);
background-repeat:repeat-y;
background-position:100% 0;
background-color:transparent;
}
/* Page background shading and curvy corners at bottom of screen */
div.contentfooter div { /* Bottom Left */
font-size:1px;
line-height:1%;
height:17px;
background-repeat:no-repeat;
background-position:0 0;
background-color:transparent;
position:relative;
width:17px;
margin-left:-17px;
background-image: url([[pix:theme|roundcorner/footer_l]]);
}
div.contentfooter { /* Bottom Right */
background-image: url([[pix:theme|roundcorner/footer_r]]);
background-position:100% 0;
text-align:left;
margin:0 0 0 17px;
background-repeat:no-repeat;
}
#page2 { /* Bottom Middle */
background-image: url([[pix:theme|roundcorner/footer]]);
background-repeat: repeat-x;
background-position: 0 100%;
background-attachment: scroll;
background-color: transparent;
}
-239
View File
@@ -1,239 +0,0 @@
a:link {text-decoration:none;color: #697F55;}
a:visited {text-decoration:none;color: #697F55;}
a:hover {text-decoration:underline;}
img.icon,
img.iconhelp {vertical-align:middle;}
#page {overflow:visible}
/*#page #page-content {background-color:#FFF;border:1px solid #E3DFD4;}*/
/******************/
#page-header {background-color: #E3DFD4; color:#FFF;border:1px solid #E3DFD4;border-bottom: none;}
.hasnavbar #page-header {border-bottom-width:0px;}
#page-header .headermain span {color:#C8C9C7;}
#page-header .navbar {background-image: url([[pix:theme|bg_bread]]);width:100%;}
#page-header .navbar {color:#000;}
#page-header .navbar a:link {color:#fff;}
#page-header .navbar a:visited {color:#fff;}
#page-header .navbar .breadcrumb {margin:6px 1em;float:left;}
#page-header .navbar .navbutton {float:right;margin:5px 1em;}
#region-pre .region-content{background-color:#E3DFD4;border-top:6px #E3DFD4 solid;}
#region-pre {margin-top:-6px;}
/*#region-post .region-content {background-color: #E3DFD4;}*/
#region-post-box {background-color: #E3DFD4;}
/** General **/
.generalbox {border: 1px solid #DDDDDD;}
.generaltable td {border-width:0px;}
.sitetopic {border-width:0px;}
.headingblock {margin-bottom:10px;border-bottom:1px solid #E3DFD4;background-color:#FFF;padding:4px 5px;}
.coursebox {width:100%;margin:10px 0px;border-bottom:1px solid #E3E3E3;overflow:hidden;padding-bottom:10px;}
.coursebox .info {width:35%;float:left;}
.coursebox .summary {width:60%;float:right;}
.course-content ul {margin:0px;}
.course-content .headingblock.outline {margin-top:2em;}
.course-content .section.main {border:1px solid #E3E3E3;margin-bottom:10px;}
.course-content .section.main .left.side {float:left;width:20px;padding:5px;}
.course-content .section.main .right.side {float:right;width:20px;padding:5px;}
.course-content .section.main .content {margin:0px 30px 10px 30px;}
.course-content .section.main .content .section_add_menus {text-align:right;}
#course-user .section {border:1px solid #DDD;margin:0px 5% 1.5em 5%;}
#course-user .section h2,
#course-user .section .content {margin:5px 1em;}
#course-user .section table td {border:0px;}
.generaltable {border:1px solid #DDD;}
.generaltable .cell {background-color:#FFF;border:1px solid #EEE;border-collapse: collapse;}
.generaltable .header {background-color:#EEE;border:1px solid #EEE;font-weight:bold;}
/** Login **/
.loginbox {margin-top:15px;margin-bottom:15px;}
.loginbox .loginform {margin-top:15px;}
.loginbox .loginform .form-label {width:39%;float:left;text-align:right;}
.loginbox .loginform .form-input {width:60%;float:right;text-align:left;}
.loginbox .loginform .form-input input {width:6em;}
.loginbox.twocolumns {border:1px solid #DDD;}
.loginbox.twocolumns .loginpanel {float:left;width:49%;text-align:center;}
.loginbox.twocolumns .signuppanel {float:left;width:50%;border-left:1px solid #DDD;}
.loginbox.twocolumns .signuppanel h2 {text-align:center;}
.loginbox.twocolumns .signuppanel div {margin:1em;}
.loginbox.twocolumns .signuppanel div li {font-size:90%;}
.loginbox .loginsub {margin-left:10%;margin-right:10%;padding:10px;margin-bottom:5px;}
.loginbox .guestsub {margin-left:10%;margin-right:10%;padding:10px;margin-bottom:5px;border-top:1px solid #DDD;}
/** Blocks **/
.block {border:1px solid #C8C9C7;background-color: #FEFEFE;margin-bottom:10px;overflow:hidden;}
.block h1,
.block h2,
.block h3,
.block h4 {margin:0px;}
.block .header {height:24px;margin:0;display:inline;}
.block .header .title {color: #000;}
.block .header .title h2 {margin: 0 0 0 4px;}
.block .content {background-color: white;}
/** Admin **/
.box.adminwarning {text-align:center;border:1px solid #C8C9C7;background-color:#E3E3E3;margin-bottom:1em;padding:10px 10%;}
.box.copyright {text-align:center;font-size:90%;padding:10px 10%;}
#adminsettings fieldset {border:1px solid #C8C9C7;background-color:#E3E3E3;}
#adminsettings fieldset .generalbox {margin:1em 0.5em;border-color:#C8C9C7;}
#adminsettings .form-buttons {margin-left:13em;}
.form-item {width:100%;margin:1em 1em 2em 1em ;}
.form-item .form-label {width:12.5em;text-align:right;float:left;margin-right:0.5em;}
.form-item .form-label .form-shortname {display:block;color:#666;font-size:75%;}
.form-item .form-setting {margin-left:13em;}
.form-item .form-setting .defaultsnext {display:inline;}
.form-item .form-setting .form-defaultinfo {display:inline;margin-left:0.5em;font-size:90%;color:#666;}
.form-item .form-description {margin:0.5em 1em 0.5em 13em;}
.form-item .form-textarea textarea {width:495px;}
#authmenu .informationbox {width:80%;margin-left:auto;margin-right:auto;margin-bottom:10px;border:1px solid #C8C9C7;padding:10px;}
#authmenu table td {border-width:0px;}
#categoryquestions {margin-left:auto;margin-right:auto;width:100%;}
#categoryquestions th,
.user th,
.user th.header,
.group th.header,
.admin table tr th,
.admin table tr th.header {background-color:#E3DFD4;color:#FFF;border:2px solid #E3DFD4;border-bottom-color:#111;}
.user th a:link,
#categoryquestions th a:link,
.group th a:link,
.admin table tr th a:link {color:#FFF;text-decoration:none;}
.user th a:visited,
#categoryquestions th a:visited,
.group th a:visited,
.admin table tr th a:visited {color:#FFF;text-decoration:underline;}
.user tr td.cell,
#categoryquestions tr td.cell,
.group tr td.cell,
.admin table tr td.cell {border:1px solid #C8C9C7;border-width:0px 1px;}
.user .r1 .cell,
#categoryquestions .r1 .cell,
.group .r1 .cell,
.admin table .r1 .cell {background-color:#EEE;}
#categoryquestions th, .user th, .user th.header, .group th.header, .admin table tr th, .admin table tr th.header {color:black; border-width:1px;}
#permissions th, td {border-bottom:1px solid #000000; padding:0.5em;}
#permissions tr {background-color:#EEEEEE;}
#permissions tr.rolecapheading {border-top: 1px black; background-color:#E3DFD4;}
.user th a:link, #categoryquestions th a:link, .group th a:link, .admin table tr th a:link {
color:black;
}
.admin .plugincompattable .r1 .cell {background-color:#FFF;}
.singlebutton,
.buttons {text-align:center;margin:20px;}
.buttons form {display:inline;}
.buttons div {display:inline;}
.buttons .singlebutton {display:inline;padding:5px;margin:0px;}
.admin .generalbox {background-color:#EEE;border-color:#C8C9C7;}
#admin-mnet-index table td,
#files-index .column-content table td {border-width:0px;}
/** Mforms **/
.mform fieldset {border-color:#C8C9C7;}
/** Tags **/
.tag-management-form {text-align:center;}
#tag-management-list {margin-top:1em;}
/** User **/
.userinfobox td {border-width:0px;vertical-align:top;}
.userinfobox .side {width:120px;text-align:center;}
.userinfobox .list .label {font-weight:bold;text-align:right;}
/** Forum **/
.forumheaderlist,
.forumpost {margin-top:15px;border:1px solid #DDD;background-color:#EEE;}
.forumpost .header {background-color:#C8C9C7;}
.forumpost .topic {padding:7px;}
.forumpost .topic .subject {font-weight:bold;}
.forumpost .topic .author {font-size:0.8em;}
.forumpost .left {background-color:#EEE;}
.forumpost .content {background-color:#FFF;border-top:1px solid #333;}
.forumpost .content .posting {padding:4px;}
.forumpost .options {background-color:#FFF;}
.forumpost .options .commands {font-size:0.9em;clear:both;padding:0.5em 5px 5px;text-align:right;}
.forumpost .content .link {font-size:0.9em;}
.forumpost .content .footer {font-size:0.9em;padding-top:0.5em;text-align:right;}
/** Calendar **/
.block.block_calendar_month td,
.block.block_calendar_month th {border-width:0px;font-size:10px;padding:1px;width:14%;line-height:18px;}
#calendar abbr,
.block.block_calendar_month abbr {border-bottom-width:0px;}
#calendar .weekend,
.block.block_calendar_month .weekend {color:#A00;}
#calendar .maincalendar .calendarmonth td.today,
.block.block_calendar_month .today {border:1px solid #444;}
#calendar .eventnone a,
.block.block_calendar_month .eventnone a {color:#444;}
#calendar {width:99%;margin:0px 1%;border-spacing:5px;border-collapse: separate;}
#calendar td,
#calendar th {border-width:0px;font-size:10px;padding:1px;width:14%;line-height:18px;vertical-align:top;}
#calendar .maincalendar {width:auto;border:1px solid #DDD;}
#calendar .maincalendar .heightcontainer {height:100%;position:relative;margin:1em;}
#calendar .maincalendar .header {padding:5px;font-weight:bold;}
#calendar .maincalendar .header .buttons {float:right;}
#calendar .maincalendar table {width:100%;}
#calendar .maincalendar .calendar-controls {width:100%;overflow:hidden;font-size:1.1em;}
#calendar .maincalendar .calendar-controls .previous {display:block;float:left;width:20%;}
#calendar .maincalendar .calendar-controls .current {display:block;float:left;width:60%;text-align:center;margin-top:0px;}
#calendar .maincalendar .calendar-controls .next {display:block;float:left;width:20%;text-align:right;}
#calendar .sidecalendar {width:200px;}
#calendar .sidecalendar h2,
#calendar .sidecalendar h3 {margin:5px;font-size:95%;}
#calendar .sidecalendar .block {border:1px solid #DDD;margin-bottom:10px;text-align:center;}
#calendar .sidecalendar .block table {margin:0px auto 5px auto;}
#calendar .sidecalendar .block .filters table {width:95%;margin:0px auto 1em auto;}
#calendar .sidecalendar .block .minicalendarblock {border-top:1px solid #DDD;}
#calendar .filters table {padding:2px;background-color: #EEE;border:1px solid #DDD;border-spacing:2px;border-collapse: separate;}
#calendar .filters table td {font-size:100%;width:auto;}
#calendar .filters .eventskey {border:1px solid #444;overflow:hidden;}
#calendar .calendar_event_global {background-color: #D6F8CD;}
#calendar .calendar_event_course {background-color: #FFD3BD;}
#calendar .calendar_event_group {background-color: #FEE7AE;}
#calendar .calendar_event_user {background-color: #DCE7EC;}
#calendar .maincalendar .calendarmonth {border-collapse: separate;}
#calendar .maincalendar .calendarmonth th {font-size:0.9em;border-bottom:2px solid #444;}
#calendar .maincalendar .calendarmonth td {border:1px solid #EEE;border-bottom-color:#CCC;border-right-color:#CCC;height:6em;}
#calendar .maincalendar .calendarmonth td div {margin:4px;font-size:0.9em;}
#calendar .maincalendar .calendarmonth td .day {font-weight:bold;}
#calendar .maincalendar .calendarmonth tr td:first-child {border-left-color:#CCC;}
#calendar .maincalendar .event {border-spacing: 0px;border:1px solid #DDD;background-color:#EEE;}
#calendar .maincalendar .event .picture {width:32px;text-align:center;}
#calendar .maincalendar .event .topic {width:auto;padding:5px;}
#calendar .maincalendar .event .side {width:32px;}
#calendar .maincalendar .event .description {width:auto;border-top:1px solid #DDD;border-left:1px solid #DDD;padding:5px;}
#calendar .maincalendar .bottom {text-align:center;}
#calendar .calendarmonth ul {margin:0px;padding:0px;}
#calendar .calendarmonth ul li {list-style: none;margin:0px;padding:2px;}
/** User **/
.user .rolesform,
.user .searchform,
.user #showall,
.user #participantsform {text-align:center;}
.user #participantsform table {margin-top:1em;}
.user #participantsform td {text-align:left;}
.user table.controls {margin:5px auto;border:1px solid #DDD;background-color:#EEE;border-collapse: collapse;}
.user table.controls td {border-width:0px;}
+39
View File
@@ -0,0 +1,39 @@
/*#custommenu .yui3-menu ul {background-image:url([[pix:theme|custommenubg]]);background-repeat:repeat-x;background-color:#e1e1df;}*/
#custommenu .yui3-menu {background-image:url([[pix:theme|custommenubg]]);background-repeat:repeat-x;background-color:#e1e1df;}
.yui3-skin-sam .yui3-menu-content,
.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content,
.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label,.yui3-skin-sam .yui3-menu-horizontal .yui3-menuitem-content{
border:0px none;
}
/*.yui3-menu ul{
background:url([[pix:theme|sprite]]) repeat-x 0 0;
}*/
.yui3-menu ul li ul{
background:#fff;
}
.yui3-menu ul li{
border-right:1px solid #ccc;
}
.yui3-menu ul li ul li{
border-right:none;
/*border-bottom:1px dashed #ccc;*/
padding:3px;
}
div.yui3-menu-content {
border:none !important;
}
ul.first-of-type li a {
border-top:none !important;
border-bottom:none !important;
}
ul.first-of-type li a:hover {
color:#003466;
}
+105
View File
@@ -0,0 +1,105 @@
/************************************************************************
questo file sovrascrive parzialmente
il corrispondente foglio di stile nel tema "base"
Lo ho ottenuto
- duplicando l'originale
- modificando quanto necessario
- cancellando quanto conservato dell'originale
************************************************************************/
/****
* Three column floating div layout with 2,1,3 column order
* Based on: http://matthewjamestaylor.com/blog/holy-grail-no-quirks-mode.htm
* And: http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm
*
* #page
* #page-header
* #page-content
* | #region-main-box
* | #region-post-box
* | #region-main-wrap
* | | #region-main
* | | .region-content
* | #region-pre
* | | .region-content
* | #region-post
* | | .region-content
* #page-footer
*
* The body tag may also contain one of three layout specific classes that describe
* the regions of the page and allow us to theme more easily.
*
* default (no class) = Content + side pre + side post
* side-pre-only = Content + side pre
* side-post-only = Content + side post
* content-only = Content
*
****/
#page-header {
background-color:[[setting:headerbgc]];
/* arrotonadamento angoli in alto dell'header */
-moz-border-radius:6px 6px 0px 0px; /* Firefox */
-webkit-border-radius:6px 6px 0px 0px; /* Safari, Chrome */
border-radius:6px 6px 0px 0px; /* CSS3 */
}
#page-content {
/* arrotonadamento angolo in basso a sx */
/* -moz-border-radius:0px 0px 0px 6px; /* Firefox */
/* -webkit-border-radius:0px 0px 0px 6px; /* Safari, Chrome */
/* border-radius:0px 0px 0px 6px; /* CSS3 */
background-color:[[setting:blockcolumnbgc]]; /* colore della colonna di sinistra */
float:none;
}
#page-content #region-main-box {
left:[[setting:blockcolumnwidth]];
background-color:#FFF;
}
#page-content #region-post-box {
margin-left:[[setting:minusdoubleblockcolumnwidth]]; /*-2*[[setting:blockcolumnwidth]]*/
/* arrotonadamento angolo in basso a dx */
/* -moz-border-radius:0px 0px 6px 0px; /* Firefox */
/* -webkit-border-radius:0px 0px 6px 0px; /* Safari, Chrome */
/* border-radius:0px 0px 6px 0px; /* CSS3 */
background-color:[[setting:blockcolumnbgc]]; /* colore del fondo della parte occupata dai contenuti della colonna centrale e della colonna dx */
}
#page-content #region-main {
margin-left:[[setting:doubleblockcolumnwidth]];/*2*[[setting:blockcolumnwidth]]*/
background-color:white; /* questo serve a togliere la curvatura dagli angoli della zona centrale */
}
#page-content #region-pre {
left:[[setting:blockcolumnwidth]]; /*400-[[setting:blockcolumnwidth]]*/
width:[[setting:blockcolumnwidth]];
background-color:[[setting:blockcolumnbgc]]; /* colore della colonna di sx */
}
#page-content #region-post {
width:[[setting:blockcolumnwidth]];
/* arrotonadamento angolo in basso a dx */
/* -moz-border-radius:0px 0px 6px 0px; /* Firefox */
/* -webkit-border-radius:0px 0px 6px 0px; /* Safari, Chrome */
/* border-radius:0px 0px 6px 0px; /* CSS3 */
background-color:[[setting:blockcolumnbgc]]; /* colore del fondo della parte occupata dai contenuti della colonna centrale e della colonna dx */
}
#page-content .region-content {
padding:0.6em 8px 0.1em 8px; /* definisco lo spazio sopra e sotto ai blocchi */
}
/** Only side pre **/
.side-pre-only #page-content #region-post-box {margin-left:-[[setting:blockcolumnwidth]];}
.side-pre-only #page-content #region-main {margin-left:[[setting:blockcolumnwidth]];}
/** Only side post **/
.side-post-only #page-content #region-post-box {margin-left:-[[setting:blockcolumnwidth]];}
.side-post-only #page-content #region-main {margin-left:[[setting:blockcolumnwidth]];}
.has_dock.side-post-only .page-middle #region-main {margin-left:[[setting:blockcolumnwidth]];}
/** Report layout **/
.pagelayout-report #report-main-content .region-content {margin-left:[[setting:blockcolumnwidth]];}
.pagelayout-report #report-region-pre {width:[[setting:blockcolumnwidth]];}
/** Correct for right to left languages **/
.dir-rtl.pagelayout-report #report-main-content .region-content {margin-left:0;margin-right:[[setting:blockcolumnwidth]];}
/** Stabalise IE6 behaviour on the report layout **/
/* aggiunti/sovrascritti da me */
.ie6.pagelayout-report #report-region-wrap {float:none;width:[[setting:blockcolumnwidth]];left:auto;position:absolute;top:0;}
+31
View File
@@ -0,0 +1,31 @@
/***
*** Core
***/
/* quiz */
#page-mod-quiz-edit div.quizpage .pagecontent {background-color:[[setting:blockcolumnbgc]];}
.questionbankwindow h2 {background-image:url([[pix:theme|gradient_h]]);background-repeat:repeat-x;border-top:1px #C6BDA8 solid;background-color:[[setting:blockcolumnbgc]];border-top:1px #C6BDA8 solid;}
#page-mod-quiz-edit .questionbankwindow div.header {background-color:transparent;}
#page-mod-quiz-edit .questionbankwindow div.header .title {color:#000;}
#page-mod-quiz-edit .questionbankwindow div.header a:link,
#page-mod-quiz-edit .questionbankwindow div.header a:visited {color:#0000EF}
#page-mod-quiz-edit div.container div.generalbox {background-color:[[setting:blockcolumnbgc]];padding:1.5em;}
#page-mod-quiz-edit div.questionbank .categoryquestionscontainer,
#page-mod-quiz-edit div.questionbank .categorysortopotionscontainer,
#page-mod-quiz-edit div.questionbank .categorypagingbarcontainer,
#page-mod-quiz-edit div.questionbank .categoryselectallcontainer {padding:0 0 1.5em 0;}
#page-mod-quiz-edit div.questionbank .categorypagingbarcontainer {padding:1em;background-color:[[setting:blockcolumnbgc]];margin:0 -1.2em;border-top:1px [[setting:blockcolumnbgc]] solid;border-bottom:1px [[setting:blockcolumnbgc]] solid;} /* spaziatura sopra e sotto alla tabella con le domande da spostare */
#page-mod-quiz-edit div.questionbank .categoryquestionscontainer {margin:0 -1.2em -1em -1.2em;} /* tabella con le domande da spostare nel quiz*/
#page-mod-quiz-edit div.editq div.question div.content {background-color:[[setting:blockcontentbgc]];} /* la signola domanda nel modello della pagina*/
#page-mod-quiz-edit div.question div.content div.questioncontrols {background-color:[[setting:blockcontentbgc]];} /* la X per eliminare la domanda dal modello della pagina */
#page-mod-quiz-edit div.question div.content div.points {margin-top:-0.5em;padding-bottom:0.5em;background-color:#EEE;} /* il quadratino del grade */
#page-mod-quiz-edit div.question div.content div.points {border-color:[[setting:blockcontentbgc]];}
#page-mod-quiz-edit div.quizpage .pagecontent .pagestatus {background-color:[[setting:blockcontentbgc]];}
#page-mod-quiz-edit .quizpagedelete,
#page-mod-quiz-edit .quizpagedelete img {background-color:transparent;}
#page-mod-quiz-edit #page-footer {padding:0;}
-11
View File
@@ -1,11 +0,0 @@
.block .content {background-color:[[setting:backgroundcolor]];}
#page-content #region-main-box {left:[[setting:regionwidth]];}
#page-content #region-post-box {margin-left:-[[setting:regionwidthdouble]];}
#page-content #region-pre {width:[[setting:regionwidth]];left:[[setting:regionwidth]];}
#page-content #region-post {width:[[setting:regionwidth]];}
#page-content #region-main {margin-left:[[setting:regionwidthdouble]];}
.side-pre-only #page-content #region-post-box {margin-left:-[[setting:regionwidth]];}
.side-pre-only #page-content #region-main {margin-left:[[setting:regionwidth]];}
/** Custom CSS **/
[[setting:customcss]]
+171
View File
@@ -0,0 +1,171 @@
/**
* Tabs
*/
.tabtree {
position:relative;
margin-bottom:3.5em;
}
.tabtree .tabrow0 {
text-align:center;
width:100%;
margin:1em 0px;
}
/* serve a qualcosa? */
.tabtree ul li.here .empty {
display: none;
}
.tabtree .tabrow0 li {
display:inline;
margin-right:-4px;
}
.tabtree .tabrow0 li.here {
font-weight: normal;
}
.tabtree .tabrow0 li.here .empty {
display: block;
height: 1px;
overflow: hidden;
padding: 0px;
position: absolute;
width: 100%;
bottom: -4px;
}
.tabtree .tabrow0 li.here a {
position:relative;
z-index:102;
}
.tabtree .tabrow0 li a {
background-image:url([[pix:theme|tab/left]]);
padding-left:14px;
padding-top:10px;
background-repeat:no-repeat;
padding-bottom:3px;
margin-bottom:-1px;
background-color:transparent;
border:none;
}
.tabtree .tabrow0 li a:hover {
background-image:url([[pix:theme|tab/left_hover]]);
}
.tabtree .tabrow0 li a span {
background-image:url([[pix:theme|tab/right]]);
background-repeat:no-repeat;
background-position:100% 0%;
padding-right:14px;
padding-top:10px;
padding-bottom:3px;
}
.tabtree .tabrow0 li a:hover span {
background-image:url([[pix:theme|tab/right_hover]]);
}
.tabtree .tabrow0 ul,
.tabtree .tabrow0 div {
background-image:url([[pix:theme|tab/tabrow1]]);
background-position:0% 50%;
position:absolute;
width:100%;
border-top:1px solid #aaa;
padding:0.25em 0px;
top:100%;
margin:0px;
}
.tabtree .tabrow0 .empty {
height:1px;
overflow:hidden;
padding:0px;
position:absolute;
}
.tabtree .tabrow1 li a,
.tabtree .tabrow1 li a:hover,
.tabtree .tabrow1 li a span,
.tabtree .tabrow1 li a:hover span {
background-image:none !important;
}
.groupmanagementtable {
width:90%;
}
.groupmanagementtable td {
vertical-align:top;
border-width:0px;
}
.groupmanagementtable td p {
margin:0px;
}
.ie7 .tabtree .tabrow0 li {
margin-left: 0;
}
.ie7 .tabtree .tabrow0 li.first {
margin-right: -4px;
}
.ie7 .tabtree .tabrow0 li.onerow {
margin-right: 0;
}
.ie7 .tabtree .tabrow0 a {
display: inline-block;
padding: 8px 0 0.35em 13px;
line-height: 1.5em;
}
.ie7 .tabtree .tabrow0 a span {
padding: 10px 1em 10px 0;
}
.ie7 .tabtree .tabrow0 div {
top: 2.6em;
padding: 0.2em 0;
}
.ie7 .tabtree .tabrow0 div.empty {
margin-right: 0;
}
.ie7.mod-quiz div.tabtree a span img.iconsmall {
margin: 0;
vertical-align: baseline;
position: relative;
top: 2px;
}
.ie6 .tabtree {
height: 100%;
}
.ie6 .tabtree .tabrow0 {
padding-top: 10px;
}
.ie6 .tabtree .tabrow0 li {
margin-left: 0;
}
.ie6 .tabtree .tabrow0 li.first {
margin-left: -4px;
margin-right: -4px;
}
.ie6 .tabtree .tabrow0 li.last a {
margin-right: 0;
}
.ie6 .tabtree .tabrow0 li.onerow {
margin-right: 0;
}
.ie6 .tabtree .tabrow0 a {
padding: 0 0 0 13px;
}
.ie6 .tabtree .tabrow0 a span {
padding: 12px 1em 4px 0;
}
.ie6 .tabtree .tabrow0 div {
top: 3.5em;
padding: 0.2em 0;
}
-13
View File
@@ -170,13 +170,6 @@ $THEME->layouts = array(
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
@@ -238,10 +231,4 @@ $THEME->layouts = array(
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->editor_sheets = array('editor');
+1 -1
View File
@@ -5,7 +5,7 @@
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
+10 -10
View File
@@ -20,16 +20,16 @@ echo $OUTPUT->doctype() ?>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
<!-- START OF HEADER -->
<div id="page-header" class="clearfix">
<div id="page-header-wrapper">
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
@@ -38,11 +38,11 @@ echo $OUTPUT->doctype() ?>
echo $OUTPUT->login_info();
echo $OUTPUT->lang_menu();
echo $PAGE->headingmenu;
?>
?>
</div>
</div>
</div>
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } else { ?>
@@ -50,7 +50,7 @@ echo $OUTPUT->doctype() ?>
<li>&nbsp;</li>
</ul>
<?php } ?>
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
@@ -59,7 +59,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -67,7 +67,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -75,7 +75,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -83,7 +83,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
+11 -11
View File
@@ -25,7 +25,7 @@ echo $OUTPUT->doctype() ?>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
@@ -34,7 +34,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-header" class="clearfix">
<div id="page-header-wrapper">
<?php if ($hasheading) { ?>
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
<div class="headermenu">
@@ -46,12 +46,12 @@ echo $OUTPUT->doctype() ?>
echo $PAGE->headingmenu
?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<?php if ($hasheading) { ?>
<?php if ($hasheading) { ?>
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } else { ?>
@@ -60,14 +60,14 @@ echo $OUTPUT->doctype() ?>
</ul>
<?php } ?>
<?php } ?>
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"> <?php echo $PAGE->button; ?></div>
</div>
<?php } ?>
<?php } ?>
<!-- END OF HEADER -->
@@ -75,7 +75,7 @@ echo $OUTPUT->doctype() ?>
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
@@ -83,7 +83,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
</div>
<?php if ($hassidepre) { ?>
<div id="region-pre">
<div class="region-content">
@@ -91,7 +91,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
<?php if ($hassidepost) { ?>
<div id="region-post">
<div class="region-content">
@@ -99,7 +99,7 @@ echo $OUTPUT->doctype() ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
-12
View File
@@ -191,13 +191,6 @@ $THEME->layouts = array(
// delivered.
////////////////////////////////////////////////////
// $THEME->filter_mediaplugin_colors
////////////////////////////////////////////////////
// Used to control the colours used in the small
// media player for the filters
////////////////////////////////////////////////////
// $THEME->javascripts
////////////////////////////////////////////////////
@@ -259,9 +252,4 @@ $THEME->rarrow = '&rang;';
// theme, used when working with custom renderers.
////////////////////////////////////////////////////
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
// Controls the colours for the MP3 player
////////////////////////////////////////////////////
$THEME->csspostprocess = 'fusion_process_css';

Some files were not shown because too many files have changed in this diff Show More