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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Paul Nicholls (Lead maintainer): Developer
Lei Zhang
Lei Zhang: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Ishan Anders
    Mon, 22 Apr 2013, 9:29 PM
    Hi,

    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


  • Ishan Anders
    Mon, 22 Apr 2013, 9:30 PM
    I mean "have had the same issue" in the above post with self enrolement
  • Dustin Horstmann
    Tue, 23 Apr 2013, 9:20 AM
    Hello, I have received this error after installing this theme:

    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!
  • Lori Bakken
    Fri, 26 Apr 2013, 12:52 AM
    Using the latest version of decaf -- When a topic is hidden, the awesomebar menu items breaks for students. It works fine as an admin and teacher.

    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?
  • Luwice M
    Wed, 1 May 2013, 11:13 AM
    Hi Paul, I want all edit icon on blocks (move, configure, assign role) always display without I click edit button. Where to modify it? I want all display like default theme. thanks
  • Daniel Willshaw
    Thu, 2 May 2013, 7:05 PM
    Anybody have any insight as to how to add a logo to the site?
  • Adam Morris
    Tue, 11 June 2013, 10:47 AM
    I was wondering if anyone knows how to make it so that the blocks always appear on the right side. When adding a new item to a course it is on the left. Does anybody know which file to edit and where? I poked around in layout/ but couldn't seem to find the right spot.
  • Dan Draden
    Tue, 11 June 2013, 11:05 AM
    I find the awesome bar is quite awesome, and I want it. But the theme will not function properly for me and gives an error that it cannot connect to the database. I was able to fix the error by setting a different theme. Using latest version of moodle 2.5
  • Adam Morris
    Tue, 11 June 2013, 11:07 AM
    Dan, not being able to connect to the database can't be fixed by changing the theme... are you sure that is how you were able to resolve the issue?
  • Andreas Panagiotopoulos
    Fri, 26 July 2013, 6:23 AM
    Hello to all,

    how can theme show couse's shortname instead of fullname in the header?? Where should I change the variable?
  • Lori Bakken
    Sat, 24 Aug 2013, 12:21 AM
    I believe I'm using the latest version of decaf and in the navigation block (not the awesomebar menu), when you click to expand your current course down, it doesn't show any activities. However, when you dock the navigation block, it works fine.
  • Stacey Walker
    Thu, 29 Aug 2013, 4:54 PM
    Hi Paul,

    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
  • Martin Arman-Addey
    Wed, 4 Sept 2013, 10:53 PM
    Hi there, my course staff need to see the logs & statistics for their individual courses. Other than having to turn the Navigation block back on and access the course reports from there, Is there any way that these course reports can easily be found using the navigation of the dropdown menus.

    A course reports dropdown would be ideal, perhaps under course Administration.

    Thanks

    Martin
  • Paul Nicholls
    Thu, 5 Sept 2013, 4:59 AM
    Hi 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
  • Martin Arman-Addey
    Wed, 9 Oct 2013, 7:06 PM
    I am experiencing a few issues with using the theme with IE 10, and wonder if you can shed any light.

    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
Please login to post comments