Commit db24d6e9 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

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

parents 9fb58c57 6c720ec0
...@@ -31,6 +31,7 @@ $string['update'] = 'Update'; ...@@ -31,6 +31,7 @@ $string['update'] = 'Update';
$string['change'] = 'Change'; $string['change'] = 'Change';
$string['send'] = 'Send'; $string['send'] = 'Send';
$string['go'] = 'Go'; $string['go'] = 'Go';
$string['configfor'] = 'Configuration for';
$string['default'] = 'Default'; $string['default'] = 'Default';
$string['upload'] = 'Upload'; $string['upload'] = 'Upload';
$string['complete'] = 'Complete'; $string['complete'] = 'Complete';
......
...@@ -1362,6 +1362,8 @@ function activate_plugin_form($plugintype, $plugin) { ...@@ -1362,6 +1362,8 @@ function activate_plugin_form($plugintype, $plugin) {
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'linkbtn', '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') 'value' => $plugin->active ? get_string('hide') : get_string('show')
), ),
), ),
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{if $data.notinstallable} {if $data.notinstallable}
{str tag='notinstallable'}: {$data.notinstallable} {str tag='notinstallable'}: {$data.notinstallable}
{else} {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} {/if}
<span id="{$plugintype}.{$plugin}.message"></span> <span id="{$plugintype}.{$plugin}.message"></span>
</li> </li>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{/if} {/if}
{if $data.config} {if $data.config}
{if !$data.activateform} [ {else} | {/if} {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}
{if $data.config || $data.activateform} ] {/if} {if $data.config || $data.activateform} ] {/if}
</li> </li>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<ul> <ul>
{foreach from=$data.types key='type' item='config'} {foreach from=$data.types key='type' item='config'}
<li>{$type} <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} {/foreach}
</ul> </ul>
</li> </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