From: <var...@us...> - 2014-11-27 15:32:25
|
Revision: 9385 http://sourceforge.net/p/phpwiki/code/9385 Author: vargenau Date: 2014-11-27 15:32:22 +0000 (Thu, 27 Nov 2014) Log Message: ----------- Add <label> Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl trunk/themes/default/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2014-11-26 13:47:32 UTC (rev 9384) +++ trunk/themes/MonoBook/templates/info.tmpl 2014-11-27 15:32:22 UTC (rev 9385) @@ -31,7 +31,7 @@ } // Count words preg_match_all('/\\w+\\W*/', $revision->_data['%content'], $whitespacematches); -if (1 == $c = count_all($whitespacematches)) +if (1 == ($c = count_all($whitespacematches))) $wordcount = fmt("1 word"); else $wordcount = fmt("%s words", $c); @@ -50,6 +50,7 @@ $LOCKED_CB = HTML::input(array('type' => 'checkbox', 'name' => 'edit[locked]', + 'id' => 'locked', 'disabled' => !$user->isadmin(), 'checked' => $page->get('locked'))); @@ -125,7 +126,7 @@ <?php if ($is_current) { ?> <tr> <td class="align-right"><?php echo $LOCKED_CB ?></td> - <td class="pageinfo"><?php echo _("Locked")?></td> + <td class="pageinfo"><label for="locked"><?php echo _("Locked")?></label></td> </tr> <tr> <td class="align-right pageinfo"><?php echo _("ACL type") . _(":") ?></td> Modified: trunk/themes/default/templates/info.tmpl =================================================================== --- trunk/themes/default/templates/info.tmpl 2014-11-26 13:47:32 UTC (rev 9384) +++ trunk/themes/default/templates/info.tmpl 2014-11-27 15:32:22 UTC (rev 9385) @@ -36,6 +36,7 @@ $LOCKED_CB = HTML::input(array('type' => 'checkbox', 'name' => 'edit[locked]', + 'id' => 'locked', 'disabled' => !$user->isadmin(), 'checked' => $page->get('locked'))); @@ -112,7 +113,7 @@ <?php if ($is_current) { ?> <tr> <td class="align-right"><?php echo $LOCKED_CB ?></td> - <td class="pageinfo"><?php echo _("Locked")?></td> + <td class="pageinfo"><label for="locked"><?php echo _("Locked")?></label></td> </tr> <?php if (ENABLE_EXTERNAL_PAGES) { ?> <tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |