Moodle plugins directory: Decaf | Moodle.org
Decaf
Themes ::: theme_decaf
Maintained by Paul Nicholls
A clean, simple theme which adds an "Awesomebar" at the top of the page to provide quick, easy navigation.
Latest release:
213 sites
33 downloads
17 fans
Current versions available: 5
Decaf is a three-column, fluid-width theme for Moodle that was created by Lei Zhang and Paul Nicholls. It improves usability by fixing an "Awesomebar" at the top of the screen, which provides dropdown menus containing everything in the Navigation and Settings blocks.
For developers, it also transforms the performance info into a colorful bar which floats at the bottom of the screen, which increases awareness of the performance statistics.
Useful links
Contributors
Paul Nicholls (Lead maintainer): Developer
Lei Zhang: Developer
Please login to view contributors details and/or to contact them
I think a found a solution for the bug I described earlier.
I change line 526 in lib.php:
"if ($PAGE->course->id == $course->id && $this->format_display_course_content($course->format))"
to
"if ($PAGE->course->id == $course->id && (!method_exists($this, 'format_display_course_content') || $this->format_display_course_content($course->format)))"
This line is from an earlier release of decaf, because I'm not a PHP programmer Now it seems to work.
BTW, I have the same issue as with the role "student" if I configure the ability for self enrolment in courses. If a user want to enrole hisself in a course this error came up too:
"PHP Fatal error: Call to undefined method decaf_expand_navigation::format_display_course_content() in ../moodle/theme/decaf/lib.php on line 526"
Ishan
Strict Standards: Declaration of decaf_expand_navigation::add_category() should be compatible with that of global_navigation::add_category() in /var/www/lms/theme/decaf/lib.php on line 761
I really like the theme. Any ideas on fixing this?
Thanks!
For example if topic has 2 quizzes, and topic 12 has 3 assignments and topic 10 is hidden, -- the menu will show topic 11 with nothing in it (even though where should be 2 quizzes) and shows topic 12 with 2 the 2 quizzes ( and it should show the 4 assignments)
If I were to add another topic new topic ( The assignments would appear there) So it is off by 1 topic after the hidden topic) Any recommendations on how to fix?
how can theme show couse's shortname instead of fullname in the header?? Where should I change the variable?
Line 734 of the latest 1.8.2 version needs to have the third parameter from the parent global_navigation::add_category defined
protected function add_category(stdClass $category, navigation_node $parent)
becomes:
protected function add_category(stdClass $category, navigation_node $parent, $nodetype = self::TYPE_CATEGORY)
This will remove one of the strict warnings that a few people are experiencing issues with.
Thanks,
Stacey
A course reports dropdown would be ideal, perhaps under course Administration.
Thanks
Martin
The "reports" branch sits in a somewhat awkward location - within the navigation dropdown (user icon, second from the left on the Awesomebar), find the course (depending on your Moodle version and settings, either directly in that dropdown or under My Courses or Courses). It should have a "Reports" branch under it, containing all the usual course reports.
The next version of Decaf will include a copy of this "Reports" branch under Course Administration, along with some other similar enhancements.
-Paul
We are using Moodle 2.3.8+ build 20130712, and using the collapsed topics course formats. If we have the random glossary block enabled on a page, then the add activity or resource link 'breaks' and you cant add anything. If you have the accessibility block on a page, if you try to open a collapsed topic, the topic fails to open, and you jump up to the top of the page.
Another thing I have noticed is that if you try to view the html code inside a label again when using IE10, the HTML code is not visible.
We are also experiencing issues where you cannot download files (work, excel, pdf, etc) sometimes.
All of these issues appear to be resolved when using Chrome, however we have a lot of students who are using IE.
I have switched themes temporarily, and these issues also clear, I wonder if anyone else is having these issues.
Any help would be greatly appreciated.
Many thanks
Martin