adding core theme magazine. MDL-23620

This commit is contained in:
john St
2010-08-02 19:09:55 +00:00
parent e6c9df4ead
commit b8fce7be2d
42 changed files with 2306 additions and 0 deletions
+210
View File
@@ -0,0 +1,210 @@
<?php
$THEME->name = 'magazine';
////////////////////////////////////////////////////
// Name of the theme. Most likely the name of
// the directory in which this file resides.
////////////////////////////////////////////////////
$THEME->parents = array('base','canvas');
$THEME->parents_exclude_sheets = array('base'=>array('pagelayout'),'canvas'=>array('pagelayout') );
/////////////////////////////////////////////////////
// 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
// changes you want to your theme.
////////////////////////////////////////////////////
$THEME->sheets = array('layout','core','colors','css3');
////////////////////////////////////////////////////
// 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->editor_sheets = array('editor');
////////////////////////////////////////////////////
// An array of stylesheets to include within the
// body of the editor.
////////////////////////////////////////////////////
$THEME->layouts = array(
'base' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'general' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'course' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post'
),
'coursecategory' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'incourse' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'frontpage' => array(
'file' => 'frontpage.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'admin' => array(
'file' => 'general.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
),
'mydashboard' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
'options' => array('langmenu'=>true),
),
'mypublic' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
),
'login' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('langmenu'=>true),
),
'popup' => array(
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
);
///////////////////////////////////////////////////////////////
// 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->csspostprocess = 'simplespace_process_css';
////////////////////////////////////////////////////
// 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.
// (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->renderfactory
//$THEME->rendererfactory = 'theme_simplespace_renderer_factory';
////////////////////////////////////////////////////
// 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 = 'magazine_process_css';
+34
View File
@@ -0,0 +1,34 @@
<?php
$string['pluginname'] = 'magazine';
$string['region-side-post'] = 'Right';
$string['region-side-pre'] = 'Left';
$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Magazine</h2><img src="magazine/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>Magazine is a three column fluid-width theme for Moodle 2.0. <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><h3>License</h3><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>. Some icons used in this theme are from the Splashy Icon set and are freely available at http://splashyfish.com/icons/. </div></div>';
$string['configtitle'] = 'Magazine theme';
$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.';
$string['background'] = 'background';
$string['backgrounddesc'] = 'Change the background image by entering the URL to a new image. (i.e., http://www.somesite/mybackground.jpg).';
$string['linkcolor'] = 'link';
$string['linkcolordesc'] = 'Set the color of links in the theme, use html hex code.';
$string['linkhover'] = 'linkhover';
$string['linkhoverdesc'] = 'Set the color of links (on hover) in the theme, use html hex code.';
$string['maincolor'] = 'maincolor';
$string['maincolordesc'] = 'Set the color hex code of the header, dock bar and other areas. Looks best as a dark or saturated color.';
$string['maincoloraccent'] = 'maincoloraccent';
$string['maincoloraccentdesc'] = 'Dark accent color for the dock bar and header borders. Should be slightly darker than the main color.';
$string['headingcolor'] = 'headingcolor';
$string['headingcolordesc'] = 'This is the heading color for large headings (site news, my courses) and other headings.';
$string['blockcolor'] = 'blockcolor';
$string['blockcolordesc'] = 'This is for the block header font color.';
$string['forumback'] = 'forumback';
$string['forumbackdesc'] = 'Set the background color of forum post subject.';
+22
View File
@@ -0,0 +1,22 @@
<?php 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">
<!-- END OF HEADER -->
<div id="content" class="clearfix">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
<!-- START OF FOOTER -->
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
</html>
+187
View File
@@ -0,0 +1,187 @@
<?php
$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';
}
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">
<!-- start of header -->
<div id="header-wrap">
<div id="header-container">
<div id="header">
<div id="headleft">
</div>
<div id="headright">
<?php if ($hasheading) {
echo $OUTPUT->lang_menu();
echo $OUTPUT->login_info();
echo $PAGE->headingmenu;
} ?>
</div>
</div>
</div>
</div>
<!-- end of header -->
<!-- start of logo and menu section -->
<div id="textcontainer-wrap">
<div id="textcontainer">
<?php if (!empty($PAGE->theme->settings->logo)) { ?>
<div class="thetitle">
<div class="innertitle">
</div>
</div>
<?php } else { ?>
<div id="nologo">
<a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
</div>
<?php } ?>
<div class="rightinfo">
<div id="menucontainer-wrap">
<div id="menucontainer">
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- end of logo and menu section -->
<!-- start of main content wraps -->
<div id="ie6-container-wrap">
<div id="outercontainer">
<div id="container">
<div id="innercontainer">
<div id="jcontrols_button">
<div class="jcontrolsleft">
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"> <?php echo $OUTPUT->navbar(); ?></div>
</div>
<?php } ?>
</div>
<div class="jcontrolsright">
<?php if ($hasnavbar) {
echo $PAGE->button;
} ?>
</div>
</div>
<!-- start OF moodle CONTENT -->
<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 ($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>
<!-- END OF CONTENT -->
<div id="jcontrols_bottom">
</div>
<!-- Containers end div above clears both -->
</div>
</div>
</div>
</div>
<!-- START OF FOOTER -->
<div id="footer-wrap">
<div id="footer-container">
<div id="footer">
<?php if ($hasfooter) {
echo "<div class='johndocsleft'>";
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
echo "</div>";
} ?>
<?php if ($hasfooter) { ?>
<div class="johndocs">
<?php echo page_doc_link(get_string('moodledocslink')) ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
</html>
+190
View File
@@ -0,0 +1,190 @@
<?php
$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';
}
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">
<!-- start of header -->
<div id="header-wrap">
<div id="header-container">
<div id="header">
<div id="headleft">
<?php if ($hasheading && !empty($PAGE->theme->settings->logo)) {
echo $PAGE->heading;
} ?>
</div>
<div id="headright">
<?php if ($hasheading) {
echo $OUTPUT->lang_menu();
echo $OUTPUT->login_info();
echo $PAGE->headingmenu;
} ?>
</div>
</div>
</div>
</div>
<!-- end of header -->
<!-- start of logo and menu section -->
<div id="textcontainer-wrap">
<div id="textcontainer">
<?php if (!empty($PAGE->theme->settings->logo)) { ?>
<div class="thetitle">
<div class="innertitle">
</div>
</div>
<?php } else { ?>
<div id="nologo">
<a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
</div>
<?php } ?>
<div class="rightinfo">
<div id="menucontainer-wrap">
<div id="menucontainer">
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- end of logo and menu section -->
<!-- start of main content wraps -->
<div id="ie6-container-wrap">
<div id="outercontainer">
<div id="container">
<div id="innercontainer">
<div id="jcontrols_button">
<div class="jcontrolsleft">
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"> <?php echo $OUTPUT->navbar(); ?></div>
</div>
<?php } ?>
</div>
<div class="jcontrolsright">
<?php if ($hasnavbar) {
echo $PAGE->button;
} ?>
</div>
</div>
<!-- start OF moodle CONTENT -->
<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 ($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>
<!-- END OF CONTENT -->
<div id="jcontrols_bottom">
</div>
<!-- Containers end div above clears both -->
</div>
</div>
</div>
</div>
<!-- START OF FOOTER -->
<div id="footer-wrap">
<div id="footer-container">
<div id="footer">
<?php if ($hasfooter) {
echo "<div class='johndocsleft'>";
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
echo "</div>";
} ?>
<?php if ($hasfooter) { ?>
<div class="johndocs">
<?php echo page_doc_link(get_string('moodledocslink')) ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
</html>
+185
View File
@@ -0,0 +1,185 @@
<?php
/**
* Makes our changes to the CSS
*
* @param string $css
* @param theme_config $theme
* @return string
*/
function magazine_process_css($css, $theme) {
// Set the link color
if (!empty($theme->settings->linkcolor)) {
$linkcolor = $theme->settings->linkcolor;
} else {
$linkcolor = null;
}
$css = magazine_set_linkcolor($css, $linkcolor);
// Set the link hover color
if (!empty($theme->settings->linkhover)) {
$linkhover = $theme->settings->linkhover;
} else {
$linkhover = null;
}
$css = magazine_set_linkhover($css, $linkhover);
// Set the main color
if (!empty($theme->settings->maincolor)) {
$maincolor = $theme->settings->maincolor;
} else {
$maincolor = null;
}
$css = magazine_set_maincolor($css, $maincolor);
// Set the main accent color
if (!empty($theme->settings->maincoloraccent)) {
$maincoloraccent = $theme->settings->maincoloraccent;
} else {
$maincoloraccent = null;
}
$css = magazine_set_maincoloraccent($css, $maincoloraccent);
// Set the main headings color
if (!empty($theme->settings->headingcolor)) {
$headingcolor = $theme->settings->headingcolor;
} else {
$headingcolor = null;
}
$css = magazine_set_headingcolor($css, $headingcolor);
// Set the block headings color
if (!empty($theme->settings->blockcolor)) {
$blockcolor = $theme->settings->blockcolor;
} else {
$blockcolor = null;
}
$css = magazine_set_blockcolor($css, $blockcolor);
// Set the forum background color
if (!empty($theme->settings->forumback)) {
$forumback = $theme->settings->forumback;
} else {
$forumback = null;
}
$css = magazine_set_forumback($css, $forumback);
// Set the body background image
if (!empty($theme->settings->background)) {
$background = $theme->settings->background;
} else {
$background = null;
}
$css = magazine_set_background($css, $background);
// Set the logo image
if (!empty($theme->settings->logo)) {
$logo = $theme->settings->logo;
} else {
$logo = null;
}
$css = magazine_set_logo($css, $logo);
// Return the CSS
return $css;
}
/**
* Sets the link color variable in CSS
*
*/
function magazine_set_linkcolor($css, $linkcolor) {
$tag = '[[setting:linkcolor]]';
$replacement = $linkcolor;
if (is_null($replacement)) {
$replacement = '#32529a';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_linkhover($css, $linkhover) {
$tag = '[[setting:linkhover]]';
$replacement = $linkhover;
if (is_null($replacement)) {
$replacement = '#4e2300';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_maincolor($css, $maincolor) {
$tag = '[[setting:maincolor]]';
$replacement = $maincolor;
if (is_null($replacement)) {
$replacement = '#002f2f';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_maincoloraccent($css, $maincoloraccent) {
$tag = '[[setting:maincoloraccent]]';
$replacement = $maincoloraccent;
if (is_null($replacement)) {
$replacement = '#092323';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_headingcolor($css, $headingcolor) {
$tag = '[[setting:headingcolor]]';
$replacement = $headingcolor;
if (is_null($replacement)) {
$replacement = '#4e0000';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_blockcolor($css, $blockcolor) {
$tag = '[[setting:blockcolor]]';
$replacement = $blockcolor;
if (is_null($replacement)) {
$replacement = '#002f2f';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_forumback($css, $forumback) {
$tag = '[[setting:forumback]]';
$replacement = $forumback;
if (is_null($replacement)) {
$replacement = '#e6e2af';
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_background($css, $background) {
global $OUTPUT;
$tag = '[[setting:background]]';
$replacement = $background;
if (is_null($replacement)) {
$replacement = $OUTPUT->pix_url('bg4', 'theme');
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
function magazine_set_logo($css, $logo) {
global $OUTPUT;
$tag = '[[setting:logo]]';
$replacement = $logo;
if (is_null($replacement)) {
$replacement = $OUTPUT->pix_url('logo', 'theme');
}
$css = str_replace($tag, $replacement, $css);
return $css;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

+84
View File
@@ -0,0 +1,84 @@
<?php
// Create our admin page
$temp = new admin_settingpage('theme_magazine', get_string('configtitle','theme_magazine'));
// Background image setting
$name = 'theme_magazine/background';
$title = get_string('background','theme_magazine');
$description = get_string('backgrounddesc', 'theme_magazine');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$temp->add($setting);
// logo image setting
$name = 'theme_magazine/logo';
$title = get_string('logo','theme_magazine');
$description = get_string('logodesc', 'theme_magazine');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$temp->add($setting);
// link color setting
$name = 'theme_magazine/linkcolor';
$title = get_string('linkcolor','theme_magazine');
$description = get_string('linkcolordesc', 'theme_magazine');
$default = '#32529a';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// link hover color setting
$name = 'theme_magazine/linkhover';
$title = get_string('linkhover','theme_magazine');
$description = get_string('linkhoverdesc', 'theme_magazine');
$default = '#4e2300';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// main color setting
$name = 'theme_magazine/maincolor';
$title = get_string('maincolor','theme_magazine');
$description = get_string('maincolordesc', 'theme_magazine');
$default = '#002f2f';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// main color accent setting
$name = 'theme_magazine/maincoloraccent';
$title = get_string('maincoloraccent','theme_magazine');
$description = get_string('maincoloraccentdesc', 'theme_magazine');
$default = '#092323';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// heading color setting
$name = 'theme_magazine/headingcolor';
$title = get_string('headingcolor','theme_magazine');
$description = get_string('headingcolordesc', 'theme_magazine');
$default = '#4e0000';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// block heading color setting
$name = 'theme_magazine/blockcolor';
$title = get_string('blockcolor','theme_magazine');
$description = get_string('blockcolordesc', 'theme_magazine');
$default = '#002f2f';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// forum subject background color setting
$name = 'theme_magazine/forumback';
$title = get_string('forumback','theme_magazine');
$description = get_string('forumbackdesc', 'theme_magazine');
$default = '#e6e2af';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// Add our page to the structure of the admin tree
$ADMIN->add('themes', $temp);
+70
View File
@@ -0,0 +1,70 @@
/** colors file for magazine theme, contains colors, logo and background image **/
html,body {
background: #fff url([[setting:background]]);
}
html a,body a, html a:visited,body a:visited {
color: [[setting:linkcolor]];
}
html a:hover,body a:hover {
color: [[setting:linkhover]];
}
/** header and dock, default #002f2f and #092323 **/
#header-wrap, #dock {
background: [[setting:maincolor]];
border-bottom: 1px solid [[setting:maincoloraccent]];
}
/** logo is below **/
div.thetitle {
background: url([[setting:logo]]) no-repeat 0% 50%;
}
/** block header font color and others default is #002f2f **/
td.category.number, .yui-module.yui-overlay.yui-panel div.hd, #navigation li a:link,#navigation li a:visited, div.tabtree li a span {
color: [[setting:maincolor]];
}
.title h2, div.dockeditempanel_hd h2, div.dockeditempanel_hd {
color: [[setting:blockcolor]];
}
.yui3-menu-content li a {
color: [[setting:maincolor]] !important;
}
div.dockedtitle {
border-bottom: 1px solid [[setting:maincoloraccent]] !important;
border-top: 1px solid #333333 !important;
}
/** main headings and forum post subject default color #4e0000 **/
#nologo, #nologo a, .generalbox h2,h3.sectionname, div.tabtree li.selected a span, .forumpost .subject, .blog_entry div.subject a, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2 {
color: [[setting:headingcolor]];
}
/** forum post subject background default is #e6e2af **/
.forumpost td.topic {
background: [[setting:forumback]] url([[pix:theme|alert-overlay]]) repeat-x;
}
/** table header background color, default is #002f2f **/
td.maincalendar table.calendartable th, table.rolecap .header,.generaltable .header,.forumheaderlist .header,.files .header,.editcourse .header,.logtable .header,#attempts .header,table#categoryquestions th {
background: [[setting:maincolor]] !important;
}
/** dock item hover, default is #4e0000 **/
div.dockeditem_container div.dockeditem:hover {
background: [[setting:headingcolor]] url([[pix:theme|mbar]]) repeat-y;
}
File diff suppressed because it is too large Load Diff
+22
View File
@@ -0,0 +1,22 @@
#outercontainer {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
#container, #innercontainer {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
div.yui3-menu.yui3-menu-horizontal {
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
div.yui3-widget.yui3-overlay, div.yui3-menu.custom_menu_submenu div.yui3-menu-content, div.dockeditempanel_content {
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
+148
View File
@@ -0,0 +1,148 @@
#page-content {
clear: both;
float: left;
overflow: visible;
position: relative;
width: 100%;
}
#page-content #region-main-box {
float: left;
right: 23%;
position: relative;
width: 100%;
border: 0px solid #3333cc;
}
#page-content #region-post-box {
float: left;
right: 54%;
position: relative;
width: 100%;
border: 0px solid #3333cc;
}
#page-content #region-main {
float: left;
left: 101%;
overflow: visible;
position: relative;
width: 52%;
}
#page-content #region-pre {
float: left;
left: 26%;
overflow: visible;
position: relative;
width: 21%;
}
#page-content #region-post {
float: left;
left: 82%;
overflow: visible;
position: relative;
width: 21%;
}
#page-content .region-content {
overflow: visible;
padding: 10px 0;
border: 0px solid #3333cc;
}
#page-content {
overflow: hidden
}
/** Only side pre **/
.side-pre-only #page-content #region-main-box {
right: 0%;
}
.side-pre-only #page-content #region-main-box #region-post-box {
right: 77%;
}
.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
left: 100%;
width: 77%;
}
.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
overflow: hidden;
padding: 20px 10px;
padding-top: 10px;
}
.side-pre-only #page-content #region-main-box #region-post-box #region-pre {
left: 1%;
width: 21%;
}
.side-pre-only #page-content #region-main-box #region-post-box #region-post {
width: 0%;
}
/** Only side post **/
.side-post-only #page-content #region-main-box {
right: 23%;
}
.side-post-only #page-content #region-main-box #region-post-box {
right: 76%;
}
.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
left: 100%;
width: 77%;
}
.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
overflow: hidden;
padding: 20px 10px;
}
.side-post-only #page-content #region-main-box #region-post-box #region-post {
left: 100%;
width: 21%;
}
.has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {
margin-left: 23%;
}
/** No blocks whatsoever **/
.content-only #page-content #region-main-box {
right: 0%;
}
.content-only #page-content #region-main-box #region-post-box {
right: 100%;
}
.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
width: 98%;
}
.content-only #page-content #region-main-box #region-post-box #region-pre {
width: 0%;
}
#region-pre {
padding-top: 0px;
}
/** fix for some extra padding in side-post-only view **/
.side-post-only div.region-content {
padding-top: 0px !important;
}
#region-post {
padding-top: 0px;
}