Moodle

Encapsulate "accesshide" HTML class in function

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.8.4, 1.9, 2.0
  • Component/s: Accessibility
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

Description

There are currently about 50 uses of the "accesshide" class introduced in Moodle 1.6, many of these are <span class="accesshide">TEX</span>. This patch implements a 'get_accesshide' function in lib/weblib.php, and uses it in weblib, index.php and login/index.php

See this design pattern,

Issue Links

Activity

Hide
Nick Freear added a comment -

See this design pattern,
http://docs.moodle.org/en/Development:Accessibility_notes#Pattern_2:_accesshide

I've just committed this patch to HEAD and 1.8 branch tagged _MERGED.

TODO: follow-up on most uses of "accesshide" class.

Show
Nick Freear added a comment - See this design pattern, http://docs.moodle.org/en/Development:Accessibility_notes#Pattern_2:_accesshide I've just committed this patch to HEAD and 1.8 branch tagged _MERGED. TODO: follow-up on most uses of "accesshide" class.
Hide
Nick Freear added a comment -

Committed partial fix to 1.7 branch (weblib only) for blocked MDL-11439 tagged MOODLE_17_MERGED.

Show
Nick Freear added a comment - Committed partial fix to 1.7 branch (weblib only) for blocked MDL-11439 tagged MOODLE_17_MERGED.
Hide
Nick Freear added a comment -

Committed follow up fix to, calendar/lib.php, lib/weblib.php and tablelib.php, HEAD, 1.9 and 1.8 branch, tagged MERGED.
Fixed for 1.9.

Show
Nick Freear added a comment - Committed follow up fix to, calendar/lib.php, lib/weblib.php and tablelib.php, HEAD, 1.9 and 1.8 branch, tagged MERGED. Fixed for 1.9.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: