Created
June 3, 2015 11:35
-
-
Save remyperona/b6e01263e1bbcdcca7f2 to your computer and use it in GitHub Desktop.
geo-mashup-info-window.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// A potentially heavy-handed way to remove shortcode-like content | |
add_filter( 'the_excerpt', array( 'GeoMashupQuery', 'strip_brackets' ) ); | |
?> | |
<div class="locationinfo post-location-info"> | |
<?php if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<section class="line entry-content"> | |
<h2 class="entry-title"><?php the_title(); ?></h2> | |
<p class="entry-meta"><span class="blogdate"><?php echo get_the_date(); ?></span> <?php the_category( ', ' ) ?></p> | |
<?php if ( function_exists( 'has_post_thumbnail') and has_post_thumbnail() ) : | |
the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft' ) ); | |
endif; ?> | |
<?php the_excerpt(); ?> | |
<a href="<?php the_permalink() ?>" class="more-link"><?php echo sprintf( __( 'Continue reading %s →', 'racine' ), '<span class="screen-reader-text"> ' . get_the_title() . '</span>' ) ?></a> | |
</section> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<h2 class="center">Not Found</h2> | |
<p class="center">Sorry, but you are looking for something that isn't here.</p> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment