The Events Calendar - Version 1.5.1

Version Description

  • updated single.php to improve dependency on eventbrite
  • updated cost function to use filter
Download this release

Release Info

Developer peterchester
Plugin Icon The Events Calendar
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

Files changed (3) hide show
  1. readme.txt +6 -1
  2. the-events-calendar.php +6 -9
  3. views/single.php +2 -10
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
5
  Tags: widget, events, simple, tooltips, grid, month, list, calendar, event, venue, eventbrite, registration, tickets, ticketing, eventbright, api, dates, date, plugin, posts, sidebar, template, theme, time, google maps, google, maps, conference, workshop, concert, meeting, seminar, summit, forum
6
  Requires at least: 2.8
7
  Tested up to: 2.9.1
8
- Stable tag: 1.5
9
 
10
  == Description ==
11
 
@@ -170,6 +170,11 @@ Please visit the forum for questions or comments: http://wordpress.org/tags/the-
170
 
171
  == Changelog ==
172
 
 
 
 
 
 
173
  = 1.5 =
174
 
175
  * Fixed a whole pile of small bugs.
5
  Tags: widget, events, simple, tooltips, grid, month, list, calendar, event, venue, eventbrite, registration, tickets, ticketing, eventbright, api, dates, date, plugin, posts, sidebar, template, theme, time, google maps, google, maps, conference, workshop, concert, meeting, seminar, summit, forum
6
  Requires at least: 2.8
7
  Tested up to: 2.9.1
8
+ Stable tag: 1.5.1
9
 
10
  == Description ==
11
 
170
 
171
  == Changelog ==
172
 
173
+ = 1.5.1 =
174
+
175
+ * updated single.php to improve dependency on eventbrite
176
+ * updated cost function to use filter
177
+
178
  = 1.5 =
179
 
180
  * Fixed a whole pile of small bugs.
the-events-calendar.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: The Events Calendar
4
  Plugin URI: http://wordpress.org/extend/plugins/the-events-calendar/
5
  Description: The Events Calendar plugin enables you to rapidly create and manage events using the post editor. Features include optional Eventbrite integration, Google Maps integration as well as default calendar grid and list templates for streamlined one click installation.
6
- Version: 1.5
7
  Author URI: http://www.shaneandpeter.com/
8
  Text Domain: events
9
  */
@@ -1360,14 +1360,11 @@ if( class_exists( 'The_Events_Calendar' ) && !function_exists( 'get_event_style'
1360
  global $post;
1361
  $postId = $post->ID;
1362
  }
1363
- if( class_exists( 'Eventbrite_for_The_Events_Calendar' ) ) {
1364
- global $spEventBrite;
1365
- $returned = $spEventBrite->the_event_cost($postId);
1366
- if($returned) {
1367
- return $returned;
1368
- }
1369
- }
1370
- if ( $cost = get_post_meta( $postId, '_EventCost', true ) ) {
1371
  return $cost;
1372
  } else {
1373
  return __('Free');
3
  Plugin Name: The Events Calendar
4
  Plugin URI: http://wordpress.org/extend/plugins/the-events-calendar/
5
  Description: The Events Calendar plugin enables you to rapidly create and manage events using the post editor. Features include optional Eventbrite integration, Google Maps integration as well as default calendar grid and list templates for streamlined one click installation.
6
+ Version: 1.5.1
7
  Author URI: http://www.shaneandpeter.com/
8
  Text Domain: events
9
  */
1360
  global $post;
1361
  $postId = $post->ID;
1362
  }
1363
+ $cost = false;
1364
+ apply_filters('the_event_cost',$cost);
1365
+ if ($cost) {
1366
+ return $cost;
1367
+ } elseif ( $cost = get_post_meta( $postId, '_EventCost', true ) ) {
 
 
 
1368
  return $cost;
1369
  } else {
1370
  return __('Free');
views/single.php CHANGED
@@ -41,16 +41,8 @@ include (TEMPLATEPATH.'/header.php'); ?>
41
  </dl>
42
  </div>
43
  <div class="entry-content">
44
- <?php the_content() ?>
45
-
46
-
47
- <?php if ( get_post_meta($post->ID, '_EventBriteId', true) && get_post_meta($post->ID, '_EventBriteStatus', true) == 'Live' && the_event_ticket_count() > 0 ) : // is this registered with eventbrite and live? ?>
48
-
49
- <div id="eventbrite-embed"><iframe src="http://www.eventbrite.com/tickets-external?eid=<?php echo get_post_meta($post->ID, '_EventBriteId', true) ?>&amp;ref=etckt" frameborder="0" marginwidth="5" marginheight="5" vspace="0" hspace="0" width="100%" height="207" allowtransparency="true" scrolling="auto"></iframe></div>
50
-
51
- <?php endif; // end eventbrite?>
52
-
53
-
54
  </div>
55
  <?php edit_post_link('Edit', '<span class="edit-link">', '</span>'); ?>
56
  </div><!-- .post -->
41
  </dl>
42
  </div>
43
  <div class="entry-content">
44
+ <?php the_content() ?>
45
+ <?php if (function_exists('the_event_ticket_form')) { the_event_ticket_form(); } ?>
 
 
 
 
 
 
 
 
46
  </div>
47
  <?php edit_post_link('Edit', '<span class="edit-link">', '</span>'); ?>
48
  </div><!-- .post -->