/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function THEMENAME_views_view_list_VIEWNAME($view, $nodes, $type) { foreach ($nodes as $node) { $output .= "<li class='leaf'>" . l($node->node_title, "node/$node->nid") . "</li>\n"; } if ($output) { return "<div class='menu'>\n<ul>\n" . $output . '</ul></div>'; } } ?>