XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Course
    • Testing Instructions:
      Hide
      1. Install course format 'testheaders' from attachment. It is basically the copy of topics format but with displaying test course headers/footers
      2. Create one course in 'topics' (or any other existing) format and one in 'testheaders' format
      3. Open 4 tabs - the course view page, and any page with 'report' layout inside the course, for each of those courses
      4. In 5th tab keep changing the theme for the site and refresh the previous 4 tabs, make sure that page layout looks ok, html is not broken for existing format and headers and footers appear in place in testheaders format.(Please note that this issue did not fix all the core themes, see comment below.)
      5. Enable one of the non-modified themes and make sure that testheaders format displays a developer warning on course view page
      Show
      Install course format 'testheaders' from attachment. It is basically the copy of topics format but with displaying test course headers/footers Create one course in 'topics' (or any other existing) format and one in 'testheaders' format Open 4 tabs - the course view page, and any page with 'report' layout inside the course, for each of those courses In 5th tab keep changing the theme for the site and refresh the previous 4 tabs, make sure that page layout looks ok, html is not broken for existing format and headers and footers appear in place in testheaders format.(Please note that this issue did not fix all the core themes, see comment below.) Enable one of the non-modified themes and make sure that testheaders format displays a developer warning on course view page
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-36048-master

      Description

      New functions in core_renderer

      • course_content_header()
      • course_content_footer()
      • course_header()
      • course_footer()

      New methods in class format_base:

      • course_header() : returns the renderable object to display as course-specific header on any course page (above navbar)
      • course_footer() : course-specific footer
      • course_content_header() : returns the renderable object to display as course-specific content header in main content section (i.e. prev-next module navigation)
      • course_content_footer() - course-specific footer to be displayed in main content section

      Plus alter all core themes to display this information.
      Plus display warning message if course format has content header/footer but theme does not support it

      COURSE FORMAT DEVELOPERS: See usage example in attached course format testheaders

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Integrator:
              Dan Poltawski
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12