Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Menu Main
- */
- ?>
- <?php get_header(); ?>
- <div class="wrapper750 clear">
- <div class="wrapper500">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <h2><?php the_title(); ?></h2>
- <p class="downloadmenu">(<a href="/content/ltmexican-menu.pdf">Download PDF of Menu</a>)</p>
- <div class="menu">
- <?php
- $pages = get_pages('child_of='.$post->ID.'&sort_column=post_modified&sort_order=desc');
- $count = 0;
- foreach($pages as $page)
- {
- ?>
- <div class="item">
- <a href="<?php echo get_page_link($page->ID) ?>"><img src="<?php echo($arr[$i]["Thumbnail"]); ?>" width="70" height="70"></a><a href="<?php echo get_page_link($page->ID) ?>"><h3><?php echo $page->post_title ?></h3></a></div>
- <?php
- }
- ?>
- <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
- </div>
- <?php endwhile; // end of the loop. ?>
- </div>
- <div class="wrapper230">
- <?php get_sidebar(); ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement