Themes: Foundation

theme_foundation
Maintained by Gareth J BarnardGareth J Barnard
This is a basic Bootstrap version 4 theme that aims to provide a starting platform upon which to build themes and child themes.
454 sites
984 downloads
20 fans
Current versions available: 4

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
  • Picture of Plugins bot
    Thu, Oct 25, 2018, 12:40 AM
    Approval issue created: CONTRIB-7493
  • Picture of Emmanuel Maximilien Delangle
    Sat, Jun 22, 2019, 2:13 AM
    Thanks for your work!
    There's a little problem when taking different roles. It shows : Exception : Class 'theme_foundation\output\core_text' not found.
    Do you know how can I solve this problem ?
  • Gareth J Barnard
    Sat, Jun 22, 2019, 3:03 AM
    Dear Emmanuel,

    Please see: https://moodle.org/mod/forum/discuss.php?d=387290. I hope to publish a release soon.

    Gareth
  • Picture of Emmanuel Maximilien Delangle
    Sat, Jun 29, 2019, 3:51 PM
    Thanks Gareth !
  • Picture of Patrycja Nowak
    Fri, Jan 31, 2020, 8:43 PM
    Hi, is there a possibility to change colors?
  • Gareth J Barnard
    Fri, Jan 31, 2020, 9:30 PM
    Dear Patrycja,

    Thank you for your interest in the theme. You can either use the custom SCSS setting or choose from one of the many 'Bootswatches' (Free ones on https://bootswatch.com/) that can be selected from 'Dashboard -> Site administration -> Appearance -> Themes -> Foundation -> Swatch'.

    Gareth
  • Picture of Mohammad Yaseen
    Sun, Jun 7, 2020, 8:47 PM
    Hello Gareth
    Is the Foundation theme compatible with Moodle 3.8?
  • Gareth J Barnard
    Mon, Jun 8, 2020, 2:02 AM
    Dear Mohammad,

    Yes, please look at 'Versions' above.

    G
  • Picture of Mohammad Yaseen
    Sun, Jun 14, 2020, 6:47 PM
    Thank you.
  • Picture of Mohammad Yaseen
    Mon, Jun 22, 2020, 4:13 PM
    Hello Gareth,
    We have been using the Essential theme since Moodle2.0 it was pretty good. Unfortunately, the development of the Essential Theme has stopped with the Moodle3.6 (our current version of Moodle). Now, we want to upgrade to Moodle3.8. I read your post about the essential theme, and your recommendation to use the Foundation theme.

    I've installed the Foundation theme and experimented with the available settings, also I've changed the few aspects (mainly colors) using SCSS. However, I found the following shortcomings (or differences from the essential). Now, I might have missed something, and there's actually a way to achieve what I need. So I'm listing below the things I hope I could work out.

    1- The front page sliders are not in full width.
    2- There's no read more for the main Site news (the entire thread is displayed on the page).
    3- There's no option to set a background for the site (there's one for the login screen). I think this is doable via SCSS, but I'm wondering if there's a direct way through the settings.
    4- Is there a way to have the navigation section to the left instead of the right?

    I love the responsiveness of the theme and its cleanliness. I just hope if the above points could be resolved (maybe there's a way a missed)

    In this link, you can find a few screenshots of our current customization of the Essential Theme and what are the features we hope to get from the Foundation. https://drive.google.com/drive/folders/16muc5Z3q-iiQAyr8ZfnnzKGMtkGVuX_h?usp=sharing

    Once again, thank you for your great work on the Essential theme all these years.

    Regards.
  • Gareth J Barnard
    Wed, Jun 24, 2020, 7:48 PM
    Thanks for the information Mohammad.
  • Picture of Claudio Birolini
    Wed, Jul 8, 2020, 10:40 PM
    Hi, I installed the Foundation theme for Moodle ver.3.8.3 + but there are a couple of errors.
    The logo at the top left has the wrong link to the site (missing "/" ending) and, still in nav-bar, there are code writings.
    Thanks for your work!
    c.b.
  • Gareth J Barnard
    Wed, Jul 8, 2020, 11:37 PM
    Dear Claudio,

    Interesting. With the link there does not need to be a trailing forward slash. With the navbar, please post a screen shot of the issue on https://moodle.org/mod/forum/view.php?id=46.

    Thanks,

    Gareth
  • Picture of Claudio Birolini
    Wed, Jul 8, 2020, 11:48 PM
    With the link there does IS NEED to be a trailing forward slash: for security reasons the link without slash is not accepted.
  • Gareth J Barnard
    Thu, Jul 9, 2020, 12:09 AM
    Ok, just searched and cannot find any security reason why the forward slash is needed. Please supply evidence.
Please login to post comments