Skip to content

Commit

Permalink
Tidy!
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Oct 14, 2023
1 parent 4d92e1e commit 34dde99
Show file tree
Hide file tree
Showing 60 changed files with 344 additions and 328 deletions.
24 changes: 13 additions & 11 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ Features

About
=====
Copyright © 2019-onwards G J Barnard.
Author G J Barnard - [About.me](http://about.me/gjbarnard) and [Moodle.org](http://moodle.org/user/profile.php?id=442195)
License [GNU GPL v3 or later](http://www.gnu.org/copyleft/gpl.html).
Copyright 2019-onwards G J Barnard.
Author G J Barnard - [gjbarnard.co.uk](https://gjbarnard.co.uk) and [Moodle.org](https://moodle.org/user/profile.php?id=442195)
License [GNU GPL v3 or later](https://www.gnu.org/copyleft/gpl.html).

Developed and maintained by
===========================
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE.
Moodle profile | [Moodle.org](http://moodle.org/user/profile.php?id=442195)
Web profile | [About.me](http://about.me/gjbarnard)
Moodle profile | [Moodle.org](https://moodle.org/user/profile.php?id=442195)
Web profile | [gjbarnard.co.uk](https://gjbarnard.co.uk)

Free Software
=============
The Foundation theme is 'free' software under the terms of the GNU GPLv3 License, please see 'COPYING.txt'.

It can be obtained for free from:
[github.com/gjb2048/moodle-theme_foundation/releases](https://github.com/gjb2048/moodle-theme_foundation/releases)
[github.com/gjbarnard/moodle-theme_foundation/releases](https://github.com/gjbarnard/moodle-theme_foundation/releases)

You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the
FAQ - [www.gnu.org/licenses/gpl-faq.html](//www.gnu.org/licenses/gpl-faq.html) - is a good place to look.
Expand All @@ -51,14 +51,14 @@ The 'Swatches' are from [Bootswatch.com](https://bootswatch.com/) and licensed u
in order for them to work with Moodle.

If you make improvements or bug fixes then I would appreciate if you would send them back to me by forking from
[GitHub](https://github.com/gjb2048/moodle-theme_foundation) and doing a 'Pull Request' so that the rest of the Moodle community
[GitHub](https://github.com/gjbarnard/moodle-theme_foundation) and doing a 'Pull Request' so that the rest of the Moodle community
benefits.

Support
=======
As Foundation is licensed under the GNU GPLv3 License it comes with NO support. If you would like support from
me then I'm happy to provide it for a fee (please see my contact details above). Otherwise, the 'Themes' forum:
moodle.org/mod/forum/view.php?id=46 is an excellent place to ask questions.
me then I'm happy to provide it for a fee (please see my contact details above). Otherwise, the '[Themes](https://moodle.org/mod/forum/view.php?id=46)'
forum is an excellent place to ask questions.

Sponsorships
============
Expand Down Expand Up @@ -133,5 +133,7 @@ See Changes.md
Me
==
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE.
Moodle profile: [Moodle.org](http://moodle.org/user/profile.php?id=442195)
Web profile : [About.me](http://about.me/gjbarnard)

- Moodle profile | [Moodle.org](https://moodle.org/user/profile.php?id=442195)
- @gjbarnard | [X](https://twitter.com/gjbarnard).
- Web profile | [gjbarnard.co.uk](https://gjbarnard.co.uk)
14 changes: 7 additions & 7 deletions Support.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ If you'd like to sponsor, get support or fund improvements, then please do get i

- gMail eMail | gjbarnard at gMail dt com.
- My website eMail | contact at gjbarnard dt co dt uk.
- GitHub | Please outline your issue / improvement on '[GitHub](https://github.com/gjb2048/moodle-theme_foundation/issues)'.
- GitHub | Please outline your issue / improvement on '[GitHub](https://github.com/gjbarnard/moodle-theme_foundation/issues)'.
- @gjbarnard | '[X](https://twitter.com/gjbarnard)'.

Bespoke work
Expand All @@ -29,15 +29,15 @@ to ask questions.
Foundation can be obtained from:

* [Moodle.org](https://moodle.org/plugins/view.php?plugin=theme_foundation).
* [GitHub](https://github.com/gjb2048/moodle-theme_foundation/releases).
* [GitHub](https://github.com/gjbarnard/moodle-theme_foundation/releases).

You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the
FAQ - [GPL FAQ](https://www.gnu.org/licenses/gpl-faq.html) - is a good place to look.

If you reuse any of the code then I kindly ask that you make reference to the format.

If you make improvements or bug fixes then I would appreciate if you would send them back to me by forking from
[GitHub](https://github.com/gjb2048/moodle-theme_foundation) and doing a 'Pull Request' so that the rest of the Moodle community
[GitHub](https://github.com/gjbarnard/moodle-theme_foundation) and doing a 'Pull Request' so that the rest of the Moodle community
benefits.

Required version of Moodle
Expand All @@ -54,7 +54,7 @@ is essential that you are operating the required version of Moodle as stated abo
that is out of its control.

If you think you've discovered a genuine bug with the theme then please look at the Moodle [Themes forum](https://moodle.org/mod/forum/view.php?id=46) first to see if it
has already been repoted. Secondly, look at [GitHub](https://github.com/gjb2048/moodle-theme_foundation/issues).
has already been repoted. Secondly, look at [GitHub](https://github.com/gjbarnard/moodle-theme_foundation/issues).

I operate a policy that I will fix all genuine issues in 'my' (not other developers of the theme) code, when fully described and
replicatable.
Expand All @@ -64,12 +64,12 @@ version.php file / or the top of the 'Information' settings tab. Other 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.

You can use either the '[Themes forum](https://moodle.org/mod/forum/view.php?id=46)' or '[GitHub](https://github.com/gjb2048/moodle-theme_foundation/issues)'.
You can use either the '[Themes forum](https://moodle.org/mod/forum/view.php?id=46)' or '[GitHub](https://github.com/gjbarnard/moodle-theme_foundation/issues)'.

Developed and maintained by
===========================
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE.

- Moodle profile | [Moodle.org](http://moodle.org/user/profile.php?id=442195)
- Moodle profile | [Moodle.org](https://moodle.org/user/profile.php?id=442195)
- @gjbarnard | [X](https://twitter.com/gjbarnard).
- Web profile | [About.me](http://about.me/gjbarnard)
- Web profile | [gjbarnard.co.uk](https://gjbarnard.co.uk)
9 changes: 6 additions & 3 deletions amd/src/anti_gravity.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/**
* Foundation theme.
*
* @module theme_foundation/anti_gravity
* @copyright 2019 Gareth J Barnard
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @module theme_foundation/anti_gravity
* @copyright 2019 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

/* jshint ignore:start */
Expand Down
7 changes: 5 additions & 2 deletions amd/src/collapseblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
* Collapse block.
*
* @module theme_foundation/collapseblock
* @copyright © 2019-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2019 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

/* jshint ignore:start */
Expand Down
7 changes: 5 additions & 2 deletions amd/src/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
* Drawer.
*
* @module theme_foundation/drawer
* @copyright © 2019-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2019 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/


Expand Down
8 changes: 5 additions & 3 deletions amd/src/icon_system_fontawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
* Foundation theme.
*
* @module theme_foundation/icon_system_fontawesome
* @copyright © 2019-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
* @copyright 2019 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

define(['core/icon_system', 'jquery', 'core/ajax', 'core/mustache', 'core/localstorage', 'core/url'],
Expand Down
8 changes: 6 additions & 2 deletions amd/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
*
* @module theme_foundation/util
* @copyright 2020 Andrew Nicols <[email protected]>
* @copyright &copy; 2023-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
* @copyright 2023 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

import {call as fetchMany} from 'core/ajax';
Expand Down
11 changes: 5 additions & 6 deletions classes/admin_setting_configcolourpicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
/**
* Foundation theme.
* @package theme_foundation
* @copyright &copy; 2021-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2021 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Colour picker that allows you to state 'use default' and not apply the setting.
*
* @copyright &copy; 2021-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class admin_setting_configcolourpicker extends \admin_setting_configcolourpicker {
/** @var string default colour */
Expand Down
13 changes: 5 additions & 8 deletions classes/admin_setting_configinteger.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
* Integer admin setting with lower and upper limits.
*
* @package theme_foundation
* @copyright &copy; 2019-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2019 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Integer admin setting with lower and upper limits.
*
* @package theme_foundation
* @copyright &copy; 2019-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_setting_configinteger extends \admin_setting_configtext {
/** @var int lower range limit */
Expand Down
11 changes: 5 additions & 6 deletions classes/admin_setting_configselect.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
/**
* Foundation theme.
* @package theme_foundation
* @copyright &copy; 2018-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2018 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Config select setting that sets the default on first run.
*
* @copyright &copy; 2018-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class admin_setting_configselect extends \admin_setting_configselect {
/**
Expand Down
12 changes: 5 additions & 7 deletions classes/admin_setting_getprops.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@
* Get properties setting.
*
* @package theme_foundation
* @copyright &copy; 2021 G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2021 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Get properties class.
*
* @package theme_foundation
* @copyright &copy; 2021 G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_setting_getprops extends \admin_setting {
/** @var string Store properties. */
Expand Down
11 changes: 5 additions & 6 deletions classes/admin_setting_information.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
/**
* Foundation theme.
* @package theme_foundation
* @copyright &copy; 2022-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2022 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Setting that displays information. Based on admin_setting_description in adminlib.php.
*
* @copyright &copy; 2022-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class admin_setting_information extends \admin_setting {
/** @var int The branch this Grid format is for. */
Expand Down
11 changes: 5 additions & 6 deletions classes/admin_setting_markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
/**
* Foundation theme.
* @package theme_foundation
* @copyright &copy; 2021-onwards G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2021 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Setting that displays markdown files. Based on admin_setting_description in adminlib.php.
*
* @copyright &copy; 2021-onwards G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class admin_setting_markdown extends \admin_setting {
/** @var string Filename */
Expand Down
12 changes: 5 additions & 7 deletions classes/admin_setting_putprops.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@
* Put properties with validation setting.
*
* @package theme_foundation
* @copyright &copy; 2021 G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2021 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;

/**
* Set properties class.
*
* @package theme_foundation
* @copyright &copy; 2021 G J Barnard.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_setting_putprops extends \admin_setting_configtextarea {
/** @var string Name of the theme. */
Expand Down
18 changes: 7 additions & 11 deletions classes/admin_settingspage_tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
/**
* Container for settings pages to display as tabs.
*
* @package theme_foundation
* @copyright &copy; 2020 G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @copyright 2016 Ryan Wyllie - from Boost theme.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package theme_foundation
* @copyright 2016 Ryan Wyllie - from Boost theme.
* @copyright 2020 G J Barnard.
* @author G J Barnard -
* {@link https://moodle.org/user/profile.php?id=442195}
* {@link https://gjbarnard.co.uk}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_foundation;
Expand All @@ -30,12 +32,6 @@

/**
* Container for settings pages to display as tabs.
*
* @package theme_foundation
* @copyright &copy; 2020 G J Barnard.
* @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
* @copyright 2016 Ryan Wyllie - from Boost theme.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_settingspage_tabs extends admin_settingpage {
/** @var The tabs */
Expand Down
Loading

0 comments on commit 34dde99

Please sign in to comment.