small Tab Topics format patch

small Tab Topics format patch

by Ger Tielemans -
Number of replies: 1

versions:

moodle 25 - TabTopics 2013092600

moodle 26 - TabTopics 2013092600

I love the course format Topic Tabs with one exception: when you give tab zero a name, this name is annoying visible above the tabs. By this little change that is solved:

    //Insert the section 0
    $section = 0;
    $thissection = $sections[$section];

    if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing())
    {
        echo '<ul class="sectionul"><li id="sectiontd-0" class="section main yui3-dd-drop">';

        echo '<div class="content">';

 // do not echo above the tabs
        if (!empty($thissection->name))
        {
           // echo $OUTPUT->heading(format_string($thissection->name, true, array('context' => $context)), 3, 'sectionname');
        }

        echo '<div class="summary">';

Would be better if this choice became an extra checkbox in the settings page of the format...

Average of ratings: -
In reply to Ger Tielemans

Re: small Tab Topics format patch

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Ger,

Sounds reasonable.  Have you contacted the developers?

Cheers,

Gareth