Advertisement
Beee

locations-list.php

Jan 19th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.53 KB | None | 0 0
  1. <?php
  2.         // this is the php template to list all events
  3.         $siteurl                = home_url();
  4.         $stylesheetdir  = get_bloginfo('stylesheet_directory');
  5.  
  6.         if (class_exists('EM_Locations')) {
  7.             // echo "<p>This page lists all the event locations connected to events on our site. You can also <a href="' . $siteurl . '">view them all</a> on one big map.</p>";
  8.             // echo do_shortcode('[location_search_form ajax=1]');
  9.             echo EM_Locations::output(array(
  10.                 'format_header' => '<table class="locations-table">
  11.                 <thead>
  12.                 <tr>
  13.                         <th class="location-name">Name</th>
  14.                         <th class="location-address">Address</th>
  15.                         <th class="location-city">City</th>
  16.                         <th class="location-country">Country</th>
  17.                     </tr>
  18.                 </thead>
  19.                 <tbody>
  20.               ',
  21.                 'format'                => '<tr>
  22.                       <td class="location-name">#_LOCATIONLINK</td>
  23.                       <td class="location-address">#_LOCATIONADDRESS</td>
  24.                       <td class="location-city">#_LOCATIONTOWN</td>
  25.                       <td class="location-country">#_LOCATIONCOUNTRY</td>
  26.                     </tr>
  27.                 ',
  28.                 'format_footer' => '</tbody></table>',
  29.                 'limit'                 => 20,
  30.                 // 'mode'                   => 'monthly',
  31.                 'orderby'               => 'name',
  32.                 'order'                 => 'ASC',
  33.                 'pagination'        => 1
  34.             ));
  35.         } else {
  36.             echo "<p>Our events list is offline shortly due to maintenance.</p>";
  37.         }
  38. ?>
  39. <div class="clear"></div>
  40. <p class="event-notes">Note: Dates are in European format (day/month).</p>
  41. <h3>Submit your events</h3>
  42. <p>You can <a href="<?php echo $siteurl; ?>/events/submit">submit your own event(s)</a>.</p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement