Commit 6c720ec0 authored by Robert Lyon's avatar Robert Lyon
Browse files

Making the links on Extensions page more accessible (Bug #1285896)



- to screenreaders

Change-Id: I3dd755851581d5a4d85394a4b8ab3d05734efcca
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent e10fefd4
......@@ -31,6 +31,7 @@ $string['update'] = 'Update';
$string['change'] = 'Change';
$string['send'] = 'Send';
$string['go'] = 'Go';
$string['configfor'] = 'Configuration for';
$string['default'] = 'Default';
$string['upload'] = 'Upload';
$string['complete'] = 'Complete';
......
......@@ -1361,6 +1361,8 @@ function activate_plugin_form($plugintype, $plugin) {
'submit' => array(
'type' => 'submit',
'class' => 'linkbtn',
'title' => ($plugin->active ? get_string('hide') : get_string('show')) . ' ' . $plugintype . ' ' . $plugin->name,
'hiddenlabel' => true,
'value' => $plugin->active ? get_string('hide') : get_string('show')
),
),
......
......@@ -17,7 +17,7 @@
{if $data.notinstallable}
{str tag='notinstallable'}: {$data.notinstallable}
{else}
<span id="{$plugintype}.{$plugin}.install">(<a href="" onClick="{$installlink}('{$plugintype}.{$plugin}'); return false;">{str tag='install' section='admin'}</a>)</span>
<span id="{$plugintype}.{$plugin}.install">(<a href="" onClick="{$installlink}('{$plugintype}.{$plugin}'); return false;">{str tag='install' section='admin'} <span class="accessible-hidden ">{$plugintype} {$plugin}</span></a>)</span>
{/if}
<span id="{$plugintype}.{$plugin}.message"></span>
</li>
......@@ -35,7 +35,7 @@
{/if}
{if $data.config}
{if !$data.activateform} [ {else} | {/if}
<a href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}">{str tag='config'}</a>
<a href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}">{str tag='config'} <span class="accessible-hidden ">{str tag='configfor'} {$plugintype} {$plugin}</span></a>
{/if}
{if $data.config || $data.activateform} ] {/if}
</li>
......@@ -44,7 +44,7 @@
<ul>
{foreach from=$data.types key='type' item='config'}
<li>{$type}
{if $config} [ <a href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}&amp;type={$type}">{str tag='config'}</a> ]{/if}</li>
{if $config} [ <a href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}&amp;type={$type}">{str tag='config'} <span class="accessible-hidden ">{str tag='configfor'} {$plugintype} {$plugin}</span></a> ]{/if}</li>
{/foreach}
</ul>
</li>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment