Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
V2.9.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jul 13, 2015
1 parent 83ea5da commit 35db9b4
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 11 deletions.
4 changes: 4 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ It is essential that you provide as much information as possible, the critical i
'version.php' file. Other version information such as specific Moodle version, theme name and version also helps. A screen shot
can be really useful in visualising the issue along with any files you consider to be relevant.

New in 2.9.0.6
==============
- FIX: #adminsettings h3 colour in alternative colours.

New in 2.9.0.5
==============
- FIX: Forum submit area background colour for alternative colours.
Expand Down
11 changes: 11 additions & 0 deletions classes/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,17 @@ protected function essential_blocks_for_region($region, $blocksperrow, $editing)
return $output;
}

public function standard_footer_html() {
$output = parent::standard_footer_html();
$url = new moodle_url('//about.me/gjbarnard');
$output .= html_writer::start_tag('div', array ('class' => 'themecredit')).
get_string('credit', 'theme_essential').
html_writer::link($url, 'Gareth J Barnard', array('target' => '_blank')).
html_writer::end_tag('div');

return $output;
}

// Essential custom bits.
public function essential_edit_button($section) {
global $CFG;
Expand Down
8 changes: 8 additions & 0 deletions essentials/classes/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ public function navbar()
$breadcrumbs .= html_writer::end_tag('ul');
return $breadcrumbs;
}

/**
* Outputs the alternative colours menu
* @return custom_menu object
*/
public function custom_menu_themecolours() {
return '';
}
}
1 change: 1 addition & 0 deletions essentials/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
out and look at 'theme_essentials_process_css' in lib.php for more information. */
$THEME->parents_exclude_sheets = array(
'essential' => array(
'essential-alternative',
'essential-settings',
'custom'
)
Expand Down
3 changes: 0 additions & 3 deletions essentials/layout/includes/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
<div class="footerperformance row-fluid">
<?php echo $OUTPUT->standard_footer_html(); ?>
</div>
<div class="themecredit row-fluid">
<?php echo get_string('credit' ,'theme_essential'); ?><a href="//about.me/gjbarnard" target="_blank">Gareth J Barnard</a>
</div>
</div>
</footer>
<a href="#top" class="back-to-top" ><i class="fa fa-angle-up "></i></a>
Expand Down
4 changes: 3 additions & 1 deletion essentials/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
*/

function theme_essentials_process_css($css, $theme) {
// Change to 'true' if you want to use Essential's settings after removing the '$THEME->parents_exclude_sheets' in config.php.
/* Change to 'true' if you want to use Essential's settings after removing the '$THEME->parents_exclude_sheets' in config.php.
Then to get the alternive colours back, renove the overridden method 'custom_menu_themecolours' in the 'theme_essentials_core_renderer'
class in the 'core_renderer.php' file in the 'classes' folder. */
$usingessentialsettings = false;

if ($usingessentialsettings) {
Expand Down
3 changes: 0 additions & 3 deletions layout/includes/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
<div class="footerperformance row-fluid">
<?php echo $OUTPUT->standard_footer_html(); ?>
</div>
<div class="themecredit row-fluid">
<?php echo get_string('credit', 'theme_essential'); ?><a href="//about.me/gjbarnard" target="_blank">Gareth J Barnard</a>
</div>
</div>
</footer>
<a href="#top" class="back-to-top" ><i class="fa fa-angle-up "></i></a>
Expand Down
1 change: 1 addition & 0 deletions less/essential/alternative/alternative1.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.essential-colours-alternative1 {
color: ~"[[setting:alternativethemetextcolor1]]";
h1, h2, h3, h4, h5, h6,
#adminsettings h3,
.color,
h1#title,
select,
Expand Down
1 change: 1 addition & 0 deletions less/essential/alternative/alternative2.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.essential-colours-alternative2 {
color: ~"[[setting:alternativethemetextcolor2]]";
h1, h2, h3, h4, h5, h6,
#adminsettings h3,
.color,
h1#title,
select,
Expand Down
1 change: 1 addition & 0 deletions less/essential/alternative/alternative3.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.essential-colours-alternative3 {
color: ~"[[setting:alternativethemetextcolor3]]";
h1, h2, h3, h4, h5, h6,
#adminsettings h3,
.color,
h1#title,
select,
Expand Down
3 changes: 3 additions & 0 deletions style/essential-alternative.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style/essential-rtl_ie9.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url('essential-rtl_ie9-blessed1.css?z=1436643616160');
@import url('essential-rtl_ie9-blessed1.css?z=1436645614308');

.yui-skin-sam .yui-layout.path-mod-chat-gui_ajax #chat-messages .chat-event.course-theme {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion style/essential_ie9.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url('essential_ie9-blessed1.css?z=1436643616160');
@import url('essential_ie9-blessed1.css?z=1436645614308');
.yui-skin-sam .yui-layout.path-mod-chat-gui_ajax #chat-messages .chat-event.course-theme {
text-align: center;
margin: 10px 0;
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2015062404; // YYYYMMDDVV.
$plugin->version = 2015062405; // YYYYMMDDVV.
$plugin->maturity = MATURITY_BETA; // this version's maturity level.
$plugin->release = '2.9.0.5 (Build: 2015062404)';
$plugin->release = '2.9.0.6 (Build: 2015062405)';
$plugin->requires = 2015051100.00; // 2.9 (Build: 20150511).
$plugin->component = 'theme_essential';
$plugin->dependencies = array();

0 comments on commit 35db9b4

Please sign in to comment.