[Plugin: Subpages Navigation] Minor Issues With Subpages-Navigation Plugin
-
Installed the plugin and copied the style sheet and images as instructed in the installation information and activated the plugin.
Using Twentyten theme, I put the widget in the sidebar.
Got an error that the variable “lightbox” was not defined. To get around the problem, I inserted the following after the function definition for start_el (about line 320 in subpages-navigation.php):
if (!isset($lightbox)) { $lightbox = false; }
The widget then worked as expected.
I also had a problem with the widget title being displayed even though there were no subpages. So I made another modification to subpages-navigation.php about line 112 or so to only display the title if the $pages array has something in it. The code now reads:
if(is_array($pages)): if (count($pages) > 0): echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; endif; ...
With this change, no widget title will be displayed unless there is content to be displayed.
With that, the plugin works the way I’d like it to work.
Thanks!
Roland Smith
rolandksmith at gmail dot comhttps://www.ads-software.com/extend/plugins/subpage-navigation/
- The topic ‘[Plugin: Subpages Navigation] Minor Issues With Subpages-Navigation Plugin’ is closed to new replies.