From: <var...@us...> - 2016-03-18 15:36:50
|
Revision: 9820 http://sourceforge.net/p/phpwiki/code/9820 Author: vargenau Date: 2016-03-18 15:36:48 +0000 (Fri, 18 Mar 2016) Log Message: ----------- Add <nav> for Monobook and Sidebar Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl trunk/themes/MonoBook/templates/navbar.tmpl trunk/themes/MonoBook/templates/tags.tmpl trunk/themes/Sidebar/templates/navbar.tmpl trunk/themes/Sidebar/templates/rc.tmpl trunk/themes/Sidebar/templates/tags.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -5,6 +5,7 @@ $isActionPage = isActionPage($pagename); $isBrowse = $request->getArg('action') == 'browse'; ?> +<nav role="navigation" aria-label="Actions Menu"> <div class="portlet" id="p-cactions"> <ul> <?php if (!string_ends_with($pagename, '/'._("Discussion"))) { ?> @@ -54,6 +55,8 @@ <?php } ?> </ul> </div> +</nav> +<nav role="navigation" aria-label="Special Actions Menu"> <div class="portlet" id="p-tbx"> <h2><?php echo _("Special Actions") ?></h2> <div class="pBody"> @@ -82,3 +85,4 @@ </ul> </div> </div> +</nav> Modified: trunk/themes/MonoBook/templates/navbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/navbar.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/MonoBook/templates/navbar.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -1,10 +1,10 @@ -<nav role="navigation" aria-label="Main Menu"> <?php // With MonoBook it is similar to Sidebar, named boxes at the left. // actionbuttons, navigation, search, toolbox ?> <!-- The left navigation/search bar --> <!-- Here you should add favorite Links and Categories --> +<nav role="navigation" aria-label="Navigation Menu"> <div class="portlet" id="p-navigation"> <h2><?php echo _("Navigation") ?></h2> <div class="pBody"> @@ -19,6 +19,7 @@ </ul> </div> </div> +</nav> <div class="portlet" id="p-search"> <h2><?php echo _("Search") ?></h2> @@ -41,6 +42,7 @@ </div> </div> +<nav role="navigation" aria-label="Toolbox Menu"> <div class="portlet" id="p-tb"> <h2><?php echo _("Toolbox") ?></h2> <div class="pBody"> Modified: trunk/themes/MonoBook/templates/tags.tmpl =================================================================== --- trunk/themes/MonoBook/templates/tags.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/MonoBook/templates/tags.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -1,7 +1,9 @@ <!-- list of most popular categories --> +<nav role="navigation" aria-label="Favorite Categories Menu"> <div class="portlet" id="p-tags"> <h2><?php echo _("Favorite Categories") ?></h2> <div class="pBody"> <?plugin PopularTags ?> </div> </div> +</nav> Modified: trunk/themes/Sidebar/templates/navbar.tmpl =================================================================== --- trunk/themes/Sidebar/templates/navbar.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/Sidebar/templates/navbar.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -15,7 +15,9 @@ </ul> </div> </div> +</nav> +<nav role="navigation" aria-label="Main Categories Menu"> <div class="portlet" id="p-nav1"> <h2><?php echo _("Main Categories")?></h2> <div class="pBody"> @@ -25,6 +27,7 @@ </ul> </div> </div> +</nav> <div class="portlet" id="p-search"> <h2><?php echo _("Search")?></h2> @@ -35,6 +38,7 @@ </div> </div> +<nav role="navigation" aria-label="Toolbox Menu"> <div class="portlet" id="p-tb"> <h2><?php echo _("Toolbox") ?><?php echo $WikiTheme->folderArrow('p-tb', 'Open') ?></h2> <div class="pBody" id="p-tb-body"> @@ -65,7 +69,7 @@ </ul> </div> </div> +</nav> <?php echo Template('rc') ?> <?php echo Template('tags') ?> <!-- end of the left (by default at least) column --> -</nav> Modified: trunk/themes/Sidebar/templates/rc.tmpl =================================================================== --- trunk/themes/Sidebar/templates/rc.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/Sidebar/templates/rc.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -1,4 +1,5 @@ <!-- RecentChangesCached Box --> +<nav role="navigation" aria-label="Recent Changes Menu"> <div class="portlet" id="p-rc"> <h2><?php echo _("Recent Changes") ?> <?php echo $WikiTheme->folderArrow('p-rc', 'Closed') ?></h2> <div class="pBody" id="p-rc-body" style="display:none;"> @@ -9,3 +10,4 @@ ?> </div> </div> +</nav> Modified: trunk/themes/Sidebar/templates/tags.tmpl =================================================================== --- trunk/themes/Sidebar/templates/tags.tmpl 2016-03-18 15:01:28 UTC (rev 9819) +++ trunk/themes/Sidebar/templates/tags.tmpl 2016-03-18 15:36:48 UTC (rev 9820) @@ -1,7 +1,9 @@ <!-- list of most popular categories --> +<nav role="navigation" aria-label="Favorite Categories Menu"> <div class="portlet" id="p-tags"> <h2><?php echo _("Favorite Categories") ?> <?php echo $WikiTheme->folderArrow('p-tags', 'Open') ?></h2> <div class="pBody" id="p-tags-body"> <?plugin PopularTags ?> </div> </div> +</nav> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |