281 theme has a way to llist pages...
Theme.php:
public function add_template_vars()
{ if( !$this->template_engine->assigned( 'pages' ) ) {
$this->assign('pages', Posts::get( array(
'content_type' => 'page',
'status' => Post::status('published'), 'nolimit' => 1 ) ) );
}
Sidebar.php:
<?php
// List Pages
foreach ( $pages as $page ) {
echo '<li><a href="' . $page->permalink . '" title="' . $page->title .
'">' . $page->title . '</a></li>' . "\n"; }
?>
I hope that's what you're looking for...
On 23 Feb, 23:18, John Edmondson <[email protected]> wrote:
> As some of you know I have been trying to design a theme for habari for a
> while now. Wp has wp_page_menu('arguments') , which I cant seam to find a
> habari alternative. If there is can someone let me know? Or point me down
> the correct route of doing this in php?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---