Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // this is the php template to list all events
- $siteurl = home_url();
- $stylesheetdir = get_bloginfo('stylesheet_directory');
- if (class_exists('EM_Locations')) {
- // 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>";
- // echo do_shortcode('[location_search_form ajax=1]');
- echo EM_Locations::output(array(
- 'format_header' => '<table class="locations-table">
- <thead>
- <tr>
- <th class="location-name">Name</th>
- <th class="location-address">Address</th>
- <th class="location-city">City</th>
- <th class="location-country">Country</th>
- </tr>
- </thead>
- <tbody>
- ',
- 'format' => '<tr>
- <td class="location-name">#_LOCATIONLINK</td>
- <td class="location-address">#_LOCATIONADDRESS</td>
- <td class="location-city">#_LOCATIONTOWN</td>
- <td class="location-country">#_LOCATIONCOUNTRY</td>
- </tr>
- ',
- 'format_footer' => '</tbody></table>',
- 'limit' => 20,
- // 'mode' => 'monthly',
- 'orderby' => 'name',
- 'order' => 'ASC',
- 'pagination' => 1
- ));
- } else {
- echo "<p>Our events list is offline shortly due to maintenance.</p>";
- }
- ?>
- <div class="clear"></div>
- <p class="event-notes">Note: Dates are in European format (day/month).</p>
- <h3>Submit your events</h3>
- <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