Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

formal white from scratch fixing MDL-26300, MDL-25628 , MDL-25520

  • Loading branch information...
commit 4afb01dbb4c418d384f9db0c234624179df4409c 1 parent 3718dfc
@kordan kordan authored samhemelryk committed
Showing with 1,909 additions and 1,116 deletions.
  1. +145 −50 theme/formal_white/config.php
  2. +0 −154 theme/formal_white/javascript/navigation.js
  3. +37 −17 theme/formal_white/lang/en/theme_formal_white.php
  4. +34 −0 theme/formal_white/layout/embedded.php
  5. +209 −0 theme/formal_white/layout/frontpage.php
  6. +165 −100 theme/formal_white/layout/general.php
  7. +0 −127 theme/formal_white/layout/report.php
  8. +57 −59 theme/formal_white/lib.php
  9. BIN  theme/formal_white/pix/custommenubg.jpg
  10. BIN  theme/formal_white/pix/dock_removeall.png
  11. BIN  theme/formal_white/pix/gradient-sb.jpg
  12. BIN  theme/formal_white/pix/logo.jpg
  13. BIN  theme/formal_white/pix/movedock.png
  14. BIN  theme/formal_white/pix/sprite.png
  15. +40 −19 theme/formal_white/settings.php
  16. +0 −51 theme/formal_white/style/base.css
  17. +53 −0 theme/formal_white/style/calendar.css
  18. +543 −0 theme/formal_white/style/core.css
  19. +34 −31 theme/formal_white/style/course.css
  20. +0 −54 theme/formal_white/style/dock.css
  21. +0 −2  theme/formal_white/style/editor.css
  22. +88 −0 theme/formal_white/style/formal_white.css
  23. +0 −135 theme/formal_white/style/formalwhite.css
  24. +158 −0 theme/formal_white/style/frame.css
  25. +0 −66 theme/formal_white/style/fw_corners.css
  26. +0 −240 theme/formal_white/style/general.css
  27. +39 −0 theme/formal_white/style/menu.css
  28. +105 −0 theme/formal_white/style/pagelayout.css
  29. +31 −0 theme/formal_white/style/quiz.css
  30. +0 −11 theme/formal_white/style/settings.css
  31. +171 −0 theme/formal_white/style/tabs.css
View
195 theme/formal_white/config.php 100644 → 100755
@@ -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,113 @@
// changes you want to your theme.
////////////////////////////////////////////////////
-$THEME->sheets = array('dock','base','general','fw_corners','formalwhite','settings','course');
-////////////////////////////////////////////////////
-// Name of the stylesheet(s) you've including in
-// this theme's /styles/ directory.
-////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
'canvas'=>array(
+ 'core',
+ 'pagelayout',
'tabs',
),
);
+////////////////////////////////////////////////////
+// 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->enable_dock = true;
+////////////////////////////////////////////////////
+// Do you want to use the new navigation dock?
+////////////////////////////////////////////////////
-$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->editor_sheets = array('editor');
+////////////////////////////////////////////////////
+// An array of stylesheets to include within the
+// body of the editor.
+////////////////////////////////////////////////////
-$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(
'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',
+ 'file' => 'embedded.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 +164,7 @@
'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 +173,98 @@
'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->filter_mediaplugin_colors
+////////////////////////////////////////////////////
+// Used to control the colours used in the small
+// media player for the filters
+////////////////////////////////////////////////////
-$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.
+////////////////////////////////////////////////////
+
+
+// $THEME->resource_mp3player_colors
+////////////////////////////////////////////////////
+// Controls the colours for the MP3 player
+////////////////////////////////////////////////////
View
154 theme/formal_white/javascript/navigation.js
@@ -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;
- }
- }
- }
-})();
View
54 theme/formal_white/lang/en/theme_formal_white.php 100644 → 100755
@@ -23,54 +23,74 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+$string['pluginname'] = 'Formal white';
+$string['region-side-post'] = 'Right';
+$string['region-side-pre'] = 'Left';
+
$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>
<h2>Credits</h2>
- <p>This theme was coded and is maintained by MediaTouch 2000. </p>
+ <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['configtitle'] = 'Formal white theme';
-$string['pluginname'] = 'Formal white';
+$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['displaylogo'] = 'Pages header content';
+$string['displaylogodesc'] = 'Choose whether display moodle logo or page heading text in the header.';
+$string['moodlelogo'] = 'Display moodle logo';
+$string['heading'] = 'Display page heading';
+
+$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['blockcolumnbgc'] = 'Blocks columns background colour';
+$string['blockcolumnbgcdesc'] = 'This sets the blocks columns background colour for the theme.';
+
+$string['configtitle'] = 'formal_white settings';
-$string['backgroundcolor'] = 'Blocks background colour';
-$string['backgroundcolordesc'] = 'This sets the blocks background colour for the theme.';
-$string['configtitle'] = 'Formal_white settings';
$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['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['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['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.';
View
34 theme/formal_white/layout/embedded.php
@@ -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 echo $PAGE->bodyid ?>" class="<?php echo $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>
View
209 theme/formal_white/layout/frontpage.php
@@ -0,0 +1,209 @@
+<?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 echo $PAGE->bodyid ?>" class="<?php echo $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></div> <!-- </frameright></frameleft> -->
+ <div id="framebottomright"><div>&nbsp;</div></div>
+ </div></div> <!-- </framebottom></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_noframe">
+ <div id="page-footer_noframe-content">
+ <?php if (!empty($PAGE->theme->settings->footnote)) { ?>
+
+ <!-- the content to show -->
+ <div id="footerwrapper">
+ <?php echo $PAGE->theme->settings->footnote; ?>
+ </div> <!-- end of footerwrapper -->
+
+ </div> <!-- end of footerwrapper -->
+ </div>
+ <?php }
+ //manco di una div da chiudere
+
+ } ?>
+
+ <div class="johndocsleft">
+ <?php
+ //echo $OUTPUT->login_info();
+ //echo $OUTPUT->home_link();
+ echo $OUTPUT->standard_footer_html();
+ ?>
+ </div>
+
+ <div class="johndocs">
+ <?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>
View
265 theme/formal_white/layout/general.php 100644 → 100755
@@ -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,23 @@
} 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() ?>>
@@ -44,101 +49,161 @@
<?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="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 echo $OUTPUT->standard_top_of_body_html();
- <?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 } ?>
+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 if ($hassidepost) { ?>
- <div id="region-post" class="block-region">
- <div class="region-content">
- <?php echo $OUTPUT->blocks_for_region('side-post') ?>
- </div>
+<!-- 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>
- <?php } ?>
-
</div>
</div>
- <!-- </div> -->
- </div>
+ <!-- end of main mandatory content of the moodle page -->
- </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() ?>
+ <!-- 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></div> <!-- </frameright></frameleft> -->
+ <div id="framebottomright"><div>&nbsp;</div></div>
+ </div></div> <!-- </framebottom></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_noframe">
+ <div id="page-footer_noframe-content">
+ <?php if (!empty($PAGE->theme->settings->footnote)) { ?>
+
+ <!-- the content to show -->
+ <div id="footerwrapper">
+ <?php echo $PAGE->theme->settings->footnote; ?>
+ </div> <!-- end of footerwrapper -->
+
+ </div> <!-- end of footerwrapper -->
+ </div>
+ <?php }
+ //manco di una div da chiudere
+
+ } ?>
+
+ <div class="johndocsleft">
+ <?php
+ //echo $OUTPUT->login_info();
+ //echo $OUTPUT->home_link();
+ echo $OUTPUT->standard_footer_html();
+ ?>
+ </div>
+
+ <div class="johndocs">
+ <?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>
View
127 theme/formal_white/layout/report.php
@@ -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>
View
116 theme/formal_white/lib.php 100644 → 100755
@@ -1,5 +1,7 @@
<?php
+defined('MOODLE_INTERNAL') || die();
+
/**
* Makes our changes to the CSS
*
@@ -7,86 +9,82 @@
* @param theme_config $theme
* @return string
*/
-function formalwhite_process_css($css, $theme) {
+function formal_white_user_settings($css, $theme) {
+
+ // Set the block content background color
+ if (empty($theme->settings->blockcontentbgc)) {
+ $blockcontentbgc = '#F6F6F6'; // default (o forse è meglio #FEF9F6?)
+ } else {
+ $blockcontentbgc = $theme->settings->blockcontentbgc;
+ }
+ $css = formal_white_set_blockcontentbgc($css, $blockcontentbgc);
- // Set the background color
- if (!empty($theme->settings->backgroundcolor)) {
- $backgroundcolor = $theme->settings->backgroundcolor;
+ // Set the block column background color
+ if (empty($theme->settings->blockcolumnbgc)) {
+ $blockcolumnbgc = '#E3DFD4'; // default
} else {
- $backgroundcolor = null;
+ $blockcolumnbgc = $theme->settings->blockcolumnbgc;
}
- $css = formalwhite_set_backgroundcolor($css, $backgroundcolor);
+ $css = formal_white_set_blockcolumnbgc($css, $blockcolumnbgc);
- // Set the region width
- if (!empty($theme->settings->regionwidth)) {
- $regionwidth = $theme->settings->regionwidth;
+ // Set the logo image
+ if (!empty($theme->settings->logo)) {
+ $logo = $theme->settings->logo;
} else {
- $regionwidth = null;
+ $logo = null;
}
- $css = formalwhite_set_regionwidth($css, $regionwidth);
+ $css = formal_white_set_logo($css, $logo);
- // Set the custom CSS
- if (!empty($theme->settings->customcss)) {
- $customcss = $theme->settings->customcss;
+ // set the width of the two blocks colums
+ if (!empty($theme->settings->blockcolumnwidth)) {
+ $blockcolumnwidth = $theme->settings->blockcolumnwidth;
} else {
- $customcss = null;
+ $blockcolumnwidth = '200'; // default
}
- $css = formalwhite_set_customcss($css, $customcss);
+ $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_blockcontentbgc($css, $blockcontentbgc) {
+ $tag = '[[setting:blockcontentbgc]]';
+ $css = str_replace($tag, $blockcontentbgc, $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_blockcolumnbgc($css, $blockcolumnbgc) {
+ $tag = '[[setting:blockcolumnbgc]]';
+ $css = str_replace($tag, $blockcolumnbgc, $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);
- 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;
}
View
BIN  theme/formal_white/pix/custommenubg.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  theme/formal_white/pix/dock_removeall.png
Deleted file not rendered
View
BIN  theme/formal_white/pix/gradient-sb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  theme/formal_white/pix/logo.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  theme/formal_white/pix/movedock.png
Deleted file not rendered
View
BIN  theme/formal_white/pix/sprite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
59 theme/formal_white/settings.php 100644 → 100755
@@ -8,49 +8,70 @@
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');
+ $setting = new admin_setting_configcheckbox($name, $title, $description, 0);
+ $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);
}
View
51 theme/formal_white/style/base.css
@@ -1,51 +0,0 @@
-body, div, p, li, input, option, textarea {font-size:10pt;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;}
-
-.course_category_tree .category {margin: 5px;padding-left: 16px;}
-.course_category_tree .category .course.odd {background-color: #E3DFD4;}
-.course_category_tree .category .course.even {background-color: #EEE;}
-.course_category_tree .category_link {
- display: block;
- font-size: 120%;
- font-weight: bold;
- margin: 5px;
-}
-/* la posizione del disclosure triangle */
-.course_category_tree .category.with_children .category_label {
- background-position: 0px 3px;
-}
View
53 theme/formal_white/style/calendar.css
@@ -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;}
View
543 theme/formal_white/style/core.css
@@ -0,0 +1,543 @@
+/************************************************************************
+ 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%;
+}
+
+/* Admin management
+-----------------------*/
+.plugincompattable {
+ font-size: 100%;
+ text-align: left;
+}
+
+/* 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;
+}
+