GeoMashup
[ class tree: GeoMashup ] [ index: GeoMashup ] [ all elements ]

Source for file info-window.php

Documentation is available at info-window.php

  1. <?php
  2. /**
  3.  * This is the default template for the info window in Geo Mashup maps.
  4.  *
  5.  * Don't modify this file! It will be overwritten by upgrades.
  6.  *
  7.  * Instead, copy this file to "geo-mashup-info-window.php" in your theme directory,
  8.  * or info-window.php in the Geo Mashup Custom plugin directory, if you have that
  9.  * installed. Those files take precedence over this one.
  10.  *
  11.  * For styling of the info window, see map-style-default.css.
  12.  *
  13.  * @package GeoMashup
  14.  */
  15.  
  16. // A potentially heavy-handed way to remove shortcode-like content
  17. add_filter'the_excerpt'array'GeoMashupQuery''strip_brackets' ) );
  18.  
  19. ?>
  20. <div class="locationinfo post-location-info">
  21. <?php if (have_posts()) ?>
  22.  
  23.     <?php while (have_posts()) the_post()?>
  24.  
  25.         <h2><a href="<?php the_permalink(?>" title="<?php the_title_attribute()?>"><?php the_title()?></a></h2>
  26.         <p class="meta"><span class="blogdate"><?php the_time('F jS, Y'?></span> <?php the_category', ' ?></p>
  27.         <?php if function_exists'has_post_thumbnail'and has_post_thumbnail() ) ?>
  28.         <?php the_post_thumbnail()?>
  29.         <?php endif?>
  30.  
  31.         <?php if ($wp_query->post_count == 1?>
  32.             <div class="storycontent">
  33.                 <?php the_excerpt()?>
  34.             </div>
  35.         <?php endif?>
  36.  
  37.     <?php endwhile?>
  38.  
  39. <?php else ?>
  40.  
  41.     <h2 class="center">Not Found</h2>
  42.     <p class="center">Sorry, but you are looking for something that isn't here.</p>
  43.  
  44. <?php endif?>
  45.  
  46. </div>

Documentation generated on Sat, 09 Jul 2011 21:54:54 -0700 by phpDocumentor 1.4.3