All pastes #897172 Raw Edit

index.php

public php v1 · immutable
·published 2008-02-09 08:39 UTC
rendered paste body
<?php get_header(); ?><div id="site"><div id="content">	<h2>Latest Contacts</h2>	        <?php $posts = query_posts( $query_string . '&orderby=title&order=asc' ); ?>	<?php $alt = ""; ?>	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>	<?php if ($alt == "") { $alt = " alt"; } else { $alt = ""; } ?>		<div class="contact<?php echo $alt; ?>">		<span class="m-name"><a href="<?php the_permalink(); ?>"><?php echo get_post_meta($post->ID, "First Name", true); ?> <?php echo get_post_meta($post->ID, "Last Name", true); ?></a></span>		<span class="m-email"><?php $has_email = get_post_meta($post->ID, "Email", true); if ( $has_email == '' ) { echo '&nbsp;'; } else { ?><a href="mailto:<?php echo get_post_meta($post->ID, "Email", true); ?>"><?php echo get_post_meta($post->ID, "Email", true); } ?></a></span>		<span class="m-mobile">Mobile: <span><?php echo get_post_meta($post->ID, "Mobile", true); ?></span></span>		<hr/>	</div>	<?php endwhile; else: ?>	<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>	<?php endif; ?>	</div><?php get_sidebar(); ?><?php get_footer(); ?>