🌍
English
This is an old revision of the document!
On thumbnails list, if you have severals items, you may want to display the navigation bar on the top in addition to the bottom one.
<?php /* Plugin Name: Navbar on top Version: 1.0 Author: Mistic Author URI: http://www.strangeplanet.fr */ add_event_handler('loc_end_index', 'top_navbar'); function top_navbar() { global $template; $template->set_prefilter('index', 'top_navbar_prefilter'); } function top_navbar_prefilter($content, &$smarty) { $search = '{if !empty($CATEGORIES)}{$CATEGORIES}{/if}'; $add = '{if !empty($navbar)}{include file=\'navigation_bar.tpl\'|@get_extent:\'navbar\'}{/if}'; return str_replace($search, $add.$search, $content); } ?>
More to come…