SchoolPress
http://users.sch.gr/cbitsis/schoolpress-new

Plugin Fold Page Menus

Καταχωρήθηκε στις 22 Φεβρουαρίου 2008 @ 11:20 από admin - Κατηγορία: Πρόσθετα (Plugins) - Κανένα σχόλιο

Αν θέλετε αναδιπλωμένο μενού χρησιμοποιήστε το plugin Fold Page Menus

Θα το βρείτε στη διεύθυνση [1] http://www.mealldubh.org/index.php/software/fold_page_menus/

Installation

To install, simply download fold_page_menus.tgz into your wp-content/plugins directory and unzip it - it?s just a single file fold_page_menus.php. Install it through Site Admin -> Plugins as usual.

You then need to add it into your current theme. Edit the sidebar.php file and add fold_page_menus to the call to wp_list_pages.

For the WordPress default theme, this means changing this line:
<?php wp_list_pages('title_li=<h2>Pages'); ?></h2>
to this:
<?php wp_list_pages(fold_page_menus().'title_li=<h2>Pages'); ?></h2>
and that?s it.

How does it work?

wp_list_pages accepts an exclude parameter with a list of pages which should not be shown in the menu. This plug-in works out which pages to exclude and creates the necessary exclude= list.


URL: http://users.sch.gr/cbitsis/schoolpress-new/?p=80

URLs in this post:
[1] http://www.mealldubh.org/index.php/software/fold_page_menus/: http://www.mealldubh.org/index.php/software/fold_page_menus/

Copyright © 2010 SchoolPress. All rights reserved.