> Section Subnav wordpress plugin resources analysis

Section Subnav wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Section Subnav
Version 0.9
Author Benjamin Knight
Rating 100
Last updated 2011-08-30 04:40:00
Downloads
1964
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Section Subnav plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Section Subnav plugin added 9 bytes of resources to the Home page and 44 bytes of resources to the sample Post page.

Section Subnav plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Section Subnav plugin ads no tables to your Wordpress blog database.

This is a simple plugin that was born out of working on several projects with sectional navigations. For example, consider the following common navigation tree structure:

  • Home
  • Item
  • About Us
    • Sub-item #1
    • Sub-item #2
  • Item
  • Item

Then, whenever on the "About Us" page or any of its sub-items, it would output that peice of the navigation:

  • About Us
    • Sub-item #1
    • Sub-item #2

This is particularly useful for websites that have a top horizontal navigation which shows top-level items and want to show a vertical subnavigation in the sidebar.

This plugin works by parsing the output of the wp_nav_menu function as XML and analyzing the CSS class hooks (current-menu-ancestor, current-menu-item, and current-menu-parent). Because it uses PHP's SimpleXML library it therefore requires PHP 5+. It uses the theme's registered menu locations.

This plugin also exposes the section_subnav() function for theme developers to use as a template tag to manually place a subnav inside the theme. Here is the usage:

<?php

    section_subnav( array( // defaults
        'before_widget' => '<nav id="section-subnav" class="widget widget_section-subnav">',
        'after_widget' => "</nav>",
        'before_title' => '<h3 class="section-subnav-title widget-title">',
        'after_title' => '</h3>',
        'echo' => true
    ));

?>

It returns false when there is no subnavigation.

This function also provides the section_subnav_args filter hook for writing less code and easier integration with other plugins and child themes.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Blog Happens screenshot

Blog Happens

by: ChrisHappens

9127
0%
Synergy screenshot

Synergy

by: arpowers

18425
100%