Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Stockists
- */
- ?>
- <?php get_header(); ?>
- <?php include (TEMPLATEPATH . '/maps-api.php'); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post grid_12" id="post-<?php the_ID(); ?>">
- <div class="hero"><h1><?php the_title(); ?></h1></div>
- </div>
- <div class="page grid_12">
- <ul id="stockists">
- <?php $loop = new WP_Query( array( 'post_type' => 'stockist' ) ); ?>
- <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <li class="head grid_12 alpha omega">Victoria</li>
- <li class="stockist" class="grid_12 alpha omega">
- <ul>
- <li class="grid_2 alpha"><strong><?php the_title(); ?></strong></li>
- <li class="grid_4">
- <a onclick="codeAddress()" href="" id="address" data-reveal-id="map_modal">
- <?php meta('address'); ?>
- </a>
- </li>
- <li class="grid_2"><?php meta('phone'); ?></li>
- <li class="grid_2"><a href="mailto:<?php meta('email'); ?>"><?php meta('email'); ?></a></li>
- <li class="grid_2 omega"><a href="<?php meta('website'); ?>" class="button small">Website »</a></li>
- </ul>
- </li>
- <?php endwhile; ?>
- <?php include (TEMPLATEPATH . '/map-modal.php'); ?>
- </ul>
- <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
- </div>
- <?php endwhile; endif; ?>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment