Giter VIP home page Giter VIP logo

moodle-an-hochschulen / moodle-theme_boost_campus Goto Github PK

View Code? Open in Web Editor NEW
38.0 13.0 25.0 1.47 MB

Moodle 3.x Boost child theme which is intended to meet the needs of university campuses and adds several features and improvements ––– for Moodle 4.x please use our Theme Boost Union

License: GNU General Public License v3.0

PHP 51.71% JavaScript 4.09% Gherkin 19.96% SCSS 10.03% Mustache 14.21%
moodle moodle-plugin moodle-theme

moodle-theme_boost_campus's People

Contributors

abias avatar christianwolters avatar danowar2k avatar kathrin84 avatar kulmann avatar lucaboesch avatar melanietreitinger avatar t-schroeder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-theme_boost_campus's Issues

Theme breaks admin menu tabs

Upon switching Moodle's theme to Campus Boost, the tabs that divide up the admin page cease to function. The URL bar will still change to (For example) admin/search.php#linkcourses or admin/search.php#linkgrades, but the content of the page below no longer updates. We are attempting to apply this theme to a dev version of an active site, so there are other plugins in play that may complicate this issue and therefore this is more a request for troubleshooting suggestions than a full bug report. Any advice as to which Moodle js files handle tab switching and where to look for potential conflicts? Developer mode outputs no errors.

Thanks!

Blöcke rechts statt links (Blocks on the left side)

Für mich ist es hier der 1. Eintrag auf github! Ich hoffe, ich platziere hier mein Anliegen am richtigen Ort und darf es auch auf Deutsch machen?!
Bei mir erscheinen alle Blöcke auf der rechten Seite. Gibt es eine Möglichkeit, dass ich als Admin alle Blöcke standardmäßig auf die linke Seite platzieren kann? Oder finde ich diese Einstellungen gar nicht in den Designeinstellungen?

Login issue

Hi
The last Moodle Upgrade (3.5.2 and 3.6 beta) (Build: 20181110) access does not allow user authentication: "Invalid login, please try again" on Manual accounts method. Probably for "MDL-63183 auth: Login protection" changes. Link
Regards

Feature: dark navbar color selector

The dark navbar uses $gray-dark by default. I realize I can overrule this scss variable in the raw initial scss but it might be nice if we could set it with a color picker.

Problem with translation strings

In the theme settings under

  • Course Layout Settings
  • Footer Layout Settings
  • Additional Layout Settings

it looks like, that the theme shows [[stringstotranslate]] but not the actual string.

Moodle: v3.3.1

Option "Switch role to...": allow it to be in both places

Dear Kathrin

I've got a feature request I'm also willing to work on.
The 'Move "Switch role to..." to the course settings' option allows to move the named option to the course settings. Or you could just leave it in the user menu as is.
Actually a third possibility is what I would think about: let it appear at both places!
So it gives usability in the course settings but also prevents puzzling questions from user which miss the function at the used place.
I'd like to work on a pulldown menu labeled '"Switch role to..." location' (or similar) with the select options "just in the course settings / just in the user menu / in both places".
Of course with an upgrade script for transition from the actual theme to that upcoming version.

Best,
Luca

Hamburger Menue

The Boost-Campus Theme offers a lot of things that we missed in Moodle 3.4 in the Boost theme.- thanks for your effort.

It is nice that the entry "Dashboard" in the hamburgermenue can be moved to the top also in course-view.
I wished I could also move "site-home", "calendar" and "private files", to the top of that menue.

Also, I would like to to be able to collapse the "my couses" list in that menue or make it disappear altogether. When subscribed to many courses that list is not complete anyway and the entry "more" takes me to "site-home" instead of showing my complete list of courses.
We use the legacy course owerview block on the dashboard and are quite happy with that.

Cheers Bernd Albers

hamburger menue -dashboard

hamburger menue -courseview

Versions for Moodle 3.3 and (coming) 3.4 branches ?

I like this plugin a lot.

Is there an estimate as to when there will be a version available for the current MOODLE 3.3 and the soon to be released MOODLE 3.4 branches in the Moodle plugins database?

This theme seems to work nicely in both branches, but I have not done an extensive testing.

According to the stats at https://moodle.org/plugins/stats.php?plugin=theme_boost_campus , most of the users of this theme actually have a Moodle 3.3 version :)
versions

Having the Moodle plugins database with this branches marked as supported will make it very easy to install from the web UI.

Thanks for a very nice plugin.

Sections in nav drawer have borders

Hello,

if you have a course using the Topics format and in that course's settings change the "Course layout" to "Show one section per page" you all of a sudden have borders between the sections in the nav drawer. These are not there when using the "Show all sections on one page".
sections-all-on-one-page
sections-one-per-page

Course administration: no line break

When you reduce the window width in the course administration, the content looks like this:

mdl_course_admin_users

When you change:

.col-sm-3 {
    float: left;
    width: 25%;
}

to:

.col-sm-3 {
    float: none;
    width: 25%;
}

it looks like this:

mdl_course_admin_users_fixed

Moodle Theme boost campus issue

I have installed boost campus plugin, but after installation, all href are replaced by #. So redirection to relevant pages is not taking place.
Please suggest solution. Thank You

Text hardly recognizable when inverting the default light navbar

When inverting the default light navbar to a dark one some texts stay black/dark blue and are therefore hardly recognizable (e.g. text of language dropdown and links (hover effect)).
I changed the navbar using the „dark navbar“ checkbox in the “design setting” tab.
Moodle 3.4.1, Boost Campus v3.4-r1 (version: 2018021900).

links on hover hardly recognizable

change language hardly recognizable

When trying to enrol as a guest into a course, there is an error

The following error pops up, when a guest tries to access the guest enrolment of a course under /enrol/index.php?id=COURSEID

screenshot

The problem ist that the $pageflatnav-Object in locallib.php:theme_boost_campus_set_node_on_top is not set for a guest, resulting in the error.

It may be a problem with your plugin boostnavigation which we have installed here at the TU Darmstadt, but we are not sure and this is just a thought.

I will create a pull-request fixing this issue.

Brand info color selection ignored

Using version 2018052300 of the boost_campus theme under Moodle 3.5.1 stable, if a brand info color is selected by the user it is ignored and UI elements which previously (under version 2018020700 at least) respected the user selected color continue to be displayed using the default Boost color:

screen shot 2018-07-24 at 14 54 37

(version 2018020700 - user selected brand info color respected)

screen shot 2018-07-24 at 14 59 30

(version 2018052300 - user selected brand info color ignored)

Problems with the helptextmodal function by using the forumng plugin

Hello Kathrin,

we are testing moodle 3.5.1+ (Build (2018051400) and your latest boost_campus theme (version 2018073100/release v3.5-r2) right now. We found an error by using the forumng plugin (version 2018011800) from the open university. It is not possible to activate the close button.

bildschirmfoto vom 2018-09-06 18-28-49

Please could you have a look at this issue.

I diabled the helptextmodal function for now.

Cheers,
Michael

Loginform logo image is not responsive

When loginform is set to true the logo above the form is not responsive.

issue_screenshot

If this is not intended, it could be fixed with two additions to the img tag width="100%" height = "auto" .

I'd open a pull request but it seems to be too much trouble for the simple fix :)

Suppress i#back-to-top from print stylesheet

Dear Kathrin and Alex
I've got a suggestion to make.
You could suppress the back-to-top fa-chevron-up from print stylesheet so it's vanished when printing out a page.
Best,
Luca

boost_campus seems not to work with moodle 3.5

Some elements of the page layout seem broken after switching to moodle 3.5
Going back to theme boost solves the issue, given that the beauty of boost_campus is lost. Clearing caches does not help.

Text and icons of footer blocks unreadable

When placing a block in the footer, its text and icons become white which makes them invisible on the white background of the block.

You can remedy this with custom CSS but it would be nice if the theme would already take care of it.

unbenannt
unbenannt2
unbenannt3
unbenannt4

Deprecated funktion pix_url

After installing the plugin and having debug mode enabled, I was greeted by this error message:

pix_url is deprecated. Use image_url for images and pix_icon for icons.

This function is called 3 times in classes\output\core_renderer.php

Opening a course page, there are broken image-links in the top-left corner:
screenshot

Installed moodle version is 3.3, OS is windows (windows installation package)

Buttons in site administration dark with dark text

I noticed that some buttons under Site administration look strange:

unbenannt

To see them you need to go to Site administration > Courses > Manage courses and categories. You also need to have a bunch of courses for the buttons to show up. Here's a script that you can put in your Moodle root and run to create enough courses to reproduce this:

<?php
define('CLI_SCRIPT', true);
require_once(dirname(__FILE__).'/config.php');
require_once($CFG->libdir.'/testing/generator/data_generator.php');

echo "Generating courses ...";
$gen = new testing_data_generator();
for ($i = 0; $i < 21; $i++) {
    $course = $gen->create_course();
    echo " $course->shortname";
}
echo "\n";

Title position not vertical centered

It may be occurd only at us, maybe because of our logo, but if not, this is how to fix it:

We had the problem, that the title was not vertical centered within the navbar:
mdl_logo_position_pre

We fixed this with:

.navbar-light .navbar-brand.has-logo {
    color: #fff;
    margin-top: -0.2rem;
}

mdl_logo_position_post

Log in page background image disappears at lower browser window widths

When login page background images have been uploaded via the 'Design Settings' tab, reducing the the log in page width during viewing or viewing the log-in page on reduced width devices e.g. phones and tablets causes the background image to disappear. For us, this occurs whether using the 'Login form' option or not. System information: Moodle 3.3.4 (build: 20180115), Boost Campus 3.3-r3 (version: 2018020700).

Can't login after activating loginform

After activating theme_boost_campus / loginform I could not longer login to my moodle site.
The features sets the login window to the left.
I had to change theme back to boost in the database and only then could I log back in.

Moodle Version: 3.5.3
Boost Campus Theme version 2018073100
Firefox 63

cloze line break fix

We experienced the following problem with a cloze (DE: Lückentext): at a small screen size the line break got triggered a lot:
mdl_gaptext_pre

I fixed this with:

p .subquestion {
   display: inline-block;
}

Now it looks like this:
mdl_gaptext_post

Footer Blocks: Where are they?

In Footer Layout Settings you can change the number of blocks in the footer. I changed the value to "Two blocks columns in footer", but I don't see where I have to go to edit the content of those two footer blocks.

Feature: Course Manager List

In our old 2.7 custom theme we created a section to show some roles which people are managing a specific course section:

kursverwalter

Here is our 2.7 code of ../ourtheme/renderers/course_renderer.php:

        $user_string = "";
        $list_container = [];
        $list_con_counter = 0;
        $chelper = new coursecat_helper();
        $set_flag = FALSE;
        $userroles = Array();
        if ($category != null || $category != 0) {
            $coursecontext = context_coursecat::instance($category); //aktueller context
            if (has_capability('moodle/course:create', $coursecontext)) {
                $category_information = $DB->get_records('course_categories', array('id' => $category)); //informationen aus dem aktuellen context
                  if ($category_information[$category]->parent != 0) {
                    $userroles_current = $DB->get_records('role_assignments', array('contextid' => $coursecontext->id));
                    if (empty($userroles_current) != true){ array_push($userroles, $userroles_current); }
                    $_category = $category;
                    do {
                        $course_context_parent = context_coursecat::instance($category_information[$_category]->parent);
                        $userroles_parent = $DB->get_records('role_assignments', array('contextid' => $course_context_parent->id));
                        if (empty($userroles_parent) != true) { array_push($userroles, $userroles_parent); }
                        $_category = $category_information[$_category]->parent;
                        $category_information = $DB->get_records('course_categories', array('id' => $_category));
                    } while ($category_information[$_category]->parent != 0);
                    if ($userroles != NULL) {
                        $set_flag = TRUE;
                        $user_string .= "<div class='cate_info_wrapper'><h2>Kursverwalter/-innen:</h2><div class='cate_info_content'><ul>";
                            foreach ($userroles as $user1) {
                                foreach ($user1 as $user) {
                                $user_query = $DB->get_record('user', array('id'=> $user->userid));
                                $user_string .= '<li>' . get_string('name') . ': '. $user_query->firstname . ' '. $user_query->lastname . ' -- '. get_string('username') . 
                                ': ' . $user_query->username . ' -- '. get_string('email') . ": <a href='mailto:" . $user_query->email . "'>" . $user_query->email . '</a></li>';
                                }
                            }
                        $user_string .= "</ul></div></div>";
                     }
                }
                else {
                    $userroles = $DB->get_records('role_assignments', array('contextid' => $coursecontext->id));
                    if ($userroles != NULL) {
                        $set_flag = TRUE;
                        $user_string .= "<div class='cate_info_wrapper'><h2>Kursverwalter/-innen:</h2><div class='cate_info_content'><ul>";

                        foreach ($userroles as $user) {
                            $user_query = $DB->get_record('user', array('id'=> $user->userid));
                            $user_string .= '<li>' . get_string('name') . ': '. $user_query->firstname . ' '. $user_query->lastname . ' -- '. get_string('username') . 
                                ': ' . $user_query->username . ' -- '. get_string('email') . ": <a href='mailto:" . $user_query->email . "'>" . $user_query->email . '</a></li>';
                        }
                        $user_string .= "</ul></div></div>";
                    }
               }
           }
           if ($chelper->get_category_formatted_description($coursecat)) {
               $description = $chelper->get_category_formatted_description($coursecat);
               if ($set_flag == TRUE) {
                   $description .= $user_string;
               }
               $output .= $this->box($description, array('class' => 'generalbox info '));
            }
            else {
                if ($set_flag == TRUE) {
                    $description = $chelper->get_category_formatted_description($coursecat);
                    $description .= $user_string;
                    $output .= $this->box($description, array('class' => 'generalbox info '));
                }

            }
        }

(I didn't wrote this code, don't blame me for hard coded strings ^^)

I now try to port this code into 3.3 and boost, but if you have any ideas to improve this feature, please write a comment.

section0title setting appears to have no effect

Hi. As always, many thanks for making this wonderful theme available. When using version 2018073100 of boost_campus under Moodle 3.5.1 we are not seeing the section0title setting as having any effect when enabled, section 0 titles only being visible when editing is switched on.

Block "Add a block" in activity editing UI

Hi Uni Ulm Moodle Team

Your Boost Campus work is terrific!

I noticed a design inconsistency, though, which collides with usual Boost behaviour.
Block "Add a block" does show where it shouldn't IMHO.

To reproduce:

Go to a course, have an activity (e.g. a quiz) in it. You could also reproduce with the notification forum if you wish.
Turn editing on for the course.
Click the activity to get to the activity editing user interface.

What you expect: There's no "Add a block" block.
What actually happens: There is a "Add a block" block.

Thanks for enquiring.

boost_course_editing_activity_edit
boost_campus_course_editing_activity_edit

3.7 Beta redirect error

Hello

Since the last 3 updates of version 3.7 (currently 20190511 in my test environment) an error has been detected in "redirect" giving a message

"Fatal error: Class 'theme_boost\output\core\course_renderer' not found in /data/vhosts/nuryana.com/beta.nuryana.com/theme/boost_campus/classes/output/core/course_renderer.php on line 43"

when you try to enter a course. This does not happen in the other links (administration, for example) Considering that an update is expected this next May 20, maybe we should have planned a patch.

Greetings.

default login page

Please change: classes/output/corse_renderer.php" line 415 'core/login' to 'core/loginform'.
that caused filenotfound error.

Setting "theme_boost_campus | showsettingsincourse" does not work for front page

When the setting above is checked, "unfolding" the settings via the gear wheel does work for courses, but not for the site home/front page (accessible with the url moodle.com/?redirect=0).

Installed moodle version is 3.3, OS is windows (windows installation package). This error could be reproduced on two different machines.

Validating theme_boost_campus ... Error ... Required Moodle version [2019052000.05]

Hello Tech Support,

Please your help ...
I use Moodle 3.7 (Build: 20190520), and get an Error when installing the latest Boost Campus (v3.7-r2, 2019070500, released on 5 July 2019):

Validating theme_boost_campus ... Error
[Error] Required Moodle version [2019052000.05]
Installation aborted due to validation failure

How can I fix this error? Thank you in advance.

"My Courses" in the navigation bar instead of the menu item

Dear Kathrin
With some themes it is possible to add a drop down menu in the navigation bar with all my courses. Can I do this with Boost Campus? Where can I find these settings? Or what I have to enter in "custommenuitems"?

Best,
Hermann

Moodle 3.6 - Problems with messaging system

Hi @rochelmeyer

A few weeks ago we made the decision to upgrade to the new version 3.6.1. and we have returned to the original theme of Moodle (Boost). Unfortunately, we found more problems, especially in the new message system among other details. The Moodle roadmap explains that for the next update they will make other significant changes. Predictably, we would experience new setbacks again.

I have translated a large part of your theme into Spanish, that has been my contribution. However, we have abandoned Boost Campus.

Greetings, Enrique

Originally posted by @aguatacuperche in #46 (comment)

Blocks can disappear if they are placed in the footer without the footer showing

When you enable the setting "No blocks in footer" in the boost campus settings:

But still place Blocks in the Footer in their settings:

They simply disappear and can not be accessed anymore without resetting the dashboard/block settings.

The same thing happens when you set "One block column in footer" and put the block into the middle or right footer-block.

Best regards,
Benedikt

thead in capability overview white on white background

Go to Site administration > Users > Permissions > Capability overview. Select any capability. Then select All roles. Click Get the overview. This is what it looks like:
thead
As you can see, the links to the roles in the thead are white on a white background until you hover over them.

The cause for that seems to be:

thead a {
    color: #fff;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.