Foundation

Themes ::: theme_foundation
Maintained by Gareth J BarnardGareth J Barnard
This is a Bootstrap theme that aims to be minimalistic and modern in look.
Latest release:
917 sites
1k downloads
38 fans
Current versions available: 11

Introduction

This is a Bootstrap version 4 theme that aims to be different and yet at the same time have some traditions of the past.  It does not extend the Boost theme but rather 'pull' the files it needs from it because that is where they are currently stored.  No navigation drawer or docking has been implemented.  However, you can collapse and expand blocks and put them in a 'drawer' region.

There is added support for 'partial' templates which can then be imported into a main template with the syntax '> partial/mypartial'.  Currently the theme does not work when placed within a $CFG->themedir folder.


Features

  • Bootstrap V4 CSS with core Moodle CSS..
  • Child theme capable - in 'beta'.
  • Custom SCSS.
  • Custom Swatches from Bootswatch.com and licensed under the MIT License (MIT).
  • Partial template support.
  • Theme modules - in 'beta', see the swatch_modules.php file.


Moodle 3.5 version discontinued

Because of a recently found issue with User Tours not working, which is fixed in the Moodle 3.6 version (3.6.0.2) but not the 3.5, I have decided to stop development on the Moodle 3.5 version of the theme.  The fix has implications for lots of other functionality.  This is down to docs.moodle.org/dev/Miscellaneous_callbacks#override_webservice_execution  being required.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6

Contributors

Gareth J Barnard
Gareth J Barnard (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Gareth J Barnard
    Sun, May 2, 2021, 12:24 AM
    Dear Christophe,

    ??? I already have in version 3.10.1.1 for Moodle 3.10, released on 15th March 2021! Current version is 3.10.1.2, released on the 28th April 2021.

    Gareth
  • Mitja Decman
    Thu, Sep 30, 2021, 6:09 PM
    Hi, we have a Foundation theme installed on our Moodle 3.11.1. We have all courses set to grid layout. We use two columns: right and central. Would like to add a block above the Summary section in our courses. We noticed that the regions might be Poster, Marketing and Drawer, but we do not know, where they are or how to enable them. We could not found any documentation about this, except some code on github.

    Thanks for help.

    Mitja
  • Gareth J Barnard
    Thu, Sep 30, 2021, 10:37 PM
    Dear Mitja,

    Foundation 'open source' and provided under the GPLv3 license 'AS IS'. Therefore with an understanding PHP and Moodle Themes, then its possible to understand the code and solve your specific problem. Where I've felt I've needed to, I have placed comments in the code that explain things.

    Kind regards,

    Gareth
  • Mitja Decman
    Fri, Oct 1, 2021, 7:09 PM
    Dear Gareth, thank you for your reply.
  • Mevi Pron
    Thu, Aug 25, 2022, 6:56 AM
    Dear Gareth, How can I make the displayed courses not appear vertically but horizontally?
  • Gareth J Barnard
    Thu, Aug 25, 2022, 9:57 PM
    Dear Mevi,

    Its complicated, you can modify the code yourself or if you want me to do so or describe in detail how to then I'll need paying for my time / skills please.

    Kind regards,

    Gareth
  • Rok P
    Thu, Aug 3, 2023, 5:33 PM
    Hello,
    I downloaded the latest version for Moodle 4.1 (401.1.1 - Updated on 15.6.2023), but the file I get is named "theme_foundation_moodle41_2022112602.zip".
    If I open version.php inside plugin it says
    $plugin->release = '401.1.1';
    $plugin->version = 2022112602;
    $plugin->requires = 2022112800.00; // 4.1 (Build: 20221128).

    So confusing. Can you please check. Something does not seem right.

    Kind Regards,
    Rok
  • Gareth J Barnard
    Thu, Aug 3, 2023, 8:27 PM
    Dear Rok,

    Please read the installation instructions in the contained Readme.md file.

    Kind regards,

    Gareth
  • Rok P
    Fri, Aug 4, 2023, 3:01 AM
    Hello,

    I think the explanation is here: https://docs.moodle.org/dev/version.php
    "the date part YYYYMMDD should be frozen at the branch forking date and the XX is used for incrementing the value on the given stable branch"
    Thanks,
    Rok
  • Gareth J Barnard
    Fri, Aug 4, 2023, 4:54 AM
    Dear Rok,

    I'm confused as I thought you couldn't work out how to install the theme? As the version.php file is correct.

    Kind regards,

    Gareth
  • Rok P
    Thu, Sep 21, 2023, 4:32 AM
    Hello,

    The theme works. The versioning convention contains Moodle initial release date, which was confusing. All is good.

    Now I have an issue with (at least) one of the letters in our alphabet. The word "username" in our language contains letter 'š'. On login page, there is a placeholder for username, but instead of actual letter ('š') it is displayed it as its unicode representation: '\u0161'. If I swtich to defaut theme "Boost", the letter in placeholder is displayed correctly ('š'). I have no idea why this happens. Also, I have noticed that this happens only on login page. Haven't tested the password placeholder as it does not contain any non-ascii letters.

    Any help would be much appreciated.

    Kind Regards,
    Rok
  • Gareth J Barnard
    Thu, Sep 21, 2023, 5:15 AM
    Dear Rok,

    Please post more details, like versions of the theme and Moodle, along with a screen shot and the name of the your language so that I can attempt a replication on https://moodle.org/mod/forum/view.php?id=46. And, as stated previously, the versioning is correct.

    G
  • Rok P
    Mon, Sep 25, 2023, 7:01 PM
    Hello,
    Anyone interested in the unicode issue, Gareth confirmed its a bug and prepared a fix: https://github.com/gjb2048/moodle-theme_foundation/commit/8d3d005c3ebccdb14376c98c79524468a66d17e6
    Fix will be included in next 4.1 release.
    BR, Rok
  • social boh
    Mon, Dec 18, 2023, 7:21 PM
    Hello,
    Moodle 4.3.1 and Foundation theme 403.1.2. Error is: class constructors must be invoked with 'new'
    Regards
  • Gareth J Barnard
    Mon, Dec 18, 2023, 7:51 PM
    Dear Social Boh,

    No idea bar perhaps it could be a JS error. However, I've not spotted it. Please post full details on the themes forum -> https://moodle.org/mod/forum/view.php?id=46 - screenshots essential.

    G
1 2 3
Please login to post comments