Skip to content

Commit

Permalink
Merge pull request #194 from trema-tech/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rmady authored May 23, 2024
2 parents 7623775 + f301c7c commit c49e2fb
Show file tree
Hide file tree
Showing 114 changed files with 974 additions and 565 deletions.
36 changes: 13 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Trema Theme for Moodle LMS
==========================

![PHP](https://img.shields.io/badge/PHP-v7.4%20to%20v8.2-blue.svg)
![Moodle](https://img.shields.io/badge/Moodle-v4.0%20to%20v4.3-orange.svg)
![Moodle](https://img.shields.io/badge/Moodle-v4.0%20to%20v4.4-orange.svg)
[![GitHub Issues](https://img.shields.io/github/issues/trema-tech/moodle-theme_trema.svg)](https://github.com/trema-tech/moodle-theme_trema/issues)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-green.svg)](#contributing)
[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](#license)
Expand All @@ -29,16 +29,14 @@ Trema Theme for Moodle LMS
- [Contributors](#contributors)
- [Motivation for this theme](#motivation-for-this-theme)
- [License](#license)
- [Donate](#donate)

# Basic Overview

The Trema theme is a free, responsive Moodle theme that offers a clean and modern design. One unique aspect of the Trema theme is its ability to display course information in a grid format, which can be particularly useful for sites with many courses. Additionally, it includes options for a customizable frontpage, login page, and footer. Overall, the Trema theme for Moodle aims to provide a visually appealing and user-friendly interface for Moodle users. The main goal for this theme is to not need another site for information/advertising/marketing.

All features from Boost (native Moodle theme) plus these Trema features:

- Frontpage
- Configurable optional image banner or content slider with texts.
All features from Boost (native Moodle theme) plus these Trema features:
- Frontpage
- Configurable optional image banner or content slider with texts.
- Banner title spacing.
- Banner title text options for uppercase, lowercase, and capitalized.
- Create up to six beautiful cards with custom content with icons.
Expand All @@ -50,23 +48,23 @@ All features from Boost (native Moodle theme) plus these Trema features:
- Removable Moodle and Trema branding.
- Configurable footer background opacity and color.
- Font and colors
- Primary, secondary, navbar, body background, Log In button, drawer, and footer colors.
- Primary, secondary, navbar, body background, Log In button, drawer, and footer colors.
- Choose from 15 different fonts for the site, page titles, and headings.
- Site text options for uppercase, lowercase, and capitalized.
- Automatic font color selection.
- Automatic font color selection.
- General
- Customizable page background image.
- Selectable link style
- Selectable link style.
- Primary menu items can be hidden (Home, Dashboard, My Courses, and Site Administration).
- The primary menu can be aligned to the left, center or to the right.
- The primary menu can be aligned to the left, center or the right.
- Removable Log out link.
- Custom favicon.
- Exclusive Admin Dashboard with interesting site information for admins.
- Optional decorative Trema Lines.
- Enable a softer look by rounding some corners for buttons, cards, secondary navbars, etc...
- Enable a softer look by rounding some corners for buttons, cards, secondary navbars, etc.
- Course cards
- Show contacts and categories.
- Course summary is available as a Moodle dialog, a popover, or as a link.
- Course summary is available as a Moodle dialogue, a popover, or as a link.
- Show or hide courses in hidden categories.
- Course
- Show activity navigation buttons.
Expand Down Expand Up @@ -165,7 +163,7 @@ There are no known security considerations at this time.

### How can I get answers to other questions?

Got a burning question that is not covered here? If you can't find your answer, submit your question in the Moodle forums or open a new issue on Github at:
Got a burning question that is not covered here? If you can't find your answer, submit your question in the Moodle forums or open a new issue on GitHub at:

https://github.com/trema-tech/moodle-theme_trema/issues

Expand Down Expand Up @@ -193,7 +191,7 @@ The development of this theme was motivated by our own experience in Moodle LMS

Copyright © 2019-2024 Rodrigo Mady and TNG Consulting Inc.

This file is part of Moodle - http://moodle.org/
This file is part of Moodle - https://moodle.org/

Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -206,14 +204,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.

[(Back to top)](#table-of-contents)

# Donate

[Please donate](https://www.paypal.com/donate/?hosted_button_id=6FBZMX8PFPS3Y&source=qr) to help us to improve Theme Trema:

![QR Code](https://user-images.githubusercontent.com/8494871/150807066-84f999f6-5227-4dc7-9781-b949ed485a3a.png)
along with Moodle. If not, see <https://www.gnu.org/licenses/>.

[(Back to top)](#table-of-contents)
5 changes: 2 additions & 3 deletions classes/output/core/course_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,18 @@ protected function coursecat_coursebox_content(coursecat_helper $chelper, $cours
$content .= '<h3 class="h5 card-title m-1">' . $coursenamelink . '</h4>';
$content .= html_writer::end_tag('div');

$content .= html_writer::start_tag('div', ['class' => 'card-block text-center']);

// Print enrolmenticons.
$content .= html_writer::start_tag('div', ['class' => 'enrolmenticon']);
if ($icons = enrol_get_course_info_icons($course)) {
foreach ($icons as $pixicon) {
$content .= $this->render($pixicon);
}
}
$content .= html_writer::end_tag('div'); // End enrolment icon.

$content .= html_writer::start_tag('div', ['class' => 'pull-right']);
$content .= html_writer::end_tag('div'); // End pull-right.

$content .= html_writer::end_tag('div'); // End card-block.

// Display course contacts. See core_course_list_element::get_course_contacts().
if ($showcardcontact && $course->has_course_contacts()) {
Expand Down
7 changes: 2 additions & 5 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@

namespace theme_trema\privacy;

use \core_privacy\local\metadata\collection;

defined('MOODLE_INTERNAL') || die();
use core_privacy\local\metadata\collection;

/**
* The trema theme stores a user preference data.
Expand All @@ -42,8 +40,7 @@ class provider implements
// This plugin has data.
\core_privacy\local\metadata\provider,
// This plugin has some sitewide user preferences to export.
\core_privacy\local\request\user_preference_provider
{
\core_privacy\local\request\user_preference_provider {

/** The user preferences for the course index. */
const DRAWER_OPEN_INDEX = 'drawer-open-index';
Expand Down
Binary file added fonts/Alegreya-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Alegreya-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Alegreya-Medium.ttf
Binary file not shown.
Binary file added fonts/Alegreya-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Alegreya-SemiBold.ttf
Binary file not shown.
Binary file added fonts/Alegreya-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-Medium.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-SemiBold.ttf
Binary file not shown.
Binary file added fonts/EBGaramond-SemiBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/Lato-Black.ttf
Binary file not shown.
Binary file modified fonts/Lato-BlackItalic.ttf
Binary file not shown.
Binary file modified fonts/Lato-Bold.ttf
Binary file not shown.
Binary file modified fonts/Lato-BoldItalic.ttf
Binary file not shown.
Binary file modified fonts/Lato-Italic.ttf
Binary file not shown.
Binary file modified fonts/Lato-Light.ttf
Binary file not shown.
Binary file modified fonts/Lato-LightItalic.ttf
Binary file not shown.
Binary file modified fonts/Lato-Regular.ttf
Binary file not shown.
Binary file added fonts/Lato-Thin.ttf
Binary file not shown.
Binary file added fonts/Lato-ThinItalic.ttf
Binary file not shown.
Binary file added fonts/Montserrat-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Montserrat-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Montserrat-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/Montserrat-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/Montserrat-Medium.ttf
Binary file not shown.
Binary file added fonts/Montserrat-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Montserrat-SemiBold.ttf
Binary file not shown.
Binary file added fonts/Montserrat-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Montserrat-Thin.ttf
Binary file not shown.
Binary file added fonts/Montserrat-ThinItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSans-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-SemiBold.ttf
Binary file not shown.
Binary file added fonts/NotoSans-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-Thin.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ThinItalic.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-Bold.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/OpenSans-ExtraBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-Italic.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-Light.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-LightItalic.ttf
Binary file not shown.
Binary file added fonts/OpenSans-Medium.ttf
Binary file not shown.
Binary file added fonts/OpenSans-MediumItalic.ttf
Binary file not shown.
Binary file modified fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file added fonts/OpenSans-SemiBold.ttf
Binary file not shown.
Binary file added fonts/OpenSans-SemiBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-Black.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-BlackItalic.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-Bold.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-ExtraBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-Italic.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-Medium.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-MediumItalic.ttf
Binary file not shown.
Binary file modified fonts/PlayfairDisplay-Regular.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-SemiBold.ttf
Binary file not shown.
Binary file added fonts/PlayfairDisplay-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Poppins-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Poppins-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Poppins-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/Poppins-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file added fonts/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added fonts/Poppins-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Poppins-Thin.ttf
Binary file not shown.
Binary file added fonts/Poppins-ThinItalic.ttf
Binary file not shown.
Binary file added fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file added fonts/Roboto-MediumItalic.ttf
Binary file not shown.
22 changes: 11 additions & 11 deletions lang/de/theme_trema.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
$string['alert'] = 'Alarm';
$string['cachedef_dashboardadmin'] = 'Cache für das Admin dashboard';
$string['card'] = 'Karte';
$string['cardicon_desc'] = 'Eine Liste aller Font-Awesome-Icons steht hier: <a href="https://fontawesome.com/v6/icons/" target="_blank">https://fontawesome.com/v6/icons/</a>';
$string['cardicon'] = 'Karten-Icon';
$string['cardicon_desc'] = 'Eine Liste aller Font-Awesome-Icons steht hier: <a href="https://fontawesome.com/v6/icons/" target="_blank">https://fontawesome.com/v6/icons/</a>';
$string['cardiconcolor'] = 'Karten-Icon Farbe';
$string['cardlink'] = 'Karten-Link';
$string['cardsubtitle'] = 'Karten-Untertitel';
Expand All @@ -47,25 +47,25 @@
$string['defaultfooter_defaultdesc'] = 'Standartinhalt für Startseiten-Fußbereich';
$string['defaultfooter_desc'] = 'Standartinhalt für Fußbereich';
$string['defaultfooter'] = 'Fußbereich';
$string['defaultfrontpagebody_desc'] = 'Standartinhalt für Body der Startseite';
$string['defaultfrontpagebody'] = 'Body Startseite';
$string['defaultfrontpagebody_desc'] = 'Standartinhalt für Body der Startseite';
$string['diskusage'] = 'Moodledata Festplattennutzung';
$string['enableadmindashboard_desc'] = 'Deaktivieren um den Bereich unter dem Admin dashboard zu verstecken: <img class="img-responsive" src="{$a}"/>';
$string['enableadmindashboard'] = 'Aktiviere Admin Dashboard';
$string['favicon_desc'] = 'Favicon hochladen. (.ico Datei)';
$string['enableadmindashboard_desc'] = 'Deaktivieren um den Bereich unter dem Admin dashboard zu verstecken: <img class="img-responsive" src="{$a}"/>';
$string['favicon'] = 'Eigenes Favicon';
$string['favicon_desc'] = 'Favicon hochladen. (.ico Datei)';
$string['footertitle'] = 'Theme Trema';
$string['frontpagebanner_desc'] = 'Bilddatei für Startseitenbanner hochladen. Ersetzt das Standartbild eines Waldes.';
$string['frontpagebanner'] = 'Startseitenbanner';
$string['frontpagebuttonclass_desc'] = 'Der Stil kann durch verwenden einer anderen Klasse verändert werden.';
$string['frontpagebanner_desc'] = 'Bilddatei für Startseitenbanner hochladen. Ersetzt das Standartbild eines Waldes.';
$string['frontpagebuttonclass'] = 'Startseiten-Button HTML-Klasse';
$string['frontpagebuttonhref_desc'] = 'Startseiten-Button href-Attribut eingeben';
$string['frontpagebuttonclass_desc'] = 'Der Stil kann durch verwenden einer anderen Klasse verändert werden.';
$string['frontpagebuttonhref'] = 'Startseiten-Button href';
$string['frontpagebuttonhref_desc'] = 'Startseiten-Button href-Attribut eingeben';
$string['frontpagebuttontext'] = 'Text Startseiten-Button';
$string['frontpagecards'] = 'Startseiten-Karten';
$string['frontpagecontent'] = 'Inhalt der Startseite';
$string['frontpageenablecards_desc'] = 'Deaktivieren um den Bereich unterhalb zu verstecken: <img class="img-responsive" src="{$a}">';
$string['frontpageenablecards'] = 'Startseiten-Karten aktivieren';
$string['frontpageenablecards_desc'] = 'Deaktivieren um den Bereich unterhalb zu verstecken: <img class="img-responsive" src="{$a}">';
$string['frontpagesubtitle'] = 'Untertitel der Startseite';
$string['frontpagetitle'] = 'Titel der Startseite';
$string['image'] = 'Bild {$a}';
Expand All @@ -74,19 +74,19 @@
$string['loginpagestyle'] = 'Stil der Anmeldeseite';
$string['numberofcards'] = 'Anzahl der Karten';
$string['pluginname'] = 'Trema';
$string['primarycolor_desc'] = 'Hauptfarbe.';
$string['primarycolor'] = 'Erste Farbe';
$string['primarycolor_desc'] = 'Hauptfarbe.';
$string['privacy:metadata'] = 'Das Trema Theme speichert keinerlei Nutzerdaten.';
$string['region-side-admin'] = 'Nur Administratoren';
$string['rememberusername'] = 'Nutzer merken';
$string['secondarycolor_desc'] = 'Die zweite Farbe';
$string['secondarycolor'] = 'Zweite Farbe';
$string['secondarycolor_desc'] = 'Die zweite Farbe';
$string['seemore'] = 'Mehr erfahren';
$string['styleguide'] = 'Style Guide';
$string['subtitle'] = 'Untertitel';
$string['summarybutton_text'] = 'Kursbeschreibung';
$string['summarycourselink_text'] = 'Zum Kurs';
$string['summarytype_desc'] = 'Wähle ob die Kurs-Info modal oder als Pop-Over geöffnet wird.';
$string['summarytype'] = 'Kurs-Info Typ';
$string['summarytype_desc'] = 'Wähle ob die Kurs-Info modal oder als Pop-Over geöffnet wird.';
$string['title'] = 'Titel';
$string['total'] = 'Summe';
Loading

0 comments on commit c49e2fb

Please sign in to comment.