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

Commit

Permalink
V2.9.1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jun 2, 2017
1 parent c3b87e9 commit 1c44a3b
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 46 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
New in 2.9.1.24
===============
- NEW: Remove theme credit.

New in 2.9.1.23
===============
Expand Down
13 changes: 0 additions & 13 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2060,19 +2060,6 @@ protected function block_header(block_contents $bc) {
return $output;
}

public function standard_footer_html() {
$output = parent::standard_footer_html();
$output .= html_writer::start_tag('div', array ('class' => 'themecredit')).
get_string('credit', 'theme_essential',
array('name' => html_writer::link('https://moodle.org/plugins/theme_essential', 'Essential', array(
'target' => '_blank',
'title' => get_string('download', 'theme_essential'))))).
html_writer::link('//about.me/gjbarnard', 'Gareth J Barnard', array(
'target' => '_blank', 'title' => get_string('aboutme', 'theme_essential'))).html_writer::end_tag('div');

return $output;
}

// Essential custom bits.
public function essential_marketing_button($spot) {
$o = '';
Expand Down
10 changes: 0 additions & 10 deletions lang/en/theme_essential.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
<p>This theme is provided to you for free, and if you want to express your gratitude for using this theme, please consider sponsoring by:
<h4>PayPal</h4>
<p>Please contact me via my <a href="http://moodle.org/user/profile.php?id=442195" target="_blank">\'Moodle profile\'</a> for details as I am an individual and therefore am unable to have \'buy me now\' buttons under their terms.</p>
<h4>Flattr</h4>
<a href="https://flattr.com/profile/gjb2048" target="_blank">
click here to sponsor.
</a>
<br>Sponsorships help to facilitate maintenance and allow me to provide you with more and better features. Without your support the theme cannot be maintained.</p>
<p>
<h3>Sponsors</h3>
Expand Down Expand Up @@ -121,9 +117,7 @@
$string['sponsor_desc'] = 'Please sponsor via PayPal by contacting me via my \'';
$string['sponsor_desc2'] = ' to keep the Essential development going, or simply to express your gratitude.';
$string['paypal_desc'] = '{$a->url}\' for details as I am an individual and therefore am unable to have \'buy me now\' buttons under their terms or ';
$string['flattr_desc'] = '{$a->url}';
$string['paypal_click'] = 'Moodle profile';
$string['flattr_click'] = 'sponsor via Flattr';

// Readme.
$string['readme_title'] = 'Essential read-me';
Expand Down Expand Up @@ -162,10 +156,6 @@

$string['logodimerror'] = ' is invalid. Please state \'px\' or \'em\' immediately after the unit value and nothing before the unit value.';

$string['credit'] = 'The {$a->name} theme for Moodle is developed by ';
$string['download'] = 'Go to the download page';
$string['aboutme'] = 'About me';

$string['profilebarcustomtitle'] = 'Profile bar custom block title';
$string['profilebarcustomtitledesc'] = 'Title for custom profile bar block.';

Expand Down
8 changes: 0 additions & 8 deletions less/essential/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@
padding-bottom: 6px;
margin-bottom: 4px;
}

.themecredit {
font-size: 7pt;
text-align: center;
a, a:hover {
color: inherit;
}
}
}

#page-footer ul,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theme-essential-tasks",
"version": "0.1.0",
"version": "0.1.1",
"description": "Grunt tasks for Moodle Essential theme.",
"main": "Gruntfile.js",
"author": {
Expand Down Expand Up @@ -35,5 +35,5 @@
"grunt-contrib-uglify": "~0.7.0",
"grunt-svgmin": "~2.0.0"
},
"license": "GPLv3.0+"
"license": "GPL-3.0"
}
9 changes: 2 additions & 7 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,10 @@
$sponsor = new moodle_url('http://moodle.org/user/profile.php?id=442195');
$sponsor = html_writer::link($sponsor, get_string('paypal_click', 'theme_essential'), array('target' => '_blank'));

$flattr = new moodle_url('https://flattr.com/profile/gjb2048');
$flattr = html_writer::link($flattr, get_string('flattr_click', 'theme_essential'), array('target' => '_blank'));

$essentialsettingsgeneric->add(new admin_setting_heading('theme_essential_generalsponsor',
get_string('sponsor_title', 'theme_essential'),
get_string('sponsor_desc', 'theme_essential') . get_string('paypal_desc', 'theme_essential',
array('url' => $sponsor)).get_string('flattr_desc', 'theme_essential',
array('url' => $flattr)).get_string('sponsor_desc2', 'theme_essential')));

get_string('sponsor_desc', 'theme_essential').get_string('paypal_desc', 'theme_essential', array('url' => $sponsor)).
get_string('sponsor_desc2', 'theme_essential')));
$essentialsettingsgeneric->add(new admin_setting_heading('theme_essential_generalheading',
get_string('generalheadingsub', 'theme_essential'),
format_text(get_string('generalheadingdesc', 'theme_essential'), FORMAT_MARKDOWN)));
Expand Down
2 changes: 1 addition & 1 deletion style/essential-rtl.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions style/essential-rtl_ie9.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style/essential.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions style/essential_ie9.css

Large diffs are not rendered by default.

0 comments on commit 1c44a3b

Please sign in to comment.