The Events Calendar - Version 2.0.1

Version Description

Small features, UX and Content Tweeks: * Enabled method to turn off event upsell messages on your site in wp-config.php - define( 'TRIBE_HIDE_UPSELL', true ); * Updated migration message to help 1.6.5 users have an easier time when they upgrade to 2.0 * Added a "View my events" link in the settings panel to help users find where the calendar lives * Added Russian and Swedish translation files. * Broke out advanced functions into their own file "advanced-functions.php" * Added in line documentation to all template tags and moved them to separate files in the /public folder * Added and updated documentation on http://tri.be/support/documentation/

Bugs: * Added "00" in the time drop down when in 24 hour mode * Updated default end time to "17" for 24 hour mode * Fixed broken link in the "you need events 2.0 open source" on activation for PRO users. * More tag now properly crops content in loop * Custom meta > number only drop down values now carry over * Resolved an issue where single day view yielded a 404 if date was in the past * Next event widget now shows the proper event * Attachments on recurring events now persist across instances * Custom recurring event error caused by blank end date fixed * Default state now shows properly * Title tags wrong in various views fixed * Event date showing incorrectly for certain cases of recurrence fixed. * Venue / Organizer data not saving for certain cases of recurrence fixed.

Download this release

Release Info

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

Code changes from version 2.0 to 2.0.1

admin-views/events-meta-box.php CHANGED
@@ -119,16 +119,6 @@ if ( !defined('ABSPATH') ) { die('-1'); }
119
  </tr>
120
 
121
  <?php } ?>
122
- <tr class="eventBritePluginPlug">
123
- <td colspan="2" class="tribe_sectionheader">
124
- <h4><?php _e('Additional Functionality', 'tribe-events-calendar'); ?></h4>
125
- </td>
126
- </tr>
127
- <tr class="eventBritePluginPlug">
128
- <td colspan="2">
129
- <p><?php _e('Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-events-calendar' ) ?> <?php printf( __('Check out the <a href="%s">available Add-Ons</a>.', 'tribe-events-calendar' ), TribeEvents::$tribeUrl.'shop/?ref=tec-event' ); ?></p>
130
- </td>
131
- </tr>
132
  <?php $this->do_action('tribe_events_cost_table', $postId, true) ?>
133
  </table>
134
  </div>
119
  </tr>
120
 
121
  <?php } ?>
 
 
 
 
 
 
 
 
 
 
122
  <?php $this->do_action('tribe_events_cost_table', $postId, true) ?>
123
  </table>
124
  </div>
admin-views/events-options.php CHANGED
@@ -48,8 +48,6 @@ div.tribe_settings{
48
  <div id="tribe-events-options-error" class="tribe-events-error error"></div>
49
  <?php $this->do_action( 'tribe_events_options_top' ); ?>
50
  <div class="form">
51
- <p><?php _e('Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-events-calendar' ); ?></p>
52
- <p><?php printf(__('Check out the <a href="%s">available Add-Ons</a>.', 'tribe-events-calendar' ), self::$tribeUrl.'?ref=tec-options') ?></p>
53
  <h3><?php _e('Need a hand?','tribe-events-calendar'); ?></h3>
54
  <p><?php printf( __( 'If you\'re stuck on these options, please go to the <a href="%s">support forum</a>.', 'tribe-events-calendar' ), TribeEvents::$tribeUrl.TribeEvents::$supportPath ); ?></p>
55
  <?php if( function_exists( 'tribe_get_ical_link' ) ): ?>
@@ -143,7 +141,7 @@ div.tribe_settings{
143
  <th scope="row"><?php _e('Events URL slug', 'tribe-events-calendar'); ?></th>
144
  <td><fieldset>
145
  <legend class="screen-reader-text"><?php _e('Events URL slug', 'tribe-events-calendar' ); ?></legend>
146
- <label><input type="text" name="eventsSlug" value="<?php echo esc_attr( tribe_get_option('eventsSlug', 'events') ) ?>" /> <?php _e('The slug used for building the Events URL.', 'tribe-events-calendar' ) ?></label><br /><?php printf( __('Your current Events URL is <strong>%s</strong>', 'tribe-events-calendar' ), tribe_get_events_link() ) ?>
147
  </fieldset></td>
148
  </tr>
149
  <tr>
48
  <div id="tribe-events-options-error" class="tribe-events-error error"></div>
49
  <?php $this->do_action( 'tribe_events_options_top' ); ?>
50
  <div class="form">
 
 
51
  <h3><?php _e('Need a hand?','tribe-events-calendar'); ?></h3>
52
  <p><?php printf( __( 'If you\'re stuck on these options, please go to the <a href="%s">support forum</a>.', 'tribe-events-calendar' ), TribeEvents::$tribeUrl.TribeEvents::$supportPath ); ?></p>
53
  <?php if( function_exists( 'tribe_get_ical_link' ) ): ?>
141
  <th scope="row"><?php _e('Events URL slug', 'tribe-events-calendar'); ?></th>
142
  <td><fieldset>
143
  <legend class="screen-reader-text"><?php _e('Events URL slug', 'tribe-events-calendar' ); ?></legend>
144
+ <label><input type="text" name="eventsSlug" value="<?php echo esc_attr( tribe_get_option('eventsSlug', 'events') ) ?>" /> <?php _e('The slug used for building the Events URL.', 'tribe-events-calendar' ) ?></label><br /><?php printf( __('Your current Events URL is <strong><a href="%s">%s</a></strong>', 'tribe-events-calendar' ), tribe_get_events_link(), tribe_get_events_link() ) ?>
145
  </fieldset></td>
146
  </tr>
147
  <tr>
admin-views/venue-meta-box.php CHANGED
@@ -30,7 +30,13 @@ if ( !defined('ABSPATH') ) { die('-1'); }
30
  <?php
31
  $countries = TribeEventsViewHelpers::constructCountries( $postId );
32
  $defaultCountry = tribe_get_option('defaultCountry');
33
- $current = ($_VenueCountry) ? $_VenueCountry : $defaultCountry[1];
 
 
 
 
 
 
34
 
35
  foreach ($countries as $abbr => $fullname) {
36
  echo '<option value="' . esc_attr($fullname) . '" ';
@@ -48,7 +54,7 @@ if ( !defined('ABSPATH') ) { die('-1'); }
48
  </td>
49
  </tr>
50
  <tr class="venue">
51
- <?php if(!isset($_VenueStateProvince)) $_VenueStateProvince = ""; ?>
52
  <td><?php _e('State or Province:','tribe-events-calendar'); ?></td>
53
  <td><input tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceText" name="venue[Province]" type='text' name='' size='25' value='<?php echo ( $_VenueStateProvince != '' && $_VenueStateProvince != -1 ) ? esc_attr($_VenueStateProvince) : esc_attr($_VenueProvince); ?>' />
54
  <select tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceSelect" name="venue[State]" name=''>
30
  <?php
31
  $countries = TribeEventsViewHelpers::constructCountries( $postId );
32
  $defaultCountry = tribe_get_option('defaultCountry');
33
+ if (isset($_VenueCountry) && $_VenueCountry) {
34
+ $current = $_VenueCountry;
35
+ } elseif (isset($defaultCountry[1])) {
36
+ $current = $defaultCountry[1];
37
+ } else {
38
+ $current = null;
39
+ }
40
 
41
  foreach ($countries as $abbr => $fullname) {
42
  echo '<option value="' . esc_attr($fullname) . '" ';
54
  </td>
55
  </tr>
56
  <tr class="venue">
57
+ <?php if(!isset($_VenueStateProvince) || $_VenueStateProvince == "") $_VenueStateProvince = -1; ?>
58
  <td><?php _e('State or Province:','tribe-events-calendar'); ?></td>
59
  <td><input tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceText" name="venue[Province]" type='text' name='' size='25' value='<?php echo ( $_VenueStateProvince != '' && $_VenueStateProvince != -1 ) ? esc_attr($_VenueStateProvince) : esc_attr($_VenueProvince); ?>' />
60
  <select tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceSelect" name="venue[State]" name=''>
lang/tribe-events-calendar-ru_RU.mo ADDED
Binary file
lang/tribe-events-calendar-ru_RU.po ADDED
@@ -0,0 +1,2070 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # POT for The Events Calendar 2.0 by Modern Tribe, Inc..
2
+ # Copyright (C) 2011 Shane & Peter, Inc.
3
+ # This file is distributed under the same license as the The Events Calendar package.
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: The Events Calendar 2.0\n"
7
+ "Report-Msgid-Bugs-To: \n"
8
+ "POT-Creation-Date: 2011-09-19 16:36-0500\n"
9
+ "PO-Revision-Date: 2011-10-18 01:59-0800\n"
10
+ "Last-Translator: mikei <mm@hilightprojects.com>\n"
11
+ "Language-Team: mikei <mm@hilightprojects.com>\n"
12
+ "Language: \n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e\n"
18
+ "X-Poedit-Basepath: ./\n"
19
+ "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
20
+ "X-Poedit-Language: Russian\n"
21
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
22
+ "X-Poedit-SearchPath-0: ..\n"
23
+
24
+ #: ../views/list.php:16
25
+ #: ../views/gridview.php:37
26
+ msgid "Event List"
27
+ msgstr "Список"
28
+
29
+ #: ../views/list.php:17
30
+ #: ../views/gridview.php:38
31
+ msgid "Calendar"
32
+ msgstr "Календарь"
33
+
34
+ #: ../views/list.php:42
35
+ #: ../views/single.php:17
36
+ msgid "Start:"
37
+ msgstr "Начало:"
38
+
39
+ #: ../views/list.php:46
40
+ #: ../views/single.php:20
41
+ msgid "End:"
42
+ msgstr "Окончание:"
43
+
44
+ #: ../views/list.php:54
45
+ #: ../views/single.php:47
46
+ msgid "Venue:"
47
+ msgstr "Место:"
48
+
49
+ #: ../views/list.php:63
50
+ #: ../views/single.php:33
51
+ #: ../views/single.php:51
52
+ #: ../admin-views/venue-meta-box.php:73
53
+ msgid "Phone:"
54
+ msgstr "Телефон:"
55
+
56
+ #: ../views/list.php:69
57
+ #: ../views/single.php:56
58
+ #: ../admin-views/venue-meta-box.php:19
59
+ msgid "Address:"
60
+ msgstr "Адрес:"
61
+
62
+ #: ../views/list.php:71
63
+ #: ../views/single.php:58
64
+ msgid "Google Map"
65
+ msgstr "Карта Google"
66
+
67
+ #: ../views/list.php:81
68
+ #: ../views/single.php:24
69
+ #: ../admin-views/events-meta-box.php:113
70
+ msgid "Cost:"
71
+ msgstr "Стоимость:"
72
+
73
+ #: ../views/list.php:95
74
+ #, php-format
75
+ msgid " listed under %s. Check out past events for this category or view the full calendar."
76
+ msgstr "Перечислен под %s. Отметить прошедшие события в этой категории или смотреть весь календарь."
77
+
78
+ #: ../views/list.php:97
79
+ #, php-format
80
+ msgid " listed under %s. Check out upcoming events for this category or view the full calendar."
81
+ msgstr "Перечислен под %s. Отметить предстоящие события в этой категории или смотреть весь календарь."
82
+
83
+ #: ../views/list.php:103
84
+ msgid "No upcoming events"
85
+ msgstr "Событий не ожидается "
86
+
87
+ #: ../views/list.php:107
88
+ msgid "No previous events"
89
+ msgstr "Прошлых событий нет"
90
+
91
+ #: ../views/list.php:120
92
+ #: ../views/list.php:122
93
+ #: ../views/list.php:124
94
+ msgid "&laquo; Previous Events"
95
+ msgstr "&laquo; Предыдущие события"
96
+
97
+ #: ../views/list.php:131
98
+ #: ../views/list.php:133
99
+ #: ../views/list.php:135
100
+ msgid "Next Events &raquo;"
101
+ msgstr "Следующие события &laquo;"
102
+
103
+ #: ../views/list.php:140
104
+ #: ../views/gridview.php:43
105
+ #: ../views/single.php:83
106
+ msgid "iCal Import"
107
+ msgstr "iCall импорт"
108
+
109
+ #: ../views/table-mini.php:24
110
+ msgid "View all &raquo;"
111
+ msgstr "Посмотреть все &raquo;"
112
+
113
+ #: ../views/single.php:13
114
+ msgid "&laquo; Back to Events"
115
+ msgstr " &raquo; Вернуться к событиям"
116
+
117
+ #: ../views/single.php:14
118
+ msgid "This event has passed."
119
+ msgstr "Это событие прошло"
120
+
121
+ #: ../views/single.php:29
122
+ msgid "Organizer:"
123
+ msgstr "Организатор:"
124
+
125
+ #: ../views/single.php:37
126
+ msgid "Email:"
127
+ msgstr "Email:"
128
+
129
+ #: ../views/single.php:41
130
+ msgid "Schedule:"
131
+ msgstr "Расписание:"
132
+
133
+ #: ../views/single.php:58
134
+ msgid "Click to view a Google Map"
135
+ msgstr "Посмотреть карту Google"
136
+
137
+ #: ../views/single.php:86
138
+ msgid "Add to Google Calendar"
139
+ msgstr "Добавить в Google Календарь"
140
+
141
+ #: ../views/single.php:86
142
+ msgid "+ Google Calendar"
143
+ msgstr "+ Google Календарь"
144
+
145
+ #: ../views/events-list-load-widget-display.php:48
146
+ msgid "All Day"
147
+ msgstr "Весь день"
148
+
149
+ #: ../views/events-list-load-widget-display.php:51
150
+ msgid "Ends"
151
+ msgstr "Заканчивается"
152
+
153
+ #: ../views/ecp-single-template.php:24
154
+ msgid "Edit"
155
+ msgstr "Редактировать"
156
+
157
+ #: ../admin-views/events-meta-box.php:26
158
+ msgid "Event Time &amp; Date"
159
+ msgstr "Дата &amp; время события"
160
+
161
+ #: ../admin-views/events-meta-box.php:29
162
+ msgid "You have changed the recurrence rules of this event. Saving the event will update all future events. If you did not mean to change all events, then please refresh the page."
163
+ msgstr "Вы изменили правило повторяемости для этого события. Сохранение обновить все будущие события. Если вы не хотите изменить все события, тогда пожалуйста перезагузите страницу."
164
+
165
+ #: ../admin-views/events-meta-box.php:32
166
+ msgid "All day event?"
167
+ msgstr "Полный день?"
168
+
169
+ #: ../admin-views/events-meta-box.php:36
170
+ msgid "Start Date / Time:"
171
+ msgstr "Дата / Время начала:"
172
+
173
+ #: ../admin-views/events-meta-box.php:39
174
+ #: ../admin-views/events-meta-box.php:60
175
+ msgid "YYYY-MM-DD"
176
+ msgstr "ГГГГ-ММ-ДД"
177
+
178
+ #: ../admin-views/events-meta-box.php:41
179
+ #: ../admin-views/events-meta-box.php:62
180
+ msgid "@"
181
+ msgstr "@"
182
+
183
+ #: ../admin-views/events-meta-box.php:57
184
+ msgid "End Date / Time:"
185
+ msgstr "Дата/ Время окончания:"
186
+
187
+ #: ../admin-views/events-meta-box.php:79
188
+ msgid "Event Location Details"
189
+ msgstr "Детали места проведения"
190
+
191
+ #: ../admin-views/events-meta-box.php:85
192
+ msgid "Show Google Maps Link:"
193
+ msgstr "Показать линк на карту Google:"
194
+
195
+ #: ../admin-views/events-meta-box.php:92
196
+ msgid "Show Google Map:"
197
+ msgstr "Показать карту Google:"
198
+
199
+ #: ../admin-views/events-meta-box.php:101
200
+ msgid "Event Organizer Details"
201
+ msgstr "Подробности об организаторе события"
202
+
203
+ #: ../admin-views/events-meta-box.php:110
204
+ msgid "Event Cost"
205
+ msgstr "Стоимость"
206
+
207
+ #: ../admin-views/events-meta-box.php:118
208
+ msgid "Leave blank to hide the field. Enter a 0 for events that are free."
209
+ msgstr "Не заполняйте это поле, чтобы не показывать. Напишите 0, если бесплатно. "
210
+
211
+ #: ../admin-views/events-meta-box.php:124
212
+ msgid "Additional Functionality"
213
+ msgstr "Дополнительные опции"
214
+
215
+ #: ../admin-views/events-meta-box.php:129
216
+ msgid "Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?"
217
+ msgstr "Необходимы дополнительные возможности, включая повторяющиеся события, мета, общественные события, продажи билетов и т.д.?"
218
+
219
+ #: ../admin-views/events-meta-box.php:129
220
+ #, php-format
221
+ msgid "Check out the <a href=\"%s\">available Add-Ons</a>."
222
+ msgstr "Посмотрите <a href=\"%s\">Дополнительные Возможности</a>."
223
+
224
+ #: ../admin-views/venue-meta-box.php:12
225
+ msgid "Venue Name:"
226
+ msgstr "Место События:"
227
+
228
+ #: ../admin-views/venue-meta-box.php:23
229
+ msgid "City:"
230
+ msgstr "Город:"
231
+
232
+ #: ../admin-views/venue-meta-box.php:27
233
+ msgid "Country:"
234
+ msgstr "Страна:"
235
+
236
+ #: ../admin-views/venue-meta-box.php:52
237
+ msgid "State or Province:"
238
+ msgstr "Шта, Провинция или Область:"
239
+
240
+ #: ../admin-views/venue-meta-box.php:55
241
+ msgid "Select a State:"
242
+ msgstr "Выбрать штат:"
243
+
244
+ #: ../admin-views/venue-meta-box.php:69
245
+ msgid "Postal Code:"
246
+ msgstr "Почтовый индекс:"
247
+
248
+ #: ../admin-views/recurrence-dialog.php:11
249
+ msgid "Which events do you wish to update?"
250
+ msgstr "Какое событие вы хотите обновить?"
251
+
252
+ #: ../admin-views/recurrence-dialog.php:14
253
+ msgid "Select your desired action"
254
+ msgstr "Выбрать действие"
255
+
256
+ #: ../admin-views/event-sidebar-options.php:11
257
+ msgid "Hide From Upcoming Events List"
258
+ msgstr "Спрятать в Списке будущих событий"
259
+
260
+ #: ../admin-views/events-options.php:47
261
+ #, php-format
262
+ msgid "%s Settings"
263
+ msgstr "%s - Установки"
264
+
265
+ #: ../admin-views/events-options.php:53
266
+ msgid "Need a hand?"
267
+ msgstr "Нужна помощь?"
268
+
269
+ #: ../admin-views/events-options.php:54
270
+ #, php-format
271
+ msgid "If you're stuck on these options, please <a href=\"%s\">check out the documentation</a>. Or, go to the <a href=\"%s\">support forum</a>."
272
+ msgstr "Если не знаете, что делать, пожалуйста <a href=\"%s\">смотрите документацию</a>. Или <a href=\"%s\">Форум поддержки</a>."
273
+
274
+ #: ../admin-views/events-options.php:56
275
+ msgid "Here is the iCal feed URL for your events: "
276
+ msgstr "Это iCal feed URL для ваших событий:"
277
+
278
+ #: ../admin-views/events-options.php:62
279
+ msgid "Settings"
280
+ msgstr "Установки"
281
+
282
+ #: ../admin-views/events-options.php:65
283
+ #: ../admin-views/events-options.php:69
284
+ msgid "Default View for the Events"
285
+ msgstr "Вид событий по умолчанию"
286
+
287
+ #: ../admin-views/events-options.php:83
288
+ #: ../admin-views/events-options.php:87
289
+ #: ../admin-views/events-options.php:89
290
+ msgid "Show Comments"
291
+ msgstr "Показать комментарии"
292
+
293
+ #: ../admin-views/events-options.php:97
294
+ #: ../admin-views/events-options.php:101
295
+ msgid "Multiday Event Cutoff"
296
+ msgstr "Окончание многодневного события"
297
+
298
+ #: ../admin-views/events-options.php:115
299
+ msgid "For multi-day events, hide the last day from grid view if it ends on or before this time."
300
+ msgstr "В случае многодневных событий, не показывать последний день из календарного вида событий, если оно заканчивается до этого времени включительно."
301
+
302
+ #: ../admin-views/events-options.php:120
303
+ #: ../admin-views/events-options.php:124
304
+ msgid "Enable Google Maps"
305
+ msgstr "Показывать карту Google"
306
+
307
+ #: ../admin-views/events-options.php:130
308
+ msgid "Height"
309
+ msgstr "Высота"
310
+
311
+ #: ../admin-views/events-options.php:131
312
+ msgid "Width"
313
+ msgstr "Ширина"
314
+
315
+ #: ../admin-views/events-options.php:131
316
+ msgid "(number or %)"
317
+ msgstr "(значение или %)"
318
+
319
+ #: ../admin-views/events-options.php:135
320
+ msgid "If you don't have this turned on, your event listings won't have the backend map preview or frontend embedded map."
321
+ msgstr "Если не подключено, то карта не будет показана в вашем списке событий."
322
+
323
+ #: ../admin-views/events-options.php:143
324
+ #: ../admin-views/events-options.php:145
325
+ msgid "Events URL slug"
326
+ msgstr "Строка URL для события "
327
+
328
+ #: ../admin-views/events-options.php:146
329
+ msgid "The slug used for building the Events URL."
330
+ msgstr "Строка используется для URL события"
331
+
332
+ #: ../admin-views/events-options.php:146
333
+ #, php-format
334
+ msgid "Your current Events URL is <strong>%s</strong>"
335
+ msgstr "Текущий URL события<strong>%s</strong>"
336
+
337
+ #: ../admin-views/events-options.php:150
338
+ #: ../admin-views/events-options.php:152
339
+ msgid "Single Event URL slug"
340
+ msgstr "Строка URL для одноразового события"
341
+
342
+ #: ../admin-views/events-options.php:153
343
+ msgid "The slug used for building a single Event URL."
344
+ msgstr "Строка используется для URL одноразового события"
345
+
346
+ #: ../admin-views/events-options.php:154
347
+ #, php-format
348
+ msgid "<strong>NOTE:</strong> You <em>cannot</em> use the same slug as above. The above should ideally be plural, and this singular.<br />Your single Event URL is like: <strong>%s</strong>"
349
+ msgstr "<strong>ВНИМАНИЕ:</strong> <em>Нельзя</em> использовать ту же строку, как выше. Эта строка в идеале должна быть во множественном числе, и в единственном числе.<br />ваш одноразовый URL, как: <strong>%s</strong>"
350
+
351
+ #: ../admin-views/events-options.php:159
352
+ #: ../admin-views/events-options.php:161
353
+ msgid "Debug"
354
+ msgstr "Отладка"
355
+
356
+ #: ../admin-views/events-options.php:162
357
+ msgid "Debug Events display issues."
358
+ msgstr "Отладка проблем отображения событий"
359
+
360
+ #: ../admin-views/events-options.php:163
361
+ #, php-format
362
+ msgid "Enable this option to log debug information. By default this will log to your server PHP error log. If you'd like to see the log messages in your browser, then we recommend that you install the <a href=\"%s\" target=\"_blank\">Debug Bar Plugin</a> and look for the \"Tribe\" tab in the debug output."
363
+ msgstr "Подключить опцию для записи отладки. По умолчанию будет записываться PHP error log сервера. Если вы хотите увидеть записи сообщений в браузере, тогда рекомендуется установить <a href=\"%s\" target=\"_blank\">Debug Bar Plugin</a> и смотреть на \"Tribe\" закладку на выводе отладки."
364
+
365
+ #: ../admin-views/events-options.php:168
366
+ msgid "Theme Settings"
367
+ msgstr "Установки темы"
368
+
369
+ #: ../admin-views/events-options.php:171
370
+ #: ../admin-views/events-options.php:173
371
+ msgid "Events Template"
372
+ msgstr "Шаблон Календаря"
373
+
374
+ #: ../admin-views/events-options.php:175
375
+ msgid "Default Events Template"
376
+ msgstr "Стандартный шаблон событий"
377
+
378
+ #: ../admin-views/events-options.php:176
379
+ msgid "Default Page Template"
380
+ msgstr "Стандартный шаблон страницы"
381
+
382
+ #: ../admin-views/events-options.php:179
383
+ msgid "Choose a page template to control the look and feel of your calendar."
384
+ msgstr "Выбрать шаблон страницы для отображения календаря."
385
+
386
+ #: ../admin-views/events-options.php:183
387
+ #: ../admin-views/events-options.php:185
388
+ #: ../admin-views/events-options.php:193
389
+ msgid "Add HTML before calendar"
390
+ msgstr "Добавить HTML до календаря"
391
+
392
+ #: ../admin-views/events-options.php:187
393
+ msgid "Some themes may require that you add extra divs before the calendar list to help with styling."
394
+ msgstr "Для некоторых тем, необходимо использовать дополнительные divs до календаря для улучшения форматирования."
395
+
396
+ #: ../admin-views/events-options.php:187
397
+ msgid "This is displayed directly after the header."
398
+ msgstr "Это отображается сразу после верхнего колонтитула."
399
+
400
+ #: ../admin-views/events-options.php:187
401
+ #: ../admin-views/events-options.php:195
402
+ msgid "You may use (x)HTML."
403
+ msgstr "Можно использовать (x)HTML."
404
+
405
+ #: ../admin-views/events-options.php:191
406
+ msgid "Add HTML after calendar"
407
+ msgstr "Добавить HTML после календаря"
408
+
409
+ #: ../admin-views/events-options.php:195
410
+ msgid "Some themes may require that you add extra divs after the calendar list to help with styling."
411
+ msgstr "Для некоторых тем, необходимо использовать дополнительные divs после календаря для улучшения форматирования."
412
+
413
+ #: ../admin-views/events-options.php:195
414
+ msgid "This is displayed directly above the footer."
415
+ msgstr "Это отображается перед нижним колонтитулом."
416
+
417
+ #: ../admin-views/events-options.php:204
418
+ msgid "Save Changes"
419
+ msgstr "Сохранить изменения"
420
+
421
+ #: ../admin-views/widget-admin-list.php:11
422
+ msgid "Title:"
423
+ msgstr "Заголовок:"
424
+
425
+ #: ../admin-views/widget-admin-list.php:16
426
+ msgid "Show:"
427
+ msgstr "Показать:"
428
+
429
+ #: ../admin-views/widget-admin-list.php:24
430
+ msgid "Show widget only if there are upcoming events:"
431
+ msgstr "Показывать виджет только, если есть предстоящие события"
432
+
433
+ #: ../admin-views/widget-admin-list.php:30
434
+ msgid "If you wish to customize the widget display yourself, see the file views/events-list-load-widget-display.php inside the Events Premium plugin."
435
+ msgstr "Если вы желаете изменить, как выглядит виджет, смотрите файл views/events-list-load-widget-display.php внутри Плагина"
436
+
437
+ #: ../admin-views/organizer-meta-box.php:11
438
+ msgid "Organizer Name:"
439
+ msgstr "Организатор:"
440
+
441
+ #: ../admin-views/organizer-meta-box.php:21
442
+ msgid "Website:"
443
+ msgstr "Вебсайт:"
444
+
445
+ #: ../lib/tribe-admin-events-list.class.php:159
446
+ #: ../lib/the-events-calendar.class.php:526
447
+ msgid "Event Categories"
448
+ msgstr "Категории событий"
449
+
450
+ #: ../lib/tribe-admin-events-list.class.php:164
451
+ msgid "Start Date"
452
+ msgstr "дата начала"
453
+
454
+ #: ../lib/tribe-admin-events-list.class.php:165
455
+ msgid "End Date"
456
+ msgstr "Дата окончания"
457
+
458
+ #: ../lib/tribe-admin-events-list.class.php:166
459
+ msgid "Recurring?"
460
+ msgstr "Периодичное?"
461
+
462
+ #: ../lib/tribe-admin-events-list.class.php:194
463
+ msgid "Yes"
464
+ msgstr "Да"
465
+
466
+ #: ../lib/tribe-admin-events-list.class.php:194
467
+ msgid "No"
468
+ msgstr "Нет"
469
+
470
+ #: ../lib/tribe-admin-events-list.class.php:244
471
+ #, php-format
472
+ msgid "All %s"
473
+ msgstr "Все %s"
474
+
475
+ #: ../lib/tribe-view-helpers.class.php:16
476
+ #: ../lib/tribe-view-helpers.class.php:33
477
+ msgid "Select a Country:"
478
+ msgstr "Выбор страны:"
479
+
480
+ #: ../lib/tribe-view-helpers.class.php:34
481
+ #: ../lib/template-tags.php:502
482
+ msgid "United States"
483
+ msgstr ""
484
+
485
+ #: ../lib/tribe-view-helpers.class.php:35
486
+ msgid "Afghanistan"
487
+ msgstr ""
488
+
489
+ #: ../lib/tribe-view-helpers.class.php:36
490
+ msgid "Albania"
491
+ msgstr ""
492
+
493
+ #: ../lib/tribe-view-helpers.class.php:37
494
+ msgid "Algeria"
495
+ msgstr ""
496
+
497
+ #: ../lib/tribe-view-helpers.class.php:38
498
+ msgid "American Samoa"
499
+ msgstr ""
500
+
501
+ #: ../lib/tribe-view-helpers.class.php:39
502
+ msgid "Andorra"
503
+ msgstr ""
504
+
505
+ #: ../lib/tribe-view-helpers.class.php:40
506
+ msgid "Angola"
507
+ msgstr ""
508
+
509
+ #: ../lib/tribe-view-helpers.class.php:41
510
+ msgid "Anguilla"
511
+ msgstr ""
512
+
513
+ #: ../lib/tribe-view-helpers.class.php:42
514
+ msgid "Antarctica"
515
+ msgstr ""
516
+
517
+ #: ../lib/tribe-view-helpers.class.php:43
518
+ msgid "Antigua And Barbuda"
519
+ msgstr ""
520
+
521
+ #: ../lib/tribe-view-helpers.class.php:44
522
+ msgid "Argentina"
523
+ msgstr ""
524
+
525
+ #: ../lib/tribe-view-helpers.class.php:45
526
+ msgid "Armenia"
527
+ msgstr ""
528
+
529
+ #: ../lib/tribe-view-helpers.class.php:46
530
+ msgid "Aruba"
531
+ msgstr ""
532
+
533
+ #: ../lib/tribe-view-helpers.class.php:47
534
+ msgid "Australia"
535
+ msgstr ""
536
+
537
+ #: ../lib/tribe-view-helpers.class.php:48
538
+ msgid "Austria"
539
+ msgstr ""
540
+
541
+ #: ../lib/tribe-view-helpers.class.php:49
542
+ msgid "Azerbaijan"
543
+ msgstr ""
544
+
545
+ #: ../lib/tribe-view-helpers.class.php:50
546
+ msgid "Bahamas"
547
+ msgstr ""
548
+
549
+ #: ../lib/tribe-view-helpers.class.php:51
550
+ msgid "Bahrain"
551
+ msgstr ""
552
+
553
+ #: ../lib/tribe-view-helpers.class.php:52
554
+ msgid "Bangladesh"
555
+ msgstr ""
556
+
557
+ #: ../lib/tribe-view-helpers.class.php:53
558
+ msgid "Barbados"
559
+ msgstr ""
560
+
561
+ #: ../lib/tribe-view-helpers.class.php:54
562
+ msgid "Belarus"
563
+ msgstr ""
564
+
565
+ #: ../lib/tribe-view-helpers.class.php:55
566
+ msgid "Belgium"
567
+ msgstr ""
568
+
569
+ #: ../lib/tribe-view-helpers.class.php:56
570
+ msgid "Belize"
571
+ msgstr ""
572
+
573
+ #: ../lib/tribe-view-helpers.class.php:57
574
+ msgid "Benin"
575
+ msgstr ""
576
+
577
+ #: ../lib/tribe-view-helpers.class.php:58
578
+ msgid "Bermuda"
579
+ msgstr ""
580
+
581
+ #: ../lib/tribe-view-helpers.class.php:59
582
+ msgid "Bhutan"
583
+ msgstr ""
584
+
585
+ #: ../lib/tribe-view-helpers.class.php:60
586
+ msgid "Bolivia"
587
+ msgstr ""
588
+
589
+ #: ../lib/tribe-view-helpers.class.php:61
590
+ msgid "Bosnia And Herzegowina"
591
+ msgstr ""
592
+
593
+ #: ../lib/tribe-view-helpers.class.php:62
594
+ msgid "Botswana"
595
+ msgstr ""
596
+
597
+ #: ../lib/tribe-view-helpers.class.php:63
598
+ msgid "Bouvet Island"
599
+ msgstr ""
600
+
601
+ #: ../lib/tribe-view-helpers.class.php:64
602
+ msgid "Brazil"
603
+ msgstr ""
604
+
605
+ #: ../lib/tribe-view-helpers.class.php:65
606
+ msgid "British Indian Ocean Territory"
607
+ msgstr ""
608
+
609
+ #: ../lib/tribe-view-helpers.class.php:66
610
+ msgid "Brunei Darussalam"
611
+ msgstr ""
612
+
613
+ #: ../lib/tribe-view-helpers.class.php:67
614
+ msgid "Bulgaria"
615
+ msgstr ""
616
+
617
+ #: ../lib/tribe-view-helpers.class.php:68
618
+ msgid "Burkina Faso"
619
+ msgstr ""
620
+
621
+ #: ../lib/tribe-view-helpers.class.php:69
622
+ msgid "Burundi"
623
+ msgstr ""
624
+
625
+ #: ../lib/tribe-view-helpers.class.php:70
626
+ msgid "Cambodia"
627
+ msgstr ""
628
+
629
+ #: ../lib/tribe-view-helpers.class.php:71
630
+ msgid "Cameroon"
631
+ msgstr ""
632
+
633
+ #: ../lib/tribe-view-helpers.class.php:72
634
+ msgid "Canada"
635
+ msgstr ""
636
+
637
+ #: ../lib/tribe-view-helpers.class.php:73
638
+ msgid "Cape Verde"
639
+ msgstr ""
640
+
641
+ #: ../lib/tribe-view-helpers.class.php:74
642
+ msgid "Cayman Islands"
643
+ msgstr ""
644
+
645
+ #: ../lib/tribe-view-helpers.class.php:75
646
+ msgid "Central African Republic"
647
+ msgstr ""
648
+
649
+ #: ../lib/tribe-view-helpers.class.php:76
650
+ msgid "Chad"
651
+ msgstr ""
652
+
653
+ #: ../lib/tribe-view-helpers.class.php:77
654
+ msgid "Chile"
655
+ msgstr ""
656
+
657
+ #: ../lib/tribe-view-helpers.class.php:78
658
+ msgid "China"
659
+ msgstr ""
660
+
661
+ #: ../lib/tribe-view-helpers.class.php:79
662
+ msgid "Christmas Island"
663
+ msgstr ""
664
+
665
+ #: ../lib/tribe-view-helpers.class.php:80
666
+ msgid "Cocos (Keeling) Islands"
667
+ msgstr ""
668
+
669
+ #: ../lib/tribe-view-helpers.class.php:81
670
+ msgid "Colombia"
671
+ msgstr ""
672
+
673
+ #: ../lib/tribe-view-helpers.class.php:82
674
+ msgid "Comoros"
675
+ msgstr ""
676
+
677
+ #: ../lib/tribe-view-helpers.class.php:83
678
+ msgid "Congo"
679
+ msgstr ""
680
+
681
+ #: ../lib/tribe-view-helpers.class.php:84
682
+ msgid "Congo, The Democratic Republic Of The"
683
+ msgstr ""
684
+
685
+ #: ../lib/tribe-view-helpers.class.php:85
686
+ msgid "Cook Islands"
687
+ msgstr ""
688
+
689
+ #: ../lib/tribe-view-helpers.class.php:86
690
+ msgid "Costa Rica"
691
+ msgstr ""
692
+
693
+ #: ../lib/tribe-view-helpers.class.php:87
694
+ msgid "Cote D'Ivoire"
695
+ msgstr ""
696
+
697
+ #: ../lib/tribe-view-helpers.class.php:88
698
+ msgid "Croatia (Local Name: Hrvatska)"
699
+ msgstr ""
700
+
701
+ #: ../lib/tribe-view-helpers.class.php:89
702
+ msgid "Cuba"
703
+ msgstr ""
704
+
705
+ #: ../lib/tribe-view-helpers.class.php:90
706
+ msgid "Cyprus"
707
+ msgstr ""
708
+
709
+ #: ../lib/tribe-view-helpers.class.php:91
710
+ msgid "Czech Republic"
711
+ msgstr ""
712
+
713
+ #: ../lib/tribe-view-helpers.class.php:92
714
+ msgid "Denmark"
715
+ msgstr ""
716
+
717
+ #: ../lib/tribe-view-helpers.class.php:93
718
+ msgid "Djibouti"
719
+ msgstr ""
720
+
721
+ #: ../lib/tribe-view-helpers.class.php:94
722
+ msgid "Dominica"
723
+ msgstr ""
724
+
725
+ #: ../lib/tribe-view-helpers.class.php:95
726
+ msgid "Dominican Republic"
727
+ msgstr ""
728
+
729
+ #: ../lib/tribe-view-helpers.class.php:96
730
+ msgid "East Timor"
731
+ msgstr ""
732
+
733
+ #: ../lib/tribe-view-helpers.class.php:97
734
+ msgid "Ecuador"
735
+ msgstr ""
736
+
737
+ #: ../lib/tribe-view-helpers.class.php:98
738
+ msgid "Egypt"
739
+ msgstr ""
740
+
741
+ #: ../lib/tribe-view-helpers.class.php:99
742
+ msgid "El Salvador"
743
+ msgstr ""
744
+
745
+ #: ../lib/tribe-view-helpers.class.php:100
746
+ msgid "Equatorial Guinea"
747
+ msgstr ""
748
+
749
+ #: ../lib/tribe-view-helpers.class.php:101
750
+ msgid "Eritrea"
751
+ msgstr ""
752
+
753
+ #: ../lib/tribe-view-helpers.class.php:102
754
+ msgid "Estonia"
755
+ msgstr ""
756
+
757
+ #: ../lib/tribe-view-helpers.class.php:103
758
+ msgid "Ethiopia"
759
+ msgstr ""
760
+
761
+ #: ../lib/tribe-view-helpers.class.php:104
762
+ msgid "Falkland Islands (Malvinas)"
763
+ msgstr ""
764
+
765
+ #: ../lib/tribe-view-helpers.class.php:105
766
+ msgid "Faroe Islands"
767
+ msgstr ""
768
+
769
+ #: ../lib/tribe-view-helpers.class.php:106
770
+ msgid "Fiji"
771
+ msgstr ""
772
+
773
+ #: ../lib/tribe-view-helpers.class.php:107
774
+ msgid "Finland"
775
+ msgstr ""
776
+
777
+ #: ../lib/tribe-view-helpers.class.php:108
778
+ msgid "France"
779
+ msgstr ""
780
+
781
+ #: ../lib/tribe-view-helpers.class.php:109
782
+ msgid "France, Metropolitan"
783
+ msgstr ""
784
+
785
+ #: ../lib/tribe-view-helpers.class.php:110
786
+ msgid "French Guiana"
787
+ msgstr ""
788
+
789
+ #: ../lib/tribe-view-helpers.class.php:111
790
+ msgid "French Polynesia"
791
+ msgstr ""
792
+
793
+ #: ../lib/tribe-view-helpers.class.php:112
794
+ msgid "French Southern Territories"
795
+ msgstr ""
796
+
797
+ #: ../lib/tribe-view-helpers.class.php:113
798
+ msgid "Gabon"
799
+ msgstr ""
800
+
801
+ #: ../lib/tribe-view-helpers.class.php:114
802
+ msgid "Gambia"
803
+ msgstr ""
804
+
805
+ #: ../lib/tribe-view-helpers.class.php:115
806
+ #: ../lib/tribe-view-helpers.class.php:303
807
+ msgid "Georgia"
808
+ msgstr ""
809
+
810
+ #: ../lib/tribe-view-helpers.class.php:116
811
+ msgid "Germany"
812
+ msgstr ""
813
+
814
+ #: ../lib/tribe-view-helpers.class.php:117
815
+ msgid "Ghana"
816
+ msgstr ""
817
+
818
+ #: ../lib/tribe-view-helpers.class.php:118
819
+ msgid "Gibraltar"
820
+ msgstr ""
821
+
822
+ #: ../lib/tribe-view-helpers.class.php:119
823
+ msgid "Greece"
824
+ msgstr ""
825
+
826
+ #: ../lib/tribe-view-helpers.class.php:120
827
+ msgid "Greenland"
828
+ msgstr ""
829
+
830
+ #: ../lib/tribe-view-helpers.class.php:121
831
+ msgid "Grenada"
832
+ msgstr ""
833
+
834
+ #: ../lib/tribe-view-helpers.class.php:122
835
+ msgid "Guadeloupe"
836
+ msgstr ""
837
+
838
+ #: ../lib/tribe-view-helpers.class.php:123
839
+ msgid "Guam"
840
+ msgstr ""
841
+
842
+ #: ../lib/tribe-view-helpers.class.php:124
843
+ msgid "Guatemala"
844
+ msgstr ""
845
+
846
+ #: ../lib/tribe-view-helpers.class.php:125
847
+ msgid "Guinea"
848
+ msgstr ""
849
+
850
+ #: ../lib/tribe-view-helpers.class.php:126
851
+ msgid "Guinea-Bissau"
852
+ msgstr ""
853
+
854
+ #: ../lib/tribe-view-helpers.class.php:127
855
+ msgid "Guyana"
856
+ msgstr ""
857
+
858
+ #: ../lib/tribe-view-helpers.class.php:128
859
+ msgid "Haiti"
860
+ msgstr ""
861
+
862
+ #: ../lib/tribe-view-helpers.class.php:129
863
+ msgid "Heard And Mc Donald Islands"
864
+ msgstr ""
865
+
866
+ #: ../lib/tribe-view-helpers.class.php:130
867
+ msgid "Holy See (Vatican City State)"
868
+ msgstr ""
869
+
870
+ #: ../lib/tribe-view-helpers.class.php:131
871
+ msgid "Honduras"
872
+ msgstr ""
873
+
874
+ #: ../lib/tribe-view-helpers.class.php:132
875
+ msgid "Hong Kong"
876
+ msgstr ""
877
+
878
+ #: ../lib/tribe-view-helpers.class.php:133
879
+ msgid "Hungary"
880
+ msgstr ""
881
+
882
+ #: ../lib/tribe-view-helpers.class.php:134
883
+ msgid "Iceland"
884
+ msgstr ""
885
+
886
+ #: ../lib/tribe-view-helpers.class.php:135
887
+ msgid "India"
888
+ msgstr ""
889
+
890
+ #: ../lib/tribe-view-helpers.class.php:136
891
+ msgid "Indonesia"
892
+ msgstr ""
893
+
894
+ #: ../lib/tribe-view-helpers.class.php:137
895
+ msgid "Iran (Islamic Republic Of)"
896
+ msgstr ""
897
+
898
+ #: ../lib/tribe-view-helpers.class.php:138
899
+ msgid "Iraq"
900
+ msgstr ""
901
+
902
+ #: ../lib/tribe-view-helpers.class.php:139
903
+ msgid "Ireland"
904
+ msgstr ""
905
+
906
+ #: ../lib/tribe-view-helpers.class.php:140
907
+ msgid "Israel"
908
+ msgstr ""
909
+
910
+ #: ../lib/tribe-view-helpers.class.php:141
911
+ msgid "Italy"
912
+ msgstr ""
913
+
914
+ #: ../lib/tribe-view-helpers.class.php:142
915
+ msgid "Jamaica"
916
+ msgstr ""
917
+
918
+ #: ../lib/tribe-view-helpers.class.php:143
919
+ msgid "Japan"
920
+ msgstr ""
921
+
922
+ #: ../lib/tribe-view-helpers.class.php:144
923
+ msgid "Jordan"
924
+ msgstr ""
925
+
926
+ #: ../lib/tribe-view-helpers.class.php:145
927
+ msgid "Kazakhstan"
928
+ msgstr ""
929
+
930
+ #: ../lib/tribe-view-helpers.class.php:146
931
+ msgid "Kenya"
932
+ msgstr ""
933
+
934
+ #: ../lib/tribe-view-helpers.class.php:147
935
+ msgid "Kiribati"
936
+ msgstr ""
937
+
938
+ #: ../lib/tribe-view-helpers.class.php:148
939
+ msgid "Korea, Democratic People's Republic Of"
940
+ msgstr ""
941
+
942
+ #: ../lib/tribe-view-helpers.class.php:149
943
+ msgid "Korea, Republic Of"
944
+ msgstr ""
945
+
946
+ #: ../lib/tribe-view-helpers.class.php:150
947
+ msgid "Kuwait"
948
+ msgstr ""
949
+
950
+ #: ../lib/tribe-view-helpers.class.php:151
951
+ msgid "Kyrgyzstan"
952
+ msgstr ""
953
+
954
+ #: ../lib/tribe-view-helpers.class.php:152
955
+ msgid "Lao People's Democratic Republic"
956
+ msgstr ""
957
+
958
+ #: ../lib/tribe-view-helpers.class.php:153
959
+ msgid "Latvia"
960
+ msgstr ""
961
+
962
+ #: ../lib/tribe-view-helpers.class.php:154
963
+ msgid "Lebanon"
964
+ msgstr ""
965
+
966
+ #: ../lib/tribe-view-helpers.class.php:155
967
+ msgid "Lesotho"
968
+ msgstr ""
969
+
970
+ #: ../lib/tribe-view-helpers.class.php:156
971
+ msgid "Liberia"
972
+ msgstr ""
973
+
974
+ #: ../lib/tribe-view-helpers.class.php:157
975
+ msgid "Libya"
976
+ msgstr ""
977
+
978
+ #: ../lib/tribe-view-helpers.class.php:158
979
+ msgid "Liechtenstein"
980
+ msgstr ""
981
+
982
+ #: ../lib/tribe-view-helpers.class.php:159
983
+ msgid "Lithuania"
984
+ msgstr ""
985
+
986
+ #: ../lib/tribe-view-helpers.class.php:160
987
+ msgid "Luxembourg"
988
+ msgstr ""
989
+
990
+ #: ../lib/tribe-view-helpers.class.php:161
991
+ msgid "Macau"
992
+ msgstr ""
993
+
994
+ #: ../lib/tribe-view-helpers.class.php:162
995
+ msgid "Macedonia"
996
+ msgstr ""
997
+
998
+ #: ../lib/tribe-view-helpers.class.php:163
999
+ msgid "Madagascar"
1000
+ msgstr ""
1001
+
1002
+ #: ../lib/tribe-view-helpers.class.php:164
1003
+ msgid "Malawi"
1004
+ msgstr ""
1005
+
1006
+ #: ../lib/tribe-view-helpers.class.php:165
1007
+ msgid "Malaysia"
1008
+ msgstr ""
1009
+
1010
+ #: ../lib/tribe-view-helpers.class.php:166
1011
+ msgid "Maldives"
1012
+ msgstr ""
1013
+
1014
+ #: ../lib/tribe-view-helpers.class.php:167
1015
+ msgid "Mali"
1016
+ msgstr ""
1017
+
1018
+ #: ../lib/tribe-view-helpers.class.php:168
1019
+ msgid "Malta"
1020
+ msgstr ""
1021
+
1022
+ #: ../lib/tribe-view-helpers.class.php:169
1023
+ msgid "Marshall Islands"
1024
+ msgstr ""
1025
+
1026
+ #: ../lib/tribe-view-helpers.class.php:170
1027
+ msgid "Martinique"
1028
+ msgstr ""
1029
+
1030
+ #: ../lib/tribe-view-helpers.class.php:171
1031
+ msgid "Mauritania"
1032
+ msgstr ""
1033
+
1034
+ #: ../lib/tribe-view-helpers.class.php:172
1035
+ msgid "Mauritius"
1036
+ msgstr ""
1037
+
1038
+ #: ../lib/tribe-view-helpers.class.php:173
1039
+ msgid "Mayotte"
1040
+ msgstr ""
1041
+
1042
+ #: ../lib/tribe-view-helpers.class.php:174
1043
+ msgid "Mexico"
1044
+ msgstr ""
1045
+
1046
+ #: ../lib/tribe-view-helpers.class.php:175
1047
+ msgid "Micronesia, Federated States Of"
1048
+ msgstr ""
1049
+
1050
+ #: ../lib/tribe-view-helpers.class.php:176
1051
+ msgid "Moldova, Republic Of"
1052
+ msgstr ""
1053
+
1054
+ #: ../lib/tribe-view-helpers.class.php:177
1055
+ msgid "Monaco"
1056
+ msgstr ""
1057
+
1058
+ #: ../lib/tribe-view-helpers.class.php:178
1059
+ msgid "Mongolia"
1060
+ msgstr ""
1061
+
1062
+ #: ../lib/tribe-view-helpers.class.php:179
1063
+ msgid "Montenegro"
1064
+ msgstr ""
1065
+
1066
+ #: ../lib/tribe-view-helpers.class.php:180
1067
+ msgid "Montserrat"
1068
+ msgstr ""
1069
+
1070
+ #: ../lib/tribe-view-helpers.class.php:181
1071
+ msgid "Morocco"
1072
+ msgstr ""
1073
+
1074
+ #: ../lib/tribe-view-helpers.class.php:182
1075
+ msgid "Mozambique"
1076
+ msgstr ""
1077
+
1078
+ #: ../lib/tribe-view-helpers.class.php:183
1079
+ msgid "Myanmar"
1080
+ msgstr ""
1081
+
1082
+ #: ../lib/tribe-view-helpers.class.php:184
1083
+ msgid "Namibia"
1084
+ msgstr ""
1085
+
1086
+ #: ../lib/tribe-view-helpers.class.php:185
1087
+ msgid "Nauru"
1088
+ msgstr ""
1089
+
1090
+ #: ../lib/tribe-view-helpers.class.php:186
1091
+ msgid "Nepal"
1092
+ msgstr ""
1093
+
1094
+ #: ../lib/tribe-view-helpers.class.php:187
1095
+ msgid "Netherlands"
1096
+ msgstr ""
1097
+
1098
+ #: ../lib/tribe-view-helpers.class.php:188
1099
+ msgid "Netherlands Antilles"
1100
+ msgstr ""
1101
+
1102
+ #: ../lib/tribe-view-helpers.class.php:189
1103
+ msgid "New Caledonia"
1104
+ msgstr ""
1105
+
1106
+ #: ../lib/tribe-view-helpers.class.php:190
1107
+ msgid "New Zealand"
1108
+ msgstr ""
1109
+
1110
+ #: ../lib/tribe-view-helpers.class.php:191
1111
+ msgid "Nicaragua"
1112
+ msgstr ""
1113
+
1114
+ #: ../lib/tribe-view-helpers.class.php:192
1115
+ msgid "Niger"
1116
+ msgstr ""
1117
+
1118
+ #: ../lib/tribe-view-helpers.class.php:193
1119
+ msgid "Nigeria"
1120
+ msgstr ""
1121
+
1122
+ #: ../lib/tribe-view-helpers.class.php:194
1123
+ msgid "Niue"
1124
+ msgstr ""
1125
+
1126
+ #: ../lib/tribe-view-helpers.class.php:195
1127
+ msgid "Norfolk Island"
1128
+ msgstr ""
1129
+
1130
+ #: ../lib/tribe-view-helpers.class.php:196
1131
+ msgid "Northern Mariana Islands"
1132
+ msgstr ""
1133
+
1134
+ #: ../lib/tribe-view-helpers.class.php:197
1135
+ msgid "Norway"
1136
+ msgstr ""
1137
+
1138
+ #: ../lib/tribe-view-helpers.class.php:198
1139
+ msgid "Oman"
1140
+ msgstr ""
1141
+
1142
+ #: ../lib/tribe-view-helpers.class.php:199
1143
+ msgid "Pakistan"
1144
+ msgstr ""
1145
+
1146
+ #: ../lib/tribe-view-helpers.class.php:200
1147
+ msgid "Palau"
1148
+ msgstr ""
1149
+
1150
+ #: ../lib/tribe-view-helpers.class.php:201
1151
+ msgid "Panama"
1152
+ msgstr ""
1153
+
1154
+ #: ../lib/tribe-view-helpers.class.php:202
1155
+ msgid "Papua New Guinea"
1156
+ msgstr ""
1157
+
1158
+ #: ../lib/tribe-view-helpers.class.php:203
1159
+ msgid "Paraguay"
1160
+ msgstr ""
1161
+
1162
+ #: ../lib/tribe-view-helpers.class.php:204
1163
+ msgid "Peru"
1164
+ msgstr ""
1165
+
1166
+ #: ../lib/tribe-view-helpers.class.php:205
1167
+ msgid "Philippines"
1168
+ msgstr ""
1169
+
1170
+ #: ../lib/tribe-view-helpers.class.php:206
1171
+ msgid "Pitcairn"
1172
+ msgstr ""
1173
+
1174
+ #: ../lib/tribe-view-helpers.class.php:207
1175
+ msgid "Poland"
1176
+ msgstr ""
1177
+
1178
+ #: ../lib/tribe-view-helpers.class.php:208
1179
+ msgid "Portugal"
1180
+ msgstr ""
1181
+
1182
+ #: ../lib/tribe-view-helpers.class.php:209
1183
+ msgid "Puerto Rico"
1184
+ msgstr ""
1185
+
1186
+ #: ../lib/tribe-view-helpers.class.php:210
1187
+ msgid "Qatar"
1188
+ msgstr ""
1189
+
1190
+ #: ../lib/tribe-view-helpers.class.php:211
1191
+ msgid "Reunion"
1192
+ msgstr ""
1193
+
1194
+ #: ../lib/tribe-view-helpers.class.php:212
1195
+ msgid "Romania"
1196
+ msgstr ""
1197
+
1198
+ #: ../lib/tribe-view-helpers.class.php:213
1199
+ msgid "Russian Federation"
1200
+ msgstr "Россия"
1201
+
1202
+ #: ../lib/tribe-view-helpers.class.php:214
1203
+ msgid "Rwanda"
1204
+ msgstr ""
1205
+
1206
+ #: ../lib/tribe-view-helpers.class.php:215
1207
+ msgid "Saint Kitts And Nevis"
1208
+ msgstr ""
1209
+
1210
+ #: ../lib/tribe-view-helpers.class.php:216
1211
+ msgid "Saint Lucia"
1212
+ msgstr ""
1213
+
1214
+ #: ../lib/tribe-view-helpers.class.php:217
1215
+ msgid "Saint Vincent And The Grenadines"
1216
+ msgstr ""
1217
+
1218
+ #: ../lib/tribe-view-helpers.class.php:218
1219
+ msgid "Samoa"
1220
+ msgstr ""
1221
+
1222
+ #: ../lib/tribe-view-helpers.class.php:219
1223
+ msgid "San Marino"
1224
+ msgstr ""
1225
+
1226
+ #: ../lib/tribe-view-helpers.class.php:220
1227
+ msgid "Sao Tome And Principe"
1228
+ msgstr ""
1229
+
1230
+ #: ../lib/tribe-view-helpers.class.php:221
1231
+ msgid "Saudi Arabia"
1232
+ msgstr ""
1233
+
1234
+ #: ../lib/tribe-view-helpers.class.php:222
1235
+ msgid "Senegal"
1236
+ msgstr ""
1237
+
1238
+ #: ../lib/tribe-view-helpers.class.php:223
1239
+ msgid "Serbia"
1240
+ msgstr ""
1241
+
1242
+ #: ../lib/tribe-view-helpers.class.php:224
1243
+ msgid "Seychelles"
1244
+ msgstr ""
1245
+
1246
+ #: ../lib/tribe-view-helpers.class.php:225
1247
+ msgid "Sierra Leone"
1248
+ msgstr ""
1249
+
1250
+ #: ../lib/tribe-view-helpers.class.php:226
1251
+ msgid "Singapore"
1252
+ msgstr ""
1253
+
1254
+ #: ../lib/tribe-view-helpers.class.php:227
1255
+ msgid "Slovakia (Slovak Republic)"
1256
+ msgstr ""
1257
+
1258
+ #: ../lib/tribe-view-helpers.class.php:228
1259
+ msgid "Slovenia"
1260
+ msgstr ""
1261
+
1262
+ #: ../lib/tribe-view-helpers.class.php:229
1263
+ msgid "Solomon Islands"
1264
+ msgstr ""
1265
+
1266
+ #: ../lib/tribe-view-helpers.class.php:230
1267
+ msgid "Somalia"
1268
+ msgstr ""
1269
+
1270
+ #: ../lib/tribe-view-helpers.class.php:231
1271
+ msgid "South Africa"
1272
+ msgstr ""
1273
+
1274
+ #: ../lib/tribe-view-helpers.class.php:232
1275
+ msgid "South Georgia, South Sandwich Islands"
1276
+ msgstr ""
1277
+
1278
+ #: ../lib/tribe-view-helpers.class.php:233
1279
+ msgid "Spain"
1280
+ msgstr ""
1281
+
1282
+ #: ../lib/tribe-view-helpers.class.php:234
1283
+ msgid "Sri Lanka"
1284
+ msgstr ""
1285
+
1286
+ #: ../lib/tribe-view-helpers.class.php:235
1287
+ msgid "St. Helena"
1288
+ msgstr ""
1289
+
1290
+ #: ../lib/tribe-view-helpers.class.php:236
1291
+ msgid "St. Pierre And Miquelon"
1292
+ msgstr ""
1293
+
1294
+ #: ../lib/tribe-view-helpers.class.php:237
1295
+ msgid "Sudan"
1296
+ msgstr ""
1297
+
1298
+ #: ../lib/tribe-view-helpers.class.php:238
1299
+ msgid "Suriname"
1300
+ msgstr ""
1301
+
1302
+ #: ../lib/tribe-view-helpers.class.php:239
1303
+ msgid "Svalbard And Jan Mayen Islands"
1304
+ msgstr ""
1305
+
1306
+ #: ../lib/tribe-view-helpers.class.php:240
1307
+ msgid "Swaziland"
1308
+ msgstr ""
1309
+
1310
+ #: ../lib/tribe-view-helpers.class.php:241
1311
+ msgid "Sweden"
1312
+ msgstr ""
1313
+
1314
+ #: ../lib/tribe-view-helpers.class.php:242
1315
+ msgid "Switzerland"
1316
+ msgstr ""
1317
+
1318
+ #: ../lib/tribe-view-helpers.class.php:243
1319
+ msgid "Syrian Arab Republic"
1320
+ msgstr ""
1321
+
1322
+ #: ../lib/tribe-view-helpers.class.php:244
1323
+ msgid "Taiwan"
1324
+ msgstr ""
1325
+
1326
+ #: ../lib/tribe-view-helpers.class.php:245
1327
+ msgid "Tajikistan"
1328
+ msgstr ""
1329
+
1330
+ #: ../lib/tribe-view-helpers.class.php:246
1331
+ msgid "Tanzania, United Republic Of"
1332
+ msgstr ""
1333
+
1334
+ #: ../lib/tribe-view-helpers.class.php:247
1335
+ msgid "Thailand"
1336
+ msgstr ""
1337
+
1338
+ #: ../lib/tribe-view-helpers.class.php:248
1339
+ msgid "Togo"
1340
+ msgstr ""
1341
+
1342
+ #: ../lib/tribe-view-helpers.class.php:249
1343
+ msgid "Tokelau"
1344
+ msgstr ""
1345
+
1346
+ #: ../lib/tribe-view-helpers.class.php:250
1347
+ msgid "Tonga"
1348
+ msgstr ""
1349
+
1350
+ #: ../lib/tribe-view-helpers.class.php:251
1351
+ msgid "Trinidad And Tobago"
1352
+ msgstr ""
1353
+
1354
+ #: ../lib/tribe-view-helpers.class.php:252
1355
+ msgid "Tunisia"
1356
+ msgstr ""
1357
+
1358
+ #: ../lib/tribe-view-helpers.class.php:253
1359
+ msgid "Turkey"
1360
+ msgstr ""
1361
+
1362
+ #: ../lib/tribe-view-helpers.class.php:254
1363
+ msgid "Turkmenistan"
1364
+ msgstr ""
1365
+
1366
+ #: ../lib/tribe-view-helpers.class.php:255
1367
+ msgid "Turks And Caicos Islands"
1368
+ msgstr ""
1369
+
1370
+ #: ../lib/tribe-view-helpers.class.php:256
1371
+ msgid "Tuvalu"
1372
+ msgstr ""
1373
+
1374
+ #: ../lib/tribe-view-helpers.class.php:257
1375
+ msgid "Uganda"
1376
+ msgstr ""
1377
+
1378
+ #: ../lib/tribe-view-helpers.class.php:258
1379
+ msgid "Ukraine"
1380
+ msgstr ""
1381
+
1382
+ #: ../lib/tribe-view-helpers.class.php:259
1383
+ msgid "United Arab Emirates"
1384
+ msgstr ""
1385
+
1386
+ #: ../lib/tribe-view-helpers.class.php:260
1387
+ msgid "United Kingdom"
1388
+ msgstr ""
1389
+
1390
+ #: ../lib/tribe-view-helpers.class.php:261
1391
+ msgid "United States Minor Outlying Islands"
1392
+ msgstr ""
1393
+
1394
+ #: ../lib/tribe-view-helpers.class.php:262
1395
+ msgid "Uruguay"
1396
+ msgstr ""
1397
+
1398
+ #: ../lib/tribe-view-helpers.class.php:263
1399
+ msgid "Uzbekistan"
1400
+ msgstr ""
1401
+
1402
+ #: ../lib/tribe-view-helpers.class.php:264
1403
+ msgid "Vanuatu"
1404
+ msgstr ""
1405
+
1406
+ #: ../lib/tribe-view-helpers.class.php:265
1407
+ msgid "Venezuela"
1408
+ msgstr ""
1409
+
1410
+ #: ../lib/tribe-view-helpers.class.php:266
1411
+ msgid "Viet Nam"
1412
+ msgstr ""
1413
+
1414
+ #: ../lib/tribe-view-helpers.class.php:267
1415
+ msgid "Virgin Islands (British)"
1416
+ msgstr ""
1417
+
1418
+ #: ../lib/tribe-view-helpers.class.php:268
1419
+ msgid "Virgin Islands (U.S.)"
1420
+ msgstr ""
1421
+
1422
+ #: ../lib/tribe-view-helpers.class.php:269
1423
+ msgid "Wallis And Futuna Islands"
1424
+ msgstr ""
1425
+
1426
+ #: ../lib/tribe-view-helpers.class.php:270
1427
+ msgid "Western Sahara"
1428
+ msgstr ""
1429
+
1430
+ #: ../lib/tribe-view-helpers.class.php:271
1431
+ msgid "Yemen"
1432
+ msgstr ""
1433
+
1434
+ #: ../lib/tribe-view-helpers.class.php:272
1435
+ msgid "Zambia"
1436
+ msgstr ""
1437
+
1438
+ #: ../lib/tribe-view-helpers.class.php:273
1439
+ msgid "Zimbabwe"
1440
+ msgstr ""
1441
+
1442
+ #: ../lib/tribe-view-helpers.class.php:293
1443
+ msgid "Alabama"
1444
+ msgstr ""
1445
+
1446
+ #: ../lib/tribe-view-helpers.class.php:294
1447
+ msgid "Alaska"
1448
+ msgstr ""
1449
+
1450
+ #: ../lib/tribe-view-helpers.class.php:295
1451
+ msgid "Arizona"
1452
+ msgstr ""
1453
+
1454
+ #: ../lib/tribe-view-helpers.class.php:296
1455
+ msgid "Arkansas"
1456
+ msgstr ""
1457
+
1458
+ #: ../lib/tribe-view-helpers.class.php:297
1459
+ msgid "California"
1460
+ msgstr ""
1461
+
1462
+ #: ../lib/tribe-view-helpers.class.php:298
1463
+ msgid "Colorado"
1464
+ msgstr ""
1465
+
1466
+ #: ../lib/tribe-view-helpers.class.php:299
1467
+ msgid "Connecticut"
1468
+ msgstr ""
1469
+
1470
+ #: ../lib/tribe-view-helpers.class.php:300
1471
+ msgid "Delaware"
1472
+ msgstr ""
1473
+
1474
+ #: ../lib/tribe-view-helpers.class.php:301
1475
+ msgid "District of Columbia"
1476
+ msgstr ""
1477
+
1478
+ #: ../lib/tribe-view-helpers.class.php:302
1479
+ msgid "Florida"
1480
+ msgstr ""
1481
+
1482
+ #: ../lib/tribe-view-helpers.class.php:304
1483
+ msgid "Hawaii"
1484
+ msgstr ""
1485
+
1486
+ #: ../lib/tribe-view-helpers.class.php:305
1487
+ msgid "Idaho"
1488
+ msgstr ""
1489
+
1490
+ #: ../lib/tribe-view-helpers.class.php:306
1491
+ msgid "Illinois"
1492
+ msgstr ""
1493
+
1494
+ #: ../lib/tribe-view-helpers.class.php:307
1495
+ msgid "Indiana"
1496
+ msgstr ""
1497
+
1498
+ #: ../lib/tribe-view-helpers.class.php:308
1499
+ msgid "Iowa"
1500
+ msgstr ""
1501
+
1502
+ #: ../lib/tribe-view-helpers.class.php:309
1503
+ msgid "Kansas"
1504
+ msgstr ""
1505
+
1506
+ #: ../lib/tribe-view-helpers.class.php:310
1507
+ msgid "Kentucky"
1508
+ msgstr ""
1509
+
1510
+ #: ../lib/tribe-view-helpers.class.php:311
1511
+ msgid "Louisiana"
1512
+ msgstr ""
1513
+
1514
+ #: ../lib/tribe-view-helpers.class.php:312
1515
+ msgid "Maine"
1516
+ msgstr ""
1517
+
1518
+ #: ../lib/tribe-view-helpers.class.php:313
1519
+ msgid "Maryland"
1520
+ msgstr ""
1521
+
1522
+ #: ../lib/tribe-view-helpers.class.php:314
1523
+ msgid "Massachusetts"
1524
+ msgstr ""
1525
+
1526
+ #: ../lib/tribe-view-helpers.class.php:315
1527
+ msgid "Michigan"
1528
+ msgstr ""
1529
+
1530
+ #: ../lib/tribe-view-helpers.class.php:316
1531
+ msgid "Minnesota"
1532
+ msgstr ""
1533
+
1534
+ #: ../lib/tribe-view-helpers.class.php:317
1535
+ msgid "Mississippi"
1536
+ msgstr ""
1537
+
1538
+ #: ../lib/tribe-view-helpers.class.php:318
1539
+ msgid "Missouri"
1540
+ msgstr ""
1541
+
1542
+ #: ../lib/tribe-view-helpers.class.php:319
1543
+ msgid "Montana"
1544
+ msgstr ""
1545
+
1546
+ #: ../lib/tribe-view-helpers.class.php:320
1547
+ msgid "Nebraska"
1548
+ msgstr ""
1549
+
1550
+ #: ../lib/tribe-view-helpers.class.php:321
1551
+ msgid "Nevada"
1552
+ msgstr ""
1553
+
1554
+ #: ../lib/tribe-view-helpers.class.php:322
1555
+ msgid "New Hampshire"
1556
+ msgstr ""
1557
+
1558
+ #: ../lib/tribe-view-helpers.class.php:323
1559
+ msgid "New Jersey"
1560
+ msgstr ""
1561
+
1562
+ #: ../lib/tribe-view-helpers.class.php:324
1563
+ msgid "New Mexico"
1564
+ msgstr ""
1565
+
1566
+ #: ../lib/tribe-view-helpers.class.php:325
1567
+ msgid "New York"
1568
+ msgstr ""
1569
+
1570
+ #: ../lib/tribe-view-helpers.class.php:326
1571
+ msgid "North Carolina"
1572
+ msgstr ""
1573
+
1574
+ #: ../lib/tribe-view-helpers.class.php:327
1575
+ msgid "North Dakota"
1576
+ msgstr ""
1577
+
1578
+ #: ../lib/tribe-view-helpers.class.php:328
1579
+ msgid "Ohio"
1580
+ msgstr ""
1581
+
1582
+ #: ../lib/tribe-view-helpers.class.php:329
1583
+ msgid "Oklahoma"
1584
+ msgstr ""
1585
+
1586
+ #: ../lib/tribe-view-helpers.class.php:330
1587
+ msgid "Oregon"
1588
+ msgstr ""
1589
+
1590
+ #: ../lib/tribe-view-helpers.class.php:331
1591
+ msgid "Pennsylvania"
1592
+ msgstr ""
1593
+
1594
+ #: ../lib/tribe-view-helpers.class.php:332
1595
+ msgid "Rhode Island"
1596
+ msgstr ""
1597
+
1598
+ #: ../lib/tribe-view-helpers.class.php:333
1599
+ msgid "South Carolina"
1600
+ msgstr ""
1601
+
1602
+ #: ../lib/tribe-view-helpers.class.php:334
1603
+ msgid "South Dakota"
1604
+ msgstr ""
1605
+
1606
+ #: ../lib/tribe-view-helpers.class.php:335
1607
+ msgid "Tennessee"
1608
+ msgstr ""
1609
+
1610
+ #: ../lib/tribe-view-helpers.class.php:336
1611
+ msgid "Texas"
1612
+ msgstr ""
1613
+
1614
+ #: ../lib/tribe-view-helpers.class.php:337
1615
+ msgid "Utah"
1616
+ msgstr ""
1617
+
1618
+ #: ../lib/tribe-view-helpers.class.php:338
1619
+ msgid "Vermont"
1620
+ msgstr ""
1621
+
1622
+ #: ../lib/tribe-view-helpers.class.php:339
1623
+ msgid "Virginia"
1624
+ msgstr ""
1625
+
1626
+ #: ../lib/tribe-view-helpers.class.php:340
1627
+ msgid "Washington"
1628
+ msgstr ""
1629
+
1630
+ #: ../lib/tribe-view-helpers.class.php:341
1631
+ msgid "West Virginia"
1632
+ msgstr ""
1633
+
1634
+ #: ../lib/tribe-view-helpers.class.php:342
1635
+ msgid "Wisconsin"
1636
+ msgstr ""
1637
+
1638
+ #: ../lib/tribe-view-helpers.class.php:343
1639
+ msgid "Wyoming"
1640
+ msgstr ""
1641
+
1642
+ #: ../lib/tribe-event-exception.class.php:17
1643
+ #: ../lib/tribe-event-exception.class.php:34
1644
+ msgid "Error"
1645
+ msgstr "Ошибка"
1646
+
1647
+ #: ../lib/the-events-calendar.class.php:214
1648
+ msgid "The Events Calendar"
1649
+ msgstr "Календарь событий"
1650
+
1651
+ #: ../lib/the-events-calendar.class.php:217
1652
+ msgid "category"
1653
+ msgstr "категория"
1654
+
1655
+ #: ../lib/the-events-calendar.class.php:218
1656
+ msgid "month"
1657
+ msgstr "месяц"
1658
+
1659
+ #: ../lib/the-events-calendar.class.php:219
1660
+ msgid "upcoming"
1661
+ msgstr "предстоящее"
1662
+
1663
+ #: ../lib/the-events-calendar.class.php:220
1664
+ msgid "past"
1665
+ msgstr "прошедшее"
1666
+
1667
+ #: ../lib/the-events-calendar.class.php:222
1668
+ msgid "venue"
1669
+ msgstr "место"
1670
+
1671
+ #: ../lib/the-events-calendar.class.php:232
1672
+ #, php-format
1673
+ msgid "Initializing Tribe Events on %s"
1674
+ msgstr "Инициализация Tribe Событий на %s"
1675
+
1676
+ #: ../lib/the-events-calendar.class.php:280
1677
+ #, php-format
1678
+ msgid "Sorry, The Events Calendar requires WordPress %s or higher. Please upgrade your WordPress install."
1679
+ msgstr "Извините, Календарь Событий требует WordPress %s или новее. Пожалуйста обновите WordPress."
1680
+
1681
+ #: ../lib/the-events-calendar.class.php:283
1682
+ #, php-format
1683
+ msgid "Sorry, The Events Calendar requires PHP %s or higher. Talk to your Web host about moving you to a newer version of PHP."
1684
+ msgstr "Извините, Календарь Событий требует PHP %s или новее. Пожалуйста свяжитесь с вашим веб хостом насчет обновления версии PHP."
1685
+
1686
+ #: ../lib/the-events-calendar.class.php:400
1687
+ msgid "Upcoming Events"
1688
+ msgstr "Предстоящие события"
1689
+
1690
+ #: ../lib/the-events-calendar.class.php:402
1691
+ msgid "Past Events"
1692
+ msgstr "Прошедшие события"
1693
+
1694
+ #: ../lib/the-events-calendar.class.php:406
1695
+ #, php-format
1696
+ msgid "Events for %s"
1697
+ msgstr "События для %s"
1698
+
1699
+ #: ../lib/the-events-calendar.class.php:408
1700
+ msgid "Events this month"
1701
+ msgstr "События этого месяца"
1702
+
1703
+ #: ../lib/the-events-calendar.class.php:422
1704
+ msgid "No description has been entered for this event."
1705
+ msgstr "Для этого события не было никакого описания."
1706
+
1707
+ #: ../lib/the-events-calendar.class.php:487
1708
+ msgid "Events"
1709
+ msgstr "События"
1710
+
1711
+ #: ../lib/the-events-calendar.class.php:488
1712
+ msgid "Event"
1713
+ msgstr "Событие"
1714
+
1715
+ #: ../lib/the-events-calendar.class.php:489
1716
+ #: ../lib/the-events-calendar.class.php:502
1717
+ #: ../lib/the-events-calendar.class.php:515
1718
+ msgid "Add New"
1719
+ msgstr "Добавить новое"
1720
+
1721
+ #: ../lib/the-events-calendar.class.php:490
1722
+ msgid "Add New Event"
1723
+ msgstr "Добавить новое событие"
1724
+
1725
+ #: ../lib/the-events-calendar.class.php:491
1726
+ msgid "Edit Event"
1727
+ msgstr "Редактировать событие"
1728
+
1729
+ #: ../lib/the-events-calendar.class.php:492
1730
+ msgid "New Event"
1731
+ msgstr "Новое событие"
1732
+
1733
+ #: ../lib/the-events-calendar.class.php:493
1734
+ msgid "View Event"
1735
+ msgstr "Простомотр события"
1736
+
1737
+ #: ../lib/the-events-calendar.class.php:494
1738
+ msgid "Search Events"
1739
+ msgstr "Поиск событий"
1740
+
1741
+ #: ../lib/the-events-calendar.class.php:495
1742
+ msgid "No events found"
1743
+ msgstr "Событий не найдено"
1744
+
1745
+ #: ../lib/the-events-calendar.class.php:496
1746
+ msgid "No events found in Trash"
1747
+ msgstr "Событий в мусорнице не найдено"
1748
+
1749
+ #: ../lib/the-events-calendar.class.php:500
1750
+ msgid "Venues"
1751
+ msgstr "Места проведения"
1752
+
1753
+ #: ../lib/the-events-calendar.class.php:501
1754
+ msgid "Venue"
1755
+ msgstr "Место проведения"
1756
+
1757
+ #: ../lib/the-events-calendar.class.php:503
1758
+ msgid "Add New Venue"
1759
+ msgstr "Добавить место проведения"
1760
+
1761
+ #: ../lib/the-events-calendar.class.php:504
1762
+ msgid "Edit Venue"
1763
+ msgstr "Редакторовать место"
1764
+
1765
+ #: ../lib/the-events-calendar.class.php:505
1766
+ msgid "New Venue"
1767
+ msgstr "Новое место"
1768
+
1769
+ #: ../lib/the-events-calendar.class.php:506
1770
+ #: ../lib/the-events-calendar.class.php:519
1771
+ msgid "View Venue"
1772
+ msgstr "Просмотр места проведения"
1773
+
1774
+ #: ../lib/the-events-calendar.class.php:507
1775
+ msgid "Search Venues"
1776
+ msgstr "Искать места проведений"
1777
+
1778
+ #: ../lib/the-events-calendar.class.php:508
1779
+ msgid "No venue found"
1780
+ msgstr "Мест проведения не найдено"
1781
+
1782
+ #: ../lib/the-events-calendar.class.php:509
1783
+ msgid "No venues found in Trash"
1784
+ msgstr "Мест проведения в мусорнице не найдено"
1785
+
1786
+ #: ../lib/the-events-calendar.class.php:513
1787
+ msgid "Organizers"
1788
+ msgstr "Организаторы"
1789
+
1790
+ #: ../lib/the-events-calendar.class.php:514
1791
+ msgid "Organizer"
1792
+ msgstr "Организатор"
1793
+
1794
+ #: ../lib/the-events-calendar.class.php:516
1795
+ msgid "Add New Organizer"
1796
+ msgstr "Добавть нового организатора"
1797
+
1798
+ #: ../lib/the-events-calendar.class.php:517
1799
+ msgid "Edit Organizer"
1800
+ msgstr "Редактировать организатора"
1801
+
1802
+ #: ../lib/the-events-calendar.class.php:518
1803
+ msgid "New Organizer"
1804
+ msgstr "Новый организатор"
1805
+
1806
+ #: ../lib/the-events-calendar.class.php:520
1807
+ msgid "Search Organizers"
1808
+ msgstr "Искать организаторов"
1809
+
1810
+ #: ../lib/the-events-calendar.class.php:521
1811
+ msgid "No organizer found"
1812
+ msgstr "Организаторов не найдено"
1813
+
1814
+ #: ../lib/the-events-calendar.class.php:522
1815
+ msgid "No organizers found in Trash"
1816
+ msgstr "Организаторов в корзине не найдено"
1817
+
1818
+ #: ../lib/the-events-calendar.class.php:527
1819
+ msgid "Event Category"
1820
+ msgstr "Категория события"
1821
+
1822
+ #: ../lib/the-events-calendar.class.php:528
1823
+ msgid "Search Event Categories"
1824
+ msgstr "Поиск событий по категориям"
1825
+
1826
+ #: ../lib/the-events-calendar.class.php:529
1827
+ msgid "All Event Categories"
1828
+ msgstr "Все категории событий"
1829
+
1830
+ #: ../lib/the-events-calendar.class.php:530
1831
+ msgid "Parent Event Category"
1832
+ msgstr "Основная категория"
1833
+
1834
+ #: ../lib/the-events-calendar.class.php:531
1835
+ msgid "Parent Event Category:"
1836
+ msgstr "Родительская категория событий:"
1837
+
1838
+ #: ../lib/the-events-calendar.class.php:532
1839
+ msgid "Edit Event Category"
1840
+ msgstr "Редактировать категорию"
1841
+
1842
+ #: ../lib/the-events-calendar.class.php:533
1843
+ msgid "Update Event Category"
1844
+ msgstr "Обновить категорию"
1845
+
1846
+ #: ../lib/the-events-calendar.class.php:534
1847
+ msgid "Add New Event Category"
1848
+ msgstr "Добавить новую категорию событий"
1849
+
1850
+ #: ../lib/the-events-calendar.class.php:535
1851
+ msgid "New Event Category Name"
1852
+ msgstr "Имя категории нового события"
1853
+
1854
+ #: ../lib/the-events-calendar.class.php:545
1855
+ #, php-format
1856
+ msgid "Event updated. <a href=\"%s\">View event</a>"
1857
+ msgstr "Событие обновлено. <a href=\"%s\">Показать событие</a>"
1858
+
1859
+ #: ../lib/the-events-calendar.class.php:546
1860
+ #: ../lib/the-events-calendar.class.php:563
1861
+ #: ../lib/the-events-calendar.class.php:580
1862
+ msgid "Custom field updated."
1863
+ msgstr "Пользовательское поле обновлено "
1864
+
1865
+ #: ../lib/the-events-calendar.class.php:547
1866
+ #: ../lib/the-events-calendar.class.php:564
1867
+ #: ../lib/the-events-calendar.class.php:581
1868
+ msgid "Custom field deleted."
1869
+ msgstr "Пользовательское поле удалено"
1870
+
1871
+ #: ../lib/the-events-calendar.class.php:548
1872
+ msgid "Event updated."
1873
+ msgstr "Событие обновлено"
1874
+
1875
+ #: ../lib/the-events-calendar.class.php:550
1876
+ #, php-format
1877
+ msgid "Event restored to revision from %s"
1878
+ msgstr "Событие восстановлено для ревизии из %s"
1879
+
1880
+ #: ../lib/the-events-calendar.class.php:551
1881
+ #, php-format
1882
+ msgid "Event published. <a href=\"%s\">View event</a>"
1883
+ msgstr "Событие опубликовано. <a href=\"%s\">Показать событие</a>"
1884
+
1885
+ #: ../lib/the-events-calendar.class.php:552
1886
+ msgid "Event saved."
1887
+ msgstr "Событие сохранено"
1888
+
1889
+ #: ../lib/the-events-calendar.class.php:553
1890
+ #, php-format
1891
+ msgid "Event submitted. <a target=\"_blank\" href=\"%s\">Preview event</a>"
1892
+ msgstr "Событие отправлено. <a target=\"_blank\" href=\"%s\">Предосмотр события</a>"
1893
+
1894
+ #: ../lib/the-events-calendar.class.php:554
1895
+ #, php-format
1896
+ msgid "Event scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview event</a>"
1897
+ msgstr "Событие назначено для: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Предосмотр события</a>"
1898
+
1899
+ #: ../lib/the-events-calendar.class.php:556
1900
+ #: ../lib/the-events-calendar.class.php:573
1901
+ #: ../lib/the-events-calendar.class.php:590
1902
+ msgid "M j, Y @ G:i"
1903
+ msgstr ""
1904
+
1905
+ #: ../lib/the-events-calendar.class.php:557
1906
+ #, php-format
1907
+ msgid "Event draft updated. <a target=\"_blank\" href=\"%s\">Preview event</a>"
1908
+ msgstr "Черновик события обновлен. <a target=\"_blank\" href=\"%s\">Предосмотр события</a>"
1909
+
1910
+ #: ../lib/the-events-calendar.class.php:562
1911
+ #, php-format
1912
+ msgid "Venue updated. <a href=\"%s\">View venue</a>"
1913
+ msgstr "Место обновлено <a href=\"%s\">Показать место</a>"
1914
+
1915
+ #: ../lib/the-events-calendar.class.php:565
1916
+ msgid "Venue updated."
1917
+ msgstr "Место обновлено."
1918
+
1919
+ #: ../lib/the-events-calendar.class.php:567
1920
+ #, php-format
1921
+ msgid "Venue restored to revision from %s"
1922
+ msgstr "Место восстановлено для ревизии от %s"
1923
+
1924
+ #: ../lib/the-events-calendar.class.php:568
1925
+ #, php-format
1926
+ msgid "Venue published. <a href=\"%s\">View venue</a>"
1927
+ msgstr "Место опубликовано. <a href=\"%s\">Показать место</a>"
1928
+
1929
+ #: ../lib/the-events-calendar.class.php:569
1930
+ msgid "Venue saved."
1931
+ msgstr "Место сохранено."
1932
+
1933
+ #: ../lib/the-events-calendar.class.php:570
1934
+ #, php-format
1935
+ msgid "Venue submitted. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
1936
+ msgstr "Место отправлено <a target=\"_blank\" href=\"%s\">Преосмотр места</a>"
1937
+
1938
+ #: ../lib/the-events-calendar.class.php:571
1939
+ #, php-format
1940
+ msgid "Venue scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview venue</a>"
1941
+ msgstr "Место поставлено в расписание для: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Предосмотр места</a>"
1942
+
1943
+ #: ../lib/the-events-calendar.class.php:574
1944
+ #, php-format
1945
+ msgid "Venue draft updated. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
1946
+ msgstr "Черновик места обновлен. <a target=\"_blank\" href=\"%s\">Предосмотр места</a>"
1947
+
1948
+ #: ../lib/the-events-calendar.class.php:579
1949
+ #, php-format
1950
+ msgid "Organizer updated. <a href=\"%s\">View organizer</a>"
1951
+ msgstr "Организато обновлен. <a href=\"%s\">Просмотр Организатораr</a>"
1952
+
1953
+ #: ../lib/the-events-calendar.class.php:582
1954
+ msgid "Organizer updated."
1955
+ msgstr "Организатор обновлен."
1956
+
1957
+ #: ../lib/the-events-calendar.class.php:584
1958
+ #, php-format
1959
+ msgid "Organizer restored to revision from %s"
1960
+ msgstr "Организатор восстановлен для версии %s"
1961
+
1962
+ #: ../lib/the-events-calendar.class.php:585
1963
+ #, php-format
1964
+ msgid "Organizer published. <a href=\"%s\">View organizer</a>"
1965
+ msgstr "Организатор опубликован. <a href=\"%s\">Просмотр Организатораr</a>"
1966
+
1967
+ #: ../lib/the-events-calendar.class.php:586
1968
+ msgid "Organizer saved."
1969
+ msgstr "Организатор сохранен."
1970
+
1971
+ #: ../lib/the-events-calendar.class.php:587
1972
+ #, php-format
1973
+ msgid "Organizer submitted. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
1974
+ msgstr "Организатор отправлен. <a target=\"_blank\" href=\"%s\">Просмотр организатораr</a>"
1975
+
1976
+ #: ../lib/the-events-calendar.class.php:588
1977
+ #, php-format
1978
+ msgid "Organizer scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview organizer</a>"
1979
+ msgstr "Организатор поставлен в расписание: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Просмотр организатора</a>"
1980
+
1981
+ #: ../lib/the-events-calendar.class.php:591
1982
+ #, php-format
1983
+ msgid "Organizer draft updated. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
1984
+ msgstr "Черновик организатора обновлен. <a target=\"_blank\" href=\"%s\">Просмотр организатора</a>"
1985
+
1986
+ #: ../lib/the-events-calendar.class.php:646
1987
+ msgid "Next"
1988
+ msgstr "Следующий"
1989
+
1990
+ #: ../lib/the-events-calendar.class.php:647
1991
+ msgid "Prev"
1992
+ msgstr "Предыдущий"
1993
+
1994
+ #: ../lib/the-events-calendar.class.php:648
1995
+ msgid "Today"
1996
+ msgstr "Сегодня"
1997
+
1998
+ #: ../lib/the-events-calendar.class.php:649
1999
+ msgid "Done"
2000
+ msgstr "Готово"
2001
+
2002
+ #: ../lib/the-events-calendar.class.php:1734
2003
+ msgid "Event Options"
2004
+ msgstr "Опции События"
2005
+
2006
+ #: ../lib/the-events-calendar.class.php:1736
2007
+ msgid "Venue Information"
2008
+ msgstr "Информация о Месте"
2009
+
2010
+ #: ../lib/the-events-calendar.class.php:1737
2011
+ msgid "Organizer Information"
2012
+ msgstr "Информация об Организаторе"
2013
+
2014
+ #: ../lib/the-events-calendar.class.php:1839
2015
+ msgid "View All Add-Ons"
2016
+ msgstr "Посмотреть все расширения"
2017
+
2018
+ #: ../lib/the-events-calendar.class.php:1846
2019
+ msgid "News from Tribe Pro"
2020
+ msgstr "Новости от Tribe Pro"
2021
+
2022
+ #: ../lib/tribe-debug-bar.class.php:18
2023
+ msgid "Tribe"
2024
+ msgstr ""
2025
+
2026
+ #: ../lib/tribe-the-events-calendar-import.class.php:45
2027
+ msgid "Upgrade from The Events Calendar"
2028
+ msgstr "Апгрейд Календарь Событий"
2029
+
2030
+ #: ../lib/tribe-the-events-calendar-import.class.php:46
2031
+ msgid "It appears that you have some old events calendar data that needs to be upgraded. Please be sure to back up your database before initiating the upgrade. This process can not be undone."
2032
+ msgstr "Вероятно, что некоторые старые события в календаре должны быть обновлены. Пожалуйста сделайте бэкап базы данных прежде, чем начать апгрэйд. Этот процесс будет невозможно отменить. "
2033
+
2034
+ #: ../lib/tribe-the-events-calendar-import.class.php:47
2035
+ msgid "Migrate Data!"
2036
+ msgstr "Пренести Данные!"
2037
+
2038
+ #: ../lib/tribe-the-events-calendar-import.class.php:119
2039
+ #, php-format
2040
+ msgid "You successfully migrated (%d) entries."
2041
+ msgstr "Вы успешно перенесли (%d) записей."
2042
+
2043
+ #: ../lib/tribe-the-events-calendar-import.class.php:189
2044
+ msgid "Install has 1 or more legacy event!"
2045
+ msgstr "Установка имеет 1 или больше устаревших события!"
2046
+
2047
+ #: ../lib/template-tags.php:607
2048
+ msgid "Free"
2049
+ msgstr "Бесплатно"
2050
+
2051
+ #: ../lib/template-tags.php:978
2052
+ msgid "Calendar of Events"
2053
+ msgstr "Календарь Событий"
2054
+
2055
+ #: ../lib/template-tags.php:993
2056
+ msgid "Category:"
2057
+ msgstr "Категория:"
2058
+
2059
+ #: ../lib/widget-list.class.php:16
2060
+ msgid "A widget that displays the next upcoming x events."
2061
+ msgstr "Виджет показывает x последующих событий."
2062
+
2063
+ #: ../lib/widget-list.class.php:70
2064
+ msgid "View All Events"
2065
+ msgstr "Просмотр всех событий"
2066
+
2067
+ #: ../lib/widget-list.class.php:73
2068
+ msgid "There are no upcoming events at this time."
2069
+ msgstr "На это время нет предстоящих событий."
2070
+
lang/tribe-events-calendar.pot CHANGED
@@ -5,8 +5,8 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: The Events Calendar 2.0\n"
7
  "Report-Msgid-Bugs-To: \n"
8
- "POT-Creation-Date: 2011-09-19 16:36-0500\n"
9
- "PO-Revision-Date: 2011-09-19 16:36-0500\n"
10
  "Last-Translator: John Gadbois <jgadbois@gmail.com>\n"
11
  "Language-Team: Modern Tribe, Inc.\n"
12
  "Language: \n"
@@ -20,95 +20,122 @@ msgstr ""
20
  "X-Poedit-Country: UNITED STATES\n"
21
  "X-Poedit-SearchPath-0: ..\n"
22
 
23
- #: ../views/list.php:16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  #: ../views/gridview.php:37
25
  msgid "Event List"
26
  msgstr ""
27
 
28
- #: ../views/list.php:17
29
  #: ../views/gridview.php:38
30
  msgid "Calendar"
31
  msgstr ""
32
 
33
- #: ../views/list.php:42
34
- #: ../views/single.php:17
35
  msgid "Start:"
36
  msgstr ""
37
 
38
- #: ../views/list.php:46
39
- #: ../views/single.php:20
40
  msgid "End:"
41
  msgstr ""
42
 
43
- #: ../views/list.php:54
44
- #: ../views/single.php:47
 
 
 
 
 
45
  msgid "Venue:"
46
  msgstr ""
47
 
48
- #: ../views/list.php:63
49
- #: ../views/single.php:33
50
- #: ../views/single.php:51
51
- #: ../admin-views/venue-meta-box.php:73
52
  msgid "Phone:"
53
  msgstr ""
54
 
55
- #: ../views/list.php:69
56
- #: ../views/single.php:56
57
- #: ../admin-views/venue-meta-box.php:19
58
  msgid "Address:"
59
  msgstr ""
60
 
61
- #: ../views/list.php:71
62
- #: ../views/single.php:58
63
  msgid "Google Map"
64
  msgstr ""
65
 
66
- #: ../views/list.php:81
67
- #: ../views/single.php:24
68
- #: ../admin-views/events-meta-box.php:113
69
  msgid "Cost:"
70
  msgstr ""
71
 
72
- #: ../views/list.php:95
73
  #, php-format
74
  msgid " listed under %s. Check out past events for this category or view the full calendar."
75
  msgstr ""
76
 
77
- #: ../views/list.php:97
78
  #, php-format
79
  msgid " listed under %s. Check out upcoming events for this category or view the full calendar."
80
  msgstr ""
81
 
82
- #: ../views/list.php:103
 
 
 
 
 
83
  msgid "No upcoming events"
84
  msgstr ""
85
 
86
- #: ../views/list.php:107
87
  msgid "No previous events"
88
  msgstr ""
89
 
90
- #: ../views/list.php:120
91
- #: ../views/list.php:122
92
- #: ../views/list.php:124
93
  msgid "&laquo; Previous Events"
94
  msgstr ""
95
 
96
- #: ../views/list.php:131
97
- #: ../views/list.php:133
98
- #: ../views/list.php:135
99
  msgid "Next Events &raquo;"
100
  msgstr ""
101
 
102
- #: ../views/list.php:140
 
103
  #: ../views/gridview.php:43
104
- #: ../views/single.php:83
105
  msgid "iCal Import"
106
  msgstr ""
107
 
108
- #: ../views/table-mini.php:24
109
- msgid "View all &raquo;"
110
- msgstr ""
111
-
112
  #: ../views/single.php:13
113
  msgid "&laquo; Back to Events"
114
  msgstr ""
@@ -117,358 +144,461 @@ msgstr ""
117
  msgid "This event has passed."
118
  msgstr ""
119
 
120
- #: ../views/single.php:29
 
 
 
 
121
  msgid "Organizer:"
122
  msgstr ""
123
 
124
- #: ../views/single.php:37
125
  msgid "Email:"
126
  msgstr ""
127
 
128
- #: ../views/single.php:41
 
 
 
 
129
  msgid "Schedule:"
130
  msgstr ""
131
 
132
- #: ../views/single.php:58
133
  msgid "Click to view a Google Map"
134
  msgstr ""
135
 
136
- #: ../views/single.php:86
137
  msgid "Add to Google Calendar"
138
  msgstr ""
139
 
140
- #: ../views/single.php:86
141
  msgid "+ Google Calendar"
142
  msgstr ""
143
 
144
- #: ../views/events-list-load-widget-display.php:48
145
- msgid "All Day"
146
- msgstr ""
147
-
148
- #: ../views/events-list-load-widget-display.php:51
149
- msgid "Ends"
150
- msgstr ""
151
-
152
  #: ../views/ecp-single-template.php:24
153
  msgid "Edit"
154
  msgstr ""
155
 
156
- #: ../admin-views/events-meta-box.php:26
157
- msgid "Event Time &amp; Date"
158
  msgstr ""
159
 
160
- #: ../admin-views/events-meta-box.php:29
161
- msgid "You have changed the recurrence rules of this event. Saving the event will update all future events. If you did not mean to change all events, then please refresh the page."
162
  msgstr ""
163
 
164
- #: ../admin-views/events-meta-box.php:32
165
- msgid "All day event?"
166
  msgstr ""
167
 
168
- #: ../admin-views/events-meta-box.php:36
169
- msgid "Start Date / Time:"
 
170
  msgstr ""
171
 
172
- #: ../admin-views/events-meta-box.php:39
173
- #: ../admin-views/events-meta-box.php:60
174
- msgid "YYYY-MM-DD"
175
  msgstr ""
176
 
177
- #: ../admin-views/events-meta-box.php:41
178
- #: ../admin-views/events-meta-box.php:62
179
- msgid "@"
180
  msgstr ""
181
 
182
- #: ../admin-views/events-meta-box.php:57
183
- msgid "End Date / Time:"
184
  msgstr ""
185
 
186
- #: ../admin-views/events-meta-box.php:79
187
- msgid "Event Location Details"
188
  msgstr ""
189
 
190
- #: ../admin-views/events-meta-box.php:85
191
- msgid "Show Google Maps Link:"
192
  msgstr ""
193
 
194
- #: ../admin-views/events-meta-box.php:92
195
- msgid "Show Google Map:"
196
  msgstr ""
197
 
198
- #: ../admin-views/events-meta-box.php:101
199
- msgid "Event Organizer Details"
 
200
  msgstr ""
201
 
202
- #: ../admin-views/events-meta-box.php:110
203
- msgid "Event Cost"
 
204
  msgstr ""
205
 
206
- #: ../admin-views/events-meta-box.php:118
207
- msgid "Leave blank to hide the field. Enter a 0 for events that are free."
 
208
  msgstr ""
209
 
210
- #: ../admin-views/events-meta-box.php:124
211
- msgid "Additional Functionality"
212
  msgstr ""
213
 
214
- #: ../admin-views/events-meta-box.php:129
215
- msgid "Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?"
216
  msgstr ""
217
 
218
- #: ../admin-views/events-meta-box.php:129
 
219
  #, php-format
220
- msgid "Check out the <a href=\"%s\">available Add-Ons</a>."
221
  msgstr ""
222
 
223
- #: ../admin-views/venue-meta-box.php:12
224
- msgid "Venue Name:"
225
  msgstr ""
226
 
227
- #: ../admin-views/venue-meta-box.php:23
228
- msgid "City:"
 
229
  msgstr ""
230
 
231
- #: ../admin-views/venue-meta-box.php:27
232
- msgid "Country:"
233
  msgstr ""
234
 
235
- #: ../admin-views/venue-meta-box.php:52
236
- msgid "State or Province:"
237
  msgstr ""
238
 
239
- #: ../admin-views/venue-meta-box.php:55
240
- msgid "Select a State:"
241
  msgstr ""
242
 
243
- #: ../admin-views/venue-meta-box.php:69
244
- msgid "Postal Code:"
 
 
245
  msgstr ""
246
 
247
- #: ../admin-views/recurrence-dialog.php:11
248
- msgid "Which events do you wish to update?"
249
  msgstr ""
250
 
251
- #: ../admin-views/recurrence-dialog.php:14
252
- msgid "Select your desired action"
253
  msgstr ""
254
 
255
- #: ../admin-views/event-sidebar-options.php:11
256
- msgid "Hide From Upcoming Events List"
257
  msgstr ""
258
 
259
- #: ../admin-views/events-options.php:47
260
- #, php-format
261
- msgid "%s Settings"
262
  msgstr ""
263
 
264
- #: ../admin-views/events-options.php:53
265
- msgid "Need a hand?"
266
  msgstr ""
267
 
268
- #: ../admin-views/events-options.php:54
269
- #, php-format
270
- msgid "If you're stuck on these options, please <a href=\"%s\">check out the documentation</a>. Or, go to the <a href=\"%s\">support forum</a>."
271
  msgstr ""
272
 
273
- #: ../admin-views/events-options.php:56
274
- msgid "Here is the iCal feed URL for your events: "
275
  msgstr ""
276
 
277
- #: ../admin-views/events-options.php:62
278
- msgid "Settings"
279
  msgstr ""
280
 
281
- #: ../admin-views/events-options.php:65
282
- #: ../admin-views/events-options.php:69
283
- msgid "Default View for the Events"
284
  msgstr ""
285
 
286
- #: ../admin-views/events-options.php:83
287
- #: ../admin-views/events-options.php:87
288
- #: ../admin-views/events-options.php:89
289
- msgid "Show Comments"
290
  msgstr ""
291
 
292
- #: ../admin-views/events-options.php:97
293
- #: ../admin-views/events-options.php:101
294
- msgid "Multiday Event Cutoff"
295
  msgstr ""
296
 
297
- #: ../admin-views/events-options.php:115
298
- msgid "For multi-day events, hide the last day from grid view if it ends on or before this time."
299
  msgstr ""
300
 
301
- #: ../admin-views/events-options.php:120
302
- #: ../admin-views/events-options.php:124
303
- msgid "Enable Google Maps"
304
  msgstr ""
305
 
306
- #: ../admin-views/events-options.php:130
307
- msgid "Height"
308
  msgstr ""
309
 
310
- #: ../admin-views/events-options.php:131
311
- msgid "Width"
312
  msgstr ""
313
 
314
- #: ../admin-views/events-options.php:131
315
- msgid "(number or %)"
316
  msgstr ""
317
 
318
- #: ../admin-views/events-options.php:135
319
- msgid "If you don't have this turned on, your event listings won't have the backend map preview or frontend embedded map."
320
  msgstr ""
321
 
322
- #: ../admin-views/events-options.php:143
323
- #: ../admin-views/events-options.php:145
324
- msgid "Events URL slug"
325
  msgstr ""
326
 
327
- #: ../admin-views/events-options.php:146
328
- msgid "The slug used for building the Events URL."
329
  msgstr ""
330
 
331
- #: ../admin-views/events-options.php:146
332
- #, php-format
333
- msgid "Your current Events URL is <strong>%s</strong>"
334
  msgstr ""
335
 
336
- #: ../admin-views/events-options.php:150
337
- #: ../admin-views/events-options.php:152
338
- msgid "Single Event URL slug"
339
  msgstr ""
340
 
341
- #: ../admin-views/events-options.php:153
342
- msgid "The slug used for building a single Event URL."
343
  msgstr ""
344
 
345
- #: ../admin-views/events-options.php:154
346
- #, php-format
347
- msgid "<strong>NOTE:</strong> You <em>cannot</em> use the same slug as above. The above should ideally be plural, and this singular.<br />Your single Event URL is like: <strong>%s</strong>"
348
  msgstr ""
349
 
350
- #: ../admin-views/events-options.php:159
351
- #: ../admin-views/events-options.php:161
352
- msgid "Debug"
353
  msgstr ""
354
 
355
- #: ../admin-views/events-options.php:162
356
- msgid "Debug Events display issues."
357
  msgstr ""
358
 
359
- #: ../admin-views/events-options.php:163
360
- #, php-format
361
- msgid "Enable this option to log debug information. By default this will log to your server PHP error log. If you'd like to see the log messages in your browser, then we recommend that you install the <a href=\"%s\" target=\"_blank\">Debug Bar Plugin</a> and look for the \"Tribe\" tab in the debug output."
362
  msgstr ""
363
 
364
- #: ../admin-views/events-options.php:168
365
- msgid "Theme Settings"
366
  msgstr ""
367
 
368
- #: ../admin-views/events-options.php:171
369
- #: ../admin-views/events-options.php:173
370
- msgid "Events Template"
371
  msgstr ""
372
 
373
- #: ../admin-views/events-options.php:175
374
- msgid "Default Events Template"
375
  msgstr ""
376
 
377
- #: ../admin-views/events-options.php:176
378
- msgid "Default Page Template"
379
  msgstr ""
380
 
381
- #: ../admin-views/events-options.php:179
382
- msgid "Choose a page template to control the look and feel of your calendar."
383
  msgstr ""
384
 
385
- #: ../admin-views/events-options.php:183
386
- #: ../admin-views/events-options.php:185
387
- #: ../admin-views/events-options.php:193
388
- msgid "Add HTML before calendar"
389
  msgstr ""
390
 
391
- #: ../admin-views/events-options.php:187
392
- msgid "Some themes may require that you add extra divs before the calendar list to help with styling."
393
  msgstr ""
394
 
395
- #: ../admin-views/events-options.php:187
396
- msgid "This is displayed directly after the header."
397
  msgstr ""
398
 
399
- #: ../admin-views/events-options.php:187
400
- #: ../admin-views/events-options.php:195
401
- msgid "You may use (x)HTML."
402
  msgstr ""
403
 
404
- #: ../admin-views/events-options.php:191
405
- msgid "Add HTML after calendar"
 
 
406
  msgstr ""
407
 
408
- #: ../admin-views/events-options.php:195
409
- msgid "Some themes may require that you add extra divs after the calendar list to help with styling."
 
 
410
  msgstr ""
411
 
412
- #: ../admin-views/events-options.php:195
413
- msgid "This is displayed directly above the footer."
414
  msgstr ""
415
 
416
- #: ../admin-views/events-options.php:204
417
- msgid "Save Changes"
 
418
  msgstr ""
419
 
420
- #: ../admin-views/widget-admin-list.php:11
421
- msgid "Title:"
 
422
  msgstr ""
423
 
424
- #: ../admin-views/widget-admin-list.php:16
425
- msgid "Show:"
426
  msgstr ""
427
 
428
- #: ../admin-views/widget-admin-list.php:24
429
- msgid "Show widget only if there are upcoming events:"
 
430
  msgstr ""
431
 
432
- #: ../admin-views/widget-admin-list.php:30
433
- msgid "If you wish to customize the widget display yourself, see the file views/events-list-load-widget-display.php inside the Events Premium plugin."
 
434
  msgstr ""
435
 
436
- #: ../admin-views/organizer-meta-box.php:11
437
- msgid "Organizer Name:"
 
 
438
  msgstr ""
439
 
440
- #: ../admin-views/organizer-meta-box.php:21
441
- msgid "Website:"
 
442
  msgstr ""
443
 
444
- #: ../lib/tribe-admin-events-list.class.php:159
445
- #: ../lib/the-events-calendar.class.php:526
446
- msgid "Event Categories"
447
  msgstr ""
448
 
449
- #: ../lib/tribe-admin-events-list.class.php:164
450
- msgid "Start Date"
451
  msgstr ""
452
 
453
- #: ../lib/tribe-admin-events-list.class.php:165
454
- msgid "End Date"
 
455
  msgstr ""
456
 
457
- #: ../lib/tribe-admin-events-list.class.php:166
458
- msgid "Recurring?"
 
459
  msgstr ""
460
 
461
- #: ../lib/tribe-admin-events-list.class.php:194
462
- msgid "Yes"
463
  msgstr ""
464
 
465
- #: ../lib/tribe-admin-events-list.class.php:194
466
- msgid "No"
 
467
  msgstr ""
468
 
469
- #: ../lib/tribe-admin-events-list.class.php:244
470
  #, php-format
471
- msgid "All %s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  msgstr ""
473
 
474
  #: ../lib/tribe-view-helpers.class.php:16
@@ -476,11 +606,6 @@ msgstr ""
476
  msgid "Select a Country:"
477
  msgstr ""
478
 
479
- #: ../lib/tribe-view-helpers.class.php:34
480
- #: ../lib/template-tags.php:502
481
- msgid "United States"
482
- msgstr ""
483
-
484
  #: ../lib/tribe-view-helpers.class.php:35
485
  msgid "Afghanistan"
486
  msgstr ""
@@ -1638,432 +1763,341 @@ msgstr ""
1638
  msgid "Wyoming"
1639
  msgstr ""
1640
 
1641
- #: ../lib/tribe-event-exception.class.php:17
1642
- #: ../lib/tribe-event-exception.class.php:34
1643
- msgid "Error"
1644
- msgstr ""
1645
-
1646
- #: ../lib/the-events-calendar.class.php:214
1647
- msgid "The Events Calendar"
1648
- msgstr ""
1649
-
1650
- #: ../lib/the-events-calendar.class.php:217
1651
- msgid "category"
1652
- msgstr ""
1653
-
1654
- #: ../lib/the-events-calendar.class.php:218
1655
- msgid "month"
1656
- msgstr ""
1657
-
1658
- #: ../lib/the-events-calendar.class.php:219
1659
- msgid "upcoming"
1660
  msgstr ""
1661
 
1662
- #: ../lib/the-events-calendar.class.php:220
1663
- msgid "past"
1664
  msgstr ""
1665
 
1666
- #: ../lib/the-events-calendar.class.php:222
1667
- msgid "venue"
1668
  msgstr ""
1669
 
1670
- #: ../lib/the-events-calendar.class.php:232
1671
- #, php-format
1672
- msgid "Initializing Tribe Events on %s"
1673
  msgstr ""
1674
 
1675
- #: ../lib/the-events-calendar.class.php:280
1676
- #, php-format
1677
- msgid "Sorry, The Events Calendar requires WordPress %s or higher. Please upgrade your WordPress install."
1678
  msgstr ""
1679
 
1680
- #: ../lib/the-events-calendar.class.php:283
1681
  #, php-format
1682
- msgid "Sorry, The Events Calendar requires PHP %s or higher. Talk to your Web host about moving you to a newer version of PHP."
1683
- msgstr ""
1684
-
1685
- #: ../lib/the-events-calendar.class.php:400
1686
- msgid "Upcoming Events"
1687
  msgstr ""
1688
 
1689
- #: ../lib/the-events-calendar.class.php:402
1690
- msgid "Past Events"
1691
  msgstr ""
1692
 
1693
- #: ../lib/the-events-calendar.class.php:406
1694
  #, php-format
1695
- msgid "Events for %s"
1696
- msgstr ""
1697
-
1698
- #: ../lib/the-events-calendar.class.php:408
1699
- msgid "Events this month"
1700
- msgstr ""
1701
-
1702
- #: ../lib/the-events-calendar.class.php:422
1703
- msgid "No description has been entered for this event."
1704
- msgstr ""
1705
-
1706
- #: ../lib/the-events-calendar.class.php:487
1707
- msgid "Events"
1708
- msgstr ""
1709
-
1710
- #: ../lib/the-events-calendar.class.php:488
1711
- msgid "Event"
1712
- msgstr ""
1713
-
1714
- #: ../lib/the-events-calendar.class.php:489
1715
- #: ../lib/the-events-calendar.class.php:502
1716
- #: ../lib/the-events-calendar.class.php:515
1717
- msgid "Add New"
1718
- msgstr ""
1719
-
1720
- #: ../lib/the-events-calendar.class.php:490
1721
- msgid "Add New Event"
1722
- msgstr ""
1723
-
1724
- #: ../lib/the-events-calendar.class.php:491
1725
- msgid "Edit Event"
1726
- msgstr ""
1727
-
1728
- #: ../lib/the-events-calendar.class.php:492
1729
- msgid "New Event"
1730
- msgstr ""
1731
-
1732
- #: ../lib/the-events-calendar.class.php:493
1733
- msgid "View Event"
1734
- msgstr ""
1735
-
1736
- #: ../lib/the-events-calendar.class.php:494
1737
- msgid "Search Events"
1738
- msgstr ""
1739
-
1740
- #: ../lib/the-events-calendar.class.php:495
1741
- msgid "No events found"
1742
- msgstr ""
1743
-
1744
- #: ../lib/the-events-calendar.class.php:496
1745
- msgid "No events found in Trash"
1746
- msgstr ""
1747
-
1748
- #: ../lib/the-events-calendar.class.php:500
1749
- msgid "Venues"
1750
- msgstr ""
1751
-
1752
- #: ../lib/the-events-calendar.class.php:501
1753
- msgid "Venue"
1754
  msgstr ""
1755
 
1756
- #: ../lib/the-events-calendar.class.php:503
1757
- msgid "Add New Venue"
1758
  msgstr ""
1759
 
1760
- #: ../lib/the-events-calendar.class.php:504
1761
- msgid "Edit Venue"
1762
- msgstr ""
1763
-
1764
- #: ../lib/the-events-calendar.class.php:505
1765
- msgid "New Venue"
1766
  msgstr ""
1767
 
1768
- #: ../lib/the-events-calendar.class.php:506
1769
- #: ../lib/the-events-calendar.class.php:519
1770
- msgid "View Venue"
1771
  msgstr ""
1772
 
1773
- #: ../lib/the-events-calendar.class.php:507
1774
- msgid "Search Venues"
1775
  msgstr ""
1776
 
1777
- #: ../lib/the-events-calendar.class.php:508
1778
- msgid "No venue found"
1779
  msgstr ""
1780
 
1781
- #: ../lib/the-events-calendar.class.php:509
1782
- msgid "No venues found in Trash"
1783
  msgstr ""
1784
 
1785
- #: ../lib/the-events-calendar.class.php:513
1786
- msgid "Organizers"
 
1787
  msgstr ""
1788
 
1789
- #: ../lib/the-events-calendar.class.php:514
1790
- msgid "Organizer"
1791
  msgstr ""
1792
 
1793
- #: ../lib/the-events-calendar.class.php:516
1794
- msgid "Add New Organizer"
1795
  msgstr ""
1796
 
1797
- #: ../lib/the-events-calendar.class.php:517
1798
- msgid "Edit Organizer"
1799
  msgstr ""
1800
 
1801
- #: ../lib/the-events-calendar.class.php:518
1802
- msgid "New Organizer"
1803
  msgstr ""
1804
 
1805
- #: ../lib/the-events-calendar.class.php:520
1806
- msgid "Search Organizers"
1807
  msgstr ""
1808
 
1809
- #: ../lib/the-events-calendar.class.php:521
1810
- msgid "No organizer found"
1811
  msgstr ""
1812
 
1813
- #: ../lib/the-events-calendar.class.php:522
1814
- msgid "No organizers found in Trash"
1815
  msgstr ""
1816
 
1817
- #: ../lib/the-events-calendar.class.php:527
1818
- msgid "Event Category"
 
1819
  msgstr ""
1820
 
1821
- #: ../lib/the-events-calendar.class.php:528
1822
- msgid "Search Event Categories"
1823
  msgstr ""
1824
 
1825
- #: ../lib/the-events-calendar.class.php:529
1826
- msgid "All Event Categories"
 
1827
  msgstr ""
1828
 
1829
- #: ../lib/the-events-calendar.class.php:530
1830
- msgid "Parent Event Category"
1831
  msgstr ""
1832
 
1833
- #: ../lib/the-events-calendar.class.php:531
1834
- msgid "Parent Event Category:"
1835
  msgstr ""
1836
 
1837
- #: ../lib/the-events-calendar.class.php:532
1838
- msgid "Edit Event Category"
 
1839
  msgstr ""
1840
 
1841
- #: ../lib/the-events-calendar.class.php:533
1842
- msgid "Update Event Category"
 
 
1843
  msgstr ""
1844
 
1845
- #: ../lib/the-events-calendar.class.php:534
1846
- msgid "Add New Event Category"
 
1847
  msgstr ""
1848
 
1849
- #: ../lib/the-events-calendar.class.php:535
1850
- msgid "New Event Category Name"
1851
  msgstr ""
1852
 
1853
- #: ../lib/the-events-calendar.class.php:545
1854
- #, php-format
1855
- msgid "Event updated. <a href=\"%s\">View event</a>"
1856
  msgstr ""
1857
 
1858
- #: ../lib/the-events-calendar.class.php:546
1859
- #: ../lib/the-events-calendar.class.php:563
1860
- #: ../lib/the-events-calendar.class.php:580
1861
- msgid "Custom field updated."
1862
  msgstr ""
1863
 
1864
- #: ../lib/the-events-calendar.class.php:547
1865
- #: ../lib/the-events-calendar.class.php:564
1866
- #: ../lib/the-events-calendar.class.php:581
1867
- msgid "Custom field deleted."
1868
  msgstr ""
1869
 
1870
- #: ../lib/the-events-calendar.class.php:548
1871
- msgid "Event updated."
1872
  msgstr ""
1873
 
1874
- #: ../lib/the-events-calendar.class.php:550
1875
- #, php-format
1876
- msgid "Event restored to revision from %s"
1877
  msgstr ""
1878
 
1879
- #: ../lib/the-events-calendar.class.php:551
1880
- #, php-format
1881
- msgid "Event published. <a href=\"%s\">View event</a>"
1882
  msgstr ""
1883
 
1884
- #: ../lib/the-events-calendar.class.php:552
1885
- msgid "Event saved."
1886
  msgstr ""
1887
 
1888
- #: ../lib/the-events-calendar.class.php:553
1889
  #, php-format
1890
- msgid "Event submitted. <a target=\"_blank\" href=\"%s\">Preview event</a>"
1891
  msgstr ""
1892
 
1893
- #: ../lib/the-events-calendar.class.php:554
1894
- #, php-format
1895
- msgid "Event scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview event</a>"
1896
  msgstr ""
1897
 
1898
- #: ../lib/the-events-calendar.class.php:556
1899
- #: ../lib/the-events-calendar.class.php:573
1900
- #: ../lib/the-events-calendar.class.php:590
1901
- msgid "M j, Y @ G:i"
1902
  msgstr ""
1903
 
1904
- #: ../lib/the-events-calendar.class.php:557
1905
  #, php-format
1906
- msgid "Event draft updated. <a target=\"_blank\" href=\"%s\">Preview event</a>"
1907
  msgstr ""
1908
 
1909
- #: ../lib/the-events-calendar.class.php:562
1910
- #, php-format
1911
- msgid "Venue updated. <a href=\"%s\">View venue</a>"
1912
  msgstr ""
1913
 
1914
- #: ../lib/the-events-calendar.class.php:565
1915
- msgid "Venue updated."
1916
  msgstr ""
1917
 
1918
- #: ../lib/the-events-calendar.class.php:567
1919
  #, php-format
1920
- msgid "Venue restored to revision from %s"
1921
  msgstr ""
1922
 
1923
- #: ../lib/the-events-calendar.class.php:568
1924
- #, php-format
1925
- msgid "Venue published. <a href=\"%s\">View venue</a>"
1926
  msgstr ""
1927
 
1928
- #: ../lib/the-events-calendar.class.php:569
1929
- msgid "Venue saved."
 
1930
  msgstr ""
1931
 
1932
- #: ../lib/the-events-calendar.class.php:570
1933
- #, php-format
1934
- msgid "Venue submitted. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
1935
  msgstr ""
1936
 
1937
- #: ../lib/the-events-calendar.class.php:571
1938
- #, php-format
1939
- msgid "Venue scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview venue</a>"
1940
  msgstr ""
1941
 
1942
- #: ../lib/the-events-calendar.class.php:574
1943
- #, php-format
1944
- msgid "Venue draft updated. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
1945
  msgstr ""
1946
 
1947
- #: ../lib/the-events-calendar.class.php:579
1948
- #, php-format
1949
- msgid "Organizer updated. <a href=\"%s\">View organizer</a>"
 
1950
  msgstr ""
1951
 
1952
- #: ../lib/the-events-calendar.class.php:582
1953
- msgid "Organizer updated."
1954
  msgstr ""
1955
 
1956
- #: ../lib/the-events-calendar.class.php:584
1957
- #, php-format
1958
- msgid "Organizer restored to revision from %s"
1959
  msgstr ""
1960
 
1961
- #: ../lib/the-events-calendar.class.php:585
1962
- #, php-format
1963
- msgid "Organizer published. <a href=\"%s\">View organizer</a>"
1964
  msgstr ""
1965
 
1966
- #: ../lib/the-events-calendar.class.php:586
1967
- msgid "Organizer saved."
1968
  msgstr ""
1969
 
1970
- #: ../lib/the-events-calendar.class.php:587
1971
- #, php-format
1972
- msgid "Organizer submitted. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
1973
  msgstr ""
1974
 
1975
- #: ../lib/the-events-calendar.class.php:588
1976
- #, php-format
1977
- msgid "Organizer scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview organizer</a>"
1978
  msgstr ""
1979
 
1980
- #: ../lib/the-events-calendar.class.php:591
1981
- #, php-format
1982
- msgid "Organizer draft updated. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
1983
  msgstr ""
1984
 
1985
- #: ../lib/the-events-calendar.class.php:646
1986
- msgid "Next"
1987
  msgstr ""
1988
 
1989
- #: ../lib/the-events-calendar.class.php:647
1990
- msgid "Prev"
1991
  msgstr ""
1992
 
1993
- #: ../lib/the-events-calendar.class.php:648
1994
- msgid "Today"
1995
  msgstr ""
1996
 
1997
- #: ../lib/the-events-calendar.class.php:649
1998
- msgid "Done"
1999
  msgstr ""
2000
 
2001
- #: ../lib/the-events-calendar.class.php:1734
2002
- msgid "Event Options"
2003
  msgstr ""
2004
 
2005
- #: ../lib/the-events-calendar.class.php:1736
2006
- msgid "Venue Information"
2007
  msgstr ""
2008
 
2009
- #: ../lib/the-events-calendar.class.php:1737
2010
- msgid "Organizer Information"
2011
  msgstr ""
2012
 
2013
- #: ../lib/the-events-calendar.class.php:1839
2014
- msgid "View All Add-Ons"
2015
  msgstr ""
2016
 
2017
- #: ../lib/the-events-calendar.class.php:1846
2018
- msgid "News from Tribe Pro"
2019
  msgstr ""
2020
 
2021
- #: ../lib/tribe-debug-bar.class.php:18
2022
- msgid "Tribe"
2023
  msgstr ""
2024
 
2025
- #: ../lib/tribe-the-events-calendar-import.class.php:45
2026
- msgid "Upgrade from The Events Calendar"
2027
  msgstr ""
2028
 
2029
- #: ../lib/tribe-the-events-calendar-import.class.php:46
2030
- msgid "It appears that you have some old events calendar data that needs to be upgraded. Please be sure to back up your database before initiating the upgrade. This process can not be undone."
2031
  msgstr ""
2032
 
2033
- #: ../lib/tribe-the-events-calendar-import.class.php:47
2034
- msgid "Migrate Data!"
 
2035
  msgstr ""
2036
 
2037
- #: ../lib/tribe-the-events-calendar-import.class.php:119
2038
- #, php-format
2039
- msgid "You successfully migrated (%d) entries."
2040
  msgstr ""
2041
 
2042
- #: ../lib/tribe-the-events-calendar-import.class.php:189
2043
- msgid "Install has 1 or more legacy event!"
2044
  msgstr ""
2045
 
2046
- #: ../lib/template-tags.php:607
2047
- msgid "Free"
2048
  msgstr ""
2049
 
2050
- #: ../lib/template-tags.php:978
2051
- msgid "Calendar of Events"
2052
  msgstr ""
2053
 
2054
- #: ../lib/template-tags.php:993
2055
- msgid "Category:"
2056
  msgstr ""
2057
 
2058
- #: ../lib/widget-list.class.php:16
2059
- msgid "A widget that displays the next upcoming x events."
2060
  msgstr ""
2061
 
2062
- #: ../lib/widget-list.class.php:70
2063
- msgid "View All Events"
2064
  msgstr ""
2065
 
2066
- #: ../lib/widget-list.class.php:73
2067
- msgid "There are no upcoming events at this time."
2068
  msgstr ""
2069
 
5
  msgstr ""
6
  "Project-Id-Version: The Events Calendar 2.0\n"
7
  "Report-Msgid-Bugs-To: \n"
8
+ "POT-Creation-Date: 2011-10-26 21:47-0500\n"
9
+ "PO-Revision-Date: 2011-10-26 21:48-0500\n"
10
  "Last-Translator: John Gadbois <jgadbois@gmail.com>\n"
11
  "Language-Team: Modern Tribe, Inc.\n"
12
  "Language: \n"
20
  "X-Poedit-Country: UNITED STATES\n"
21
  "X-Poedit-SearchPath-0: ..\n"
22
 
23
+ #: ../template-tags.php:102
24
+ msgid "Category:"
25
+ msgstr ""
26
+
27
+ #: ../template-tags.php:204
28
+ msgid "Free"
29
+ msgstr ""
30
+
31
+ #: ../template-tags.php:510
32
+ msgid "Calendar of Events"
33
+ msgstr ""
34
+
35
+ #: ../template-tags.php:914
36
+ msgid "United States"
37
+ msgstr ""
38
+
39
+ #: ../views/events-list-load-widget-display.php:52
40
+ msgid "All Day"
41
+ msgstr ""
42
+
43
+ #: ../views/table-mini.php:24
44
+ msgid "View all &raquo;"
45
+ msgstr ""
46
+
47
+ #: ../views/list.php:18
48
  #: ../views/gridview.php:37
49
  msgid "Event List"
50
  msgstr ""
51
 
52
+ #: ../views/list.php:19
53
  #: ../views/gridview.php:38
54
  msgid "Calendar"
55
  msgstr ""
56
 
57
+ #: ../views/list.php:50
58
+ #: ../views/single.php:20
59
  msgid "Start:"
60
  msgstr ""
61
 
62
+ #: ../views/list.php:54
63
+ #: ../views/single.php:22
64
  msgid "End:"
65
  msgstr ""
66
 
67
+ #: ../views/list.php:59
68
+ #: ../views/single.php:25
69
+ msgid "Date:"
70
+ msgstr ""
71
+
72
+ #: ../views/list.php:69
73
+ #: ../views/single.php:54
74
  msgid "Venue:"
75
  msgstr ""
76
 
77
+ #: ../views/list.php:84
78
+ #: ../views/single.php:38
79
+ #: ../views/single.php:64
 
80
  msgid "Phone:"
81
  msgstr ""
82
 
83
+ #: ../views/list.php:90
84
+ #: ../views/single.php:69
 
85
  msgid "Address:"
86
  msgstr ""
87
 
88
+ #: ../views/list.php:92
89
+ #: ../views/single.php:71
90
  msgid "Google Map"
91
  msgstr ""
92
 
93
+ #: ../views/list.php:102
94
+ #: ../views/single.php:29
 
95
  msgid "Cost:"
96
  msgstr ""
97
 
98
+ #: ../views/list.php:116
99
  #, php-format
100
  msgid " listed under %s. Check out past events for this category or view the full calendar."
101
  msgstr ""
102
 
103
+ #: ../views/list.php:118
104
  #, php-format
105
  msgid " listed under %s. Check out upcoming events for this category or view the full calendar."
106
  msgstr ""
107
 
108
+ #: ../views/list.php:123
109
+ #, php-format
110
+ msgid "No events scheduled for <strong>%s</strong>. Please try another day."
111
+ msgstr ""
112
+
113
+ #: ../views/list.php:127
114
  msgid "No upcoming events"
115
  msgstr ""
116
 
117
+ #: ../views/list.php:131
118
  msgid "No previous events"
119
  msgstr ""
120
 
121
+ #: ../views/list.php:144
122
+ #: ../views/list.php:146
123
+ #: ../views/list.php:148
124
  msgid "&laquo; Previous Events"
125
  msgstr ""
126
 
127
+ #: ../views/list.php:155
128
+ #: ../views/list.php:157
129
+ #: ../views/list.php:159
130
  msgid "Next Events &raquo;"
131
  msgstr ""
132
 
133
+ #: ../views/list.php:165
134
+ #: ../views/single.php:96
135
  #: ../views/gridview.php:43
 
136
  msgid "iCal Import"
137
  msgstr ""
138
 
 
 
 
 
139
  #: ../views/single.php:13
140
  msgid "&laquo; Back to Events"
141
  msgstr ""
144
  msgid "This event has passed."
145
  msgstr ""
146
 
147
+ #: ../views/single.php:17
148
+ msgid "Event:"
149
+ msgstr ""
150
+
151
+ #: ../views/single.php:34
152
  msgid "Organizer:"
153
  msgstr ""
154
 
155
+ #: ../views/single.php:42
156
  msgid "Email:"
157
  msgstr ""
158
 
159
+ #: ../views/single.php:45
160
+ msgid "Updated:"
161
+ msgstr ""
162
+
163
+ #: ../views/single.php:48
164
  msgid "Schedule:"
165
  msgstr ""
166
 
167
+ #: ../views/single.php:71
168
  msgid "Click to view a Google Map"
169
  msgstr ""
170
 
171
+ #: ../views/single.php:99
172
  msgid "Add to Google Calendar"
173
  msgstr ""
174
 
175
+ #: ../views/single.php:99
176
  msgid "+ Google Calendar"
177
  msgstr ""
178
 
 
 
 
 
 
 
 
 
179
  #: ../views/ecp-single-template.php:24
180
  msgid "Edit"
181
  msgstr ""
182
 
183
+ #: ../lib/widget-list.class.php:16
184
+ msgid "A widget that displays the next upcoming x events."
185
  msgstr ""
186
 
187
+ #: ../lib/widget-list.class.php:70
188
+ msgid "View All Events"
189
  msgstr ""
190
 
191
+ #: ../lib/widget-list.class.php:73
192
+ msgid "There are no upcoming events at this time."
193
  msgstr ""
194
 
195
+ #: ../lib/tribe-event-exception.class.php:17
196
+ #: ../lib/tribe-event-exception.class.php:34
197
+ msgid "Error"
198
  msgstr ""
199
 
200
+ #: ../lib/the-events-calendar.class.php:224
201
+ msgid "The Events Calendar"
 
202
  msgstr ""
203
 
204
+ #: ../lib/the-events-calendar.class.php:227
205
+ msgid "category"
 
206
  msgstr ""
207
 
208
+ #: ../lib/the-events-calendar.class.php:228
209
+ msgid "month"
210
  msgstr ""
211
 
212
+ #: ../lib/the-events-calendar.class.php:229
213
+ msgid "upcoming"
214
  msgstr ""
215
 
216
+ #: ../lib/the-events-calendar.class.php:230
217
+ msgid "past"
218
  msgstr ""
219
 
220
+ #: ../lib/the-events-calendar.class.php:232
221
+ msgid "venue"
222
  msgstr ""
223
 
224
+ #: ../lib/the-events-calendar.class.php:242
225
+ #, php-format
226
+ msgid "Initializing Tribe Events on %s"
227
  msgstr ""
228
 
229
+ #: ../lib/the-events-calendar.class.php:299
230
+ #, php-format
231
+ msgid "Sorry, The Events Calendar requires WordPress %s or higher. Please upgrade your WordPress install."
232
  msgstr ""
233
 
234
+ #: ../lib/the-events-calendar.class.php:302
235
+ #, php-format
236
+ msgid "Sorry, The Events Calendar requires PHP %s or higher. Talk to your Web host about moving you to a newer version of PHP."
237
  msgstr ""
238
 
239
+ #: ../lib/the-events-calendar.class.php:423
240
+ msgid "Upcoming Events"
241
  msgstr ""
242
 
243
+ #: ../lib/the-events-calendar.class.php:425
244
+ msgid "Past Events"
245
  msgstr ""
246
 
247
+ #: ../lib/the-events-calendar.class.php:429
248
+ #: ../lib/the-events-calendar.class.php:435
249
  #, php-format
250
+ msgid "Events for %s"
251
  msgstr ""
252
 
253
+ #: ../lib/the-events-calendar.class.php:431
254
+ msgid "Events this month"
255
  msgstr ""
256
 
257
+ #: ../lib/the-events-calendar.class.php:441
258
+ #, php-format
259
+ msgid "Events at %s"
260
  msgstr ""
261
 
262
+ #: ../lib/the-events-calendar.class.php:453
263
+ msgid "No description has been entered for this event."
264
  msgstr ""
265
 
266
+ #: ../lib/the-events-calendar.class.php:518
267
+ msgid "Events"
268
  msgstr ""
269
 
270
+ #: ../lib/the-events-calendar.class.php:519
271
+ msgid "Event"
272
  msgstr ""
273
 
274
+ #: ../lib/the-events-calendar.class.php:520
275
+ #: ../lib/the-events-calendar.class.php:533
276
+ #: ../lib/the-events-calendar.class.php:546
277
+ msgid "Add New"
278
  msgstr ""
279
 
280
+ #: ../lib/the-events-calendar.class.php:521
281
+ msgid "Add New Event"
282
  msgstr ""
283
 
284
+ #: ../lib/the-events-calendar.class.php:522
285
+ msgid "Edit Event"
286
  msgstr ""
287
 
288
+ #: ../lib/the-events-calendar.class.php:523
289
+ msgid "New Event"
290
  msgstr ""
291
 
292
+ #: ../lib/the-events-calendar.class.php:524
293
+ msgid "View Event"
 
294
  msgstr ""
295
 
296
+ #: ../lib/the-events-calendar.class.php:525
297
+ msgid "Search Events"
298
  msgstr ""
299
 
300
+ #: ../lib/the-events-calendar.class.php:526
301
+ msgid "No events found"
 
302
  msgstr ""
303
 
304
+ #: ../lib/the-events-calendar.class.php:527
305
+ msgid "No events found in Trash"
306
  msgstr ""
307
 
308
+ #: ../lib/the-events-calendar.class.php:531
309
+ msgid "Venues"
310
  msgstr ""
311
 
312
+ #: ../lib/the-events-calendar.class.php:532
313
+ msgid "Venue"
 
314
  msgstr ""
315
 
316
+ #: ../lib/the-events-calendar.class.php:534
317
+ msgid "Add New Venue"
 
 
318
  msgstr ""
319
 
320
+ #: ../lib/the-events-calendar.class.php:535
321
+ msgid "Edit Venue"
 
322
  msgstr ""
323
 
324
+ #: ../lib/the-events-calendar.class.php:536
325
+ msgid "New Venue"
326
  msgstr ""
327
 
328
+ #: ../lib/the-events-calendar.class.php:537
329
+ #: ../lib/the-events-calendar.class.php:550
330
+ msgid "View Venue"
331
  msgstr ""
332
 
333
+ #: ../lib/the-events-calendar.class.php:538
334
+ msgid "Search Venues"
335
  msgstr ""
336
 
337
+ #: ../lib/the-events-calendar.class.php:539
338
+ msgid "No venue found"
339
  msgstr ""
340
 
341
+ #: ../lib/the-events-calendar.class.php:540
342
+ msgid "No venues found in Trash"
343
  msgstr ""
344
 
345
+ #: ../lib/the-events-calendar.class.php:544
346
+ msgid "Organizers"
347
  msgstr ""
348
 
349
+ #: ../lib/the-events-calendar.class.php:545
350
+ msgid "Organizer"
 
351
  msgstr ""
352
 
353
+ #: ../lib/the-events-calendar.class.php:547
354
+ msgid "Add New Organizer"
355
  msgstr ""
356
 
357
+ #: ../lib/the-events-calendar.class.php:548
358
+ msgid "Edit Organizer"
 
359
  msgstr ""
360
 
361
+ #: ../lib/the-events-calendar.class.php:549
362
+ msgid "New Organizer"
 
363
  msgstr ""
364
 
365
+ #: ../lib/the-events-calendar.class.php:551
366
+ msgid "Search Organizers"
367
  msgstr ""
368
 
369
+ #: ../lib/the-events-calendar.class.php:552
370
+ msgid "No organizer found"
 
371
  msgstr ""
372
 
373
+ #: ../lib/the-events-calendar.class.php:553
374
+ msgid "No organizers found in Trash"
 
375
  msgstr ""
376
 
377
+ #: ../lib/the-events-calendar.class.php:557
378
+ msgid "Event Categories"
379
  msgstr ""
380
 
381
+ #: ../lib/the-events-calendar.class.php:558
382
+ msgid "Event Category"
 
383
  msgstr ""
384
 
385
+ #: ../lib/the-events-calendar.class.php:559
386
+ msgid "Search Event Categories"
387
  msgstr ""
388
 
389
+ #: ../lib/the-events-calendar.class.php:560
390
+ msgid "All Event Categories"
 
391
  msgstr ""
392
 
393
+ #: ../lib/the-events-calendar.class.php:561
394
+ msgid "Parent Event Category"
395
  msgstr ""
396
 
397
+ #: ../lib/the-events-calendar.class.php:562
398
+ msgid "Parent Event Category:"
399
  msgstr ""
400
 
401
+ #: ../lib/the-events-calendar.class.php:563
402
+ msgid "Edit Event Category"
403
  msgstr ""
404
 
405
+ #: ../lib/the-events-calendar.class.php:564
406
+ msgid "Update Event Category"
 
 
407
  msgstr ""
408
 
409
+ #: ../lib/the-events-calendar.class.php:565
410
+ msgid "Add New Event Category"
411
  msgstr ""
412
 
413
+ #: ../lib/the-events-calendar.class.php:566
414
+ msgid "New Event Category Name"
415
  msgstr ""
416
 
417
+ #: ../lib/the-events-calendar.class.php:576
418
+ #, php-format
419
+ msgid "Event updated. <a href=\"%s\">View event</a>"
420
  msgstr ""
421
 
422
+ #: ../lib/the-events-calendar.class.php:577
423
+ #: ../lib/the-events-calendar.class.php:594
424
+ #: ../lib/the-events-calendar.class.php:611
425
+ msgid "Custom field updated."
426
  msgstr ""
427
 
428
+ #: ../lib/the-events-calendar.class.php:578
429
+ #: ../lib/the-events-calendar.class.php:595
430
+ #: ../lib/the-events-calendar.class.php:612
431
+ msgid "Custom field deleted."
432
  msgstr ""
433
 
434
+ #: ../lib/the-events-calendar.class.php:579
435
+ msgid "Event updated."
436
  msgstr ""
437
 
438
+ #: ../lib/the-events-calendar.class.php:581
439
+ #, php-format
440
+ msgid "Event restored to revision from %s"
441
  msgstr ""
442
 
443
+ #: ../lib/the-events-calendar.class.php:582
444
+ #, php-format
445
+ msgid "Event published. <a href=\"%s\">View event</a>"
446
  msgstr ""
447
 
448
+ #: ../lib/the-events-calendar.class.php:583
449
+ msgid "Event saved."
450
  msgstr ""
451
 
452
+ #: ../lib/the-events-calendar.class.php:584
453
+ #, php-format
454
+ msgid "Event submitted. <a target=\"_blank\" href=\"%s\">Preview event</a>"
455
  msgstr ""
456
 
457
+ #: ../lib/the-events-calendar.class.php:585
458
+ #, php-format
459
+ msgid "Event scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview event</a>"
460
  msgstr ""
461
 
462
+ #: ../lib/the-events-calendar.class.php:587
463
+ #: ../lib/the-events-calendar.class.php:604
464
+ #: ../lib/the-events-calendar.class.php:621
465
+ msgid "M j, Y @ G:i"
466
  msgstr ""
467
 
468
+ #: ../lib/the-events-calendar.class.php:588
469
+ #, php-format
470
+ msgid "Event draft updated. <a target=\"_blank\" href=\"%s\">Preview event</a>"
471
  msgstr ""
472
 
473
+ #: ../lib/the-events-calendar.class.php:593
474
+ #, php-format
475
+ msgid "Venue updated. <a href=\"%s\">View venue</a>"
476
  msgstr ""
477
 
478
+ #: ../lib/the-events-calendar.class.php:596
479
+ msgid "Venue updated."
480
  msgstr ""
481
 
482
+ #: ../lib/the-events-calendar.class.php:598
483
+ #, php-format
484
+ msgid "Venue restored to revision from %s"
485
  msgstr ""
486
 
487
+ #: ../lib/the-events-calendar.class.php:599
488
+ #, php-format
489
+ msgid "Venue published. <a href=\"%s\">View venue</a>"
490
  msgstr ""
491
 
492
+ #: ../lib/the-events-calendar.class.php:600
493
+ msgid "Venue saved."
494
  msgstr ""
495
 
496
+ #: ../lib/the-events-calendar.class.php:601
497
+ #, php-format
498
+ msgid "Venue submitted. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
499
  msgstr ""
500
 
501
+ #: ../lib/the-events-calendar.class.php:602
502
  #, php-format
503
+ msgid "Venue scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview venue</a>"
504
+ msgstr ""
505
+
506
+ #: ../lib/the-events-calendar.class.php:605
507
+ #, php-format
508
+ msgid "Venue draft updated. <a target=\"_blank\" href=\"%s\">Preview venue</a>"
509
+ msgstr ""
510
+
511
+ #: ../lib/the-events-calendar.class.php:610
512
+ #, php-format
513
+ msgid "Organizer updated. <a href=\"%s\">View organizer</a>"
514
+ msgstr ""
515
+
516
+ #: ../lib/the-events-calendar.class.php:613
517
+ msgid "Organizer updated."
518
+ msgstr ""
519
+
520
+ #: ../lib/the-events-calendar.class.php:615
521
+ #, php-format
522
+ msgid "Organizer restored to revision from %s"
523
+ msgstr ""
524
+
525
+ #: ../lib/the-events-calendar.class.php:616
526
+ #, php-format
527
+ msgid "Organizer published. <a href=\"%s\">View organizer</a>"
528
+ msgstr ""
529
+
530
+ #: ../lib/the-events-calendar.class.php:617
531
+ msgid "Organizer saved."
532
+ msgstr ""
533
+
534
+ #: ../lib/the-events-calendar.class.php:618
535
+ #, php-format
536
+ msgid "Organizer submitted. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
537
+ msgstr ""
538
+
539
+ #: ../lib/the-events-calendar.class.php:619
540
+ #, php-format
541
+ msgid "Organizer scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview organizer</a>"
542
+ msgstr ""
543
+
544
+ #: ../lib/the-events-calendar.class.php:622
545
+ #, php-format
546
+ msgid "Organizer draft updated. <a target=\"_blank\" href=\"%s\">Preview organizer</a>"
547
+ msgstr ""
548
+
549
+ #: ../lib/the-events-calendar.class.php:677
550
+ msgid "Next"
551
+ msgstr ""
552
+
553
+ #: ../lib/the-events-calendar.class.php:678
554
+ msgid "Prev"
555
+ msgstr ""
556
+
557
+ #: ../lib/the-events-calendar.class.php:679
558
+ msgid "Today"
559
+ msgstr ""
560
+
561
+ #: ../lib/the-events-calendar.class.php:680
562
+ msgid "Done"
563
+ msgstr ""
564
+
565
+ #: ../lib/the-events-calendar.class.php:1778
566
+ msgid "Event Options"
567
+ msgstr ""
568
+
569
+ #: ../lib/the-events-calendar.class.php:1780
570
+ msgid "Venue Information"
571
+ msgstr ""
572
+
573
+ #: ../lib/the-events-calendar.class.php:1781
574
+ msgid "Organizer Information"
575
+ msgstr ""
576
+
577
+ #: ../lib/the-events-calendar.class.php:1894
578
+ msgid "Support"
579
+ msgstr ""
580
+
581
+ #: ../lib/the-events-calendar.class.php:1897
582
+ msgid "View All Add-Ons"
583
+ msgstr ""
584
+
585
+ #: ../lib/the-events-calendar.class.php:1904
586
+ msgid "News from Tribe Pro"
587
+ msgstr ""
588
+
589
+ #: ../lib/the-events-calendar.class.php:1949
590
+ msgid "Additional Functionality"
591
+ msgstr ""
592
+
593
+ #: ../lib/the-events-calendar.class.php:1954
594
+ #: ../lib/the-events-calendar.class.php:1960
595
+ msgid "Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?"
596
+ msgstr ""
597
+
598
+ #: ../lib/the-events-calendar.class.php:1954
599
+ #: ../lib/the-events-calendar.class.php:1961
600
+ #, php-format
601
+ msgid "Check out the <a href=\"%s\">available Add-Ons</a>."
602
  msgstr ""
603
 
604
  #: ../lib/tribe-view-helpers.class.php:16
606
  msgid "Select a Country:"
607
  msgstr ""
608
 
 
 
 
 
 
609
  #: ../lib/tribe-view-helpers.class.php:35
610
  msgid "Afghanistan"
611
  msgstr ""
1763
  msgid "Wyoming"
1764
  msgstr ""
1765
 
1766
+ #: ../lib/tribe-debug-bar.class.php:18
1767
+ msgid "Tribe"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1768
  msgstr ""
1769
 
1770
+ #: ../lib/tribe-the-events-calendar-import.class.php:44
1771
+ msgid "Welcome to Events 2.0! This is a HUGE upgrade from 1.6.5. Please make sure you have backed up before proceeding any further. You can easily <a href=\" http://wordpress.org/extend/plugins/the-events-calendar/download/\">revert to an old version</a> if you want to backup first. This upgrade includes two major steps, <a href=\"options-general.php?page=tribe-events-calendar\">migrating data</a> & updating your templates as necessary. There have been significant changes to the template tags and functions. Check out our <a href=\"http://tri.be/migrating-from-events-calendar-1-6-5-to-2-0\">walkthrough on the upgrade</a> before proceeding and check out the FAQ & Knowledge base from the <a href=\"http://tri.be/support/\">support page</a>.<br/><br/> You have events that need to be migrated. Please visit the bottom of the <a href=\"options-general.php?page=tribe-events-calendar\">settings page</a> to perform the migration."
1772
  msgstr ""
1773
 
1774
+ #: ../lib/tribe-the-events-calendar-import.class.php:54
1775
+ msgid "Upgrade from The Events Calendar"
1776
  msgstr ""
1777
 
1778
+ #: ../lib/tribe-the-events-calendar-import.class.php:55
1779
+ msgid "It appears that you have some old events calendar data that needs to be upgraded. Please be sure to back up your database before initiating the upgrade. This process can not be undone."
 
1780
  msgstr ""
1781
 
1782
+ #: ../lib/tribe-the-events-calendar-import.class.php:56
1783
+ msgid "Migrate Data!"
 
1784
  msgstr ""
1785
 
1786
+ #: ../lib/tribe-the-events-calendar-import.class.php:128
1787
  #, php-format
1788
+ msgid "You successfully migrated (%d) entries."
 
 
 
 
1789
  msgstr ""
1790
 
1791
+ #: ../lib/tribe-the-events-calendar-import.class.php:199
1792
+ msgid "Install has 1 or more legacy event!"
1793
  msgstr ""
1794
 
1795
+ #: ../lib/tribe-admin-events-list.class.php:40
1796
  #, php-format
1797
+ msgid "View &#8220;%s&#8221;"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1798
  msgstr ""
1799
 
1800
+ #: ../lib/tribe-admin-events-list.class.php:40
1801
+ msgid "View"
1802
  msgstr ""
1803
 
1804
+ #: ../lib/tribe-admin-events-list.class.php:177
1805
+ msgid "Start Date"
 
 
 
 
1806
  msgstr ""
1807
 
1808
+ #: ../lib/tribe-admin-events-list.class.php:178
1809
+ msgid "End Date"
 
1810
  msgstr ""
1811
 
1812
+ #: ../lib/tribe-admin-events-list.class.php:179
1813
+ msgid "Recurring?"
1814
  msgstr ""
1815
 
1816
+ #: ../lib/tribe-admin-events-list.class.php:222
1817
+ msgid "Yes"
1818
  msgstr ""
1819
 
1820
+ #: ../lib/tribe-admin-events-list.class.php:222
1821
+ msgid "No"
1822
  msgstr ""
1823
 
1824
+ #: ../lib/tribe-admin-events-list.class.php:276
1825
+ #, php-format
1826
+ msgid "All %s"
1827
  msgstr ""
1828
 
1829
+ #: ../admin-views/event-sidebar-options.php:11
1830
+ msgid "Hide From Upcoming Events List"
1831
  msgstr ""
1832
 
1833
+ #: ../admin-views/widget-admin-list.php:11
1834
+ msgid "Title:"
1835
  msgstr ""
1836
 
1837
+ #: ../admin-views/widget-admin-list.php:16
1838
+ msgid "Show:"
1839
  msgstr ""
1840
 
1841
+ #: ../admin-views/widget-admin-list.php:24
1842
+ msgid "Show widget only if there are upcoming events:"
1843
  msgstr ""
1844
 
1845
+ #: ../admin-views/widget-admin-list.php:30
1846
+ msgid "If you wish to customize the widget display yourself, see the file views/events-list-load-widget-display.php inside the Events Premium plugin."
1847
  msgstr ""
1848
 
1849
+ #: ../admin-views/recurrence-dialog.php:11
1850
+ msgid "Which events do you wish to update?"
1851
  msgstr ""
1852
 
1853
+ #: ../admin-views/recurrence-dialog.php:14
1854
+ msgid "Select your desired action"
1855
  msgstr ""
1856
 
1857
+ #: ../admin-views/events-options.php:47
1858
+ #, php-format
1859
+ msgid "%s Settings"
1860
  msgstr ""
1861
 
1862
+ #: ../admin-views/events-options.php:51
1863
+ msgid "Need a hand?"
1864
  msgstr ""
1865
 
1866
+ #: ../admin-views/events-options.php:52
1867
+ #, php-format
1868
+ msgid "If you're stuck on these options, please go to the <a href=\"%s\">support forum</a>."
1869
  msgstr ""
1870
 
1871
+ #: ../admin-views/events-options.php:54
1872
+ msgid "Here is the iCal feed URL for your events: "
1873
  msgstr ""
1874
 
1875
+ #: ../admin-views/events-options.php:60
1876
+ msgid "Settings"
1877
  msgstr ""
1878
 
1879
+ #: ../admin-views/events-options.php:63
1880
+ #: ../admin-views/events-options.php:67
1881
+ msgid "Default View for the Events"
1882
  msgstr ""
1883
 
1884
+ #: ../admin-views/events-options.php:81
1885
+ #: ../admin-views/events-options.php:85
1886
+ #: ../admin-views/events-options.php:87
1887
+ msgid "Show Comments"
1888
  msgstr ""
1889
 
1890
+ #: ../admin-views/events-options.php:95
1891
+ #: ../admin-views/events-options.php:99
1892
+ msgid "Multiday Event Cutoff"
1893
  msgstr ""
1894
 
1895
+ #: ../admin-views/events-options.php:113
1896
+ msgid "For multi-day events, hide the last day from grid view if it ends on or before this time."
1897
  msgstr ""
1898
 
1899
+ #: ../admin-views/events-options.php:118
1900
+ #: ../admin-views/events-options.php:122
1901
+ msgid "Enable Google Maps"
1902
  msgstr ""
1903
 
1904
+ #: ../admin-views/events-options.php:128
1905
+ msgid "Height"
 
 
1906
  msgstr ""
1907
 
1908
+ #: ../admin-views/events-options.php:129
1909
+ msgid "Width"
 
 
1910
  msgstr ""
1911
 
1912
+ #: ../admin-views/events-options.php:129
1913
+ msgid "(number or %)"
1914
  msgstr ""
1915
 
1916
+ #: ../admin-views/events-options.php:133
1917
+ msgid "If you don't have this turned on, your event listings won't have the backend map preview or frontend embedded map."
 
1918
  msgstr ""
1919
 
1920
+ #: ../admin-views/events-options.php:141
1921
+ #: ../admin-views/events-options.php:143
1922
+ msgid "Events URL slug"
1923
  msgstr ""
1924
 
1925
+ #: ../admin-views/events-options.php:144
1926
+ msgid "The slug used for building the Events URL."
1927
  msgstr ""
1928
 
1929
+ #: ../admin-views/events-options.php:144
1930
  #, php-format
1931
+ msgid "Your current Events URL is <strong><a href=\"%s\">%s</a></strong>"
1932
  msgstr ""
1933
 
1934
+ #: ../admin-views/events-options.php:148
1935
+ #: ../admin-views/events-options.php:150
1936
+ msgid "Single Event URL slug"
1937
  msgstr ""
1938
 
1939
+ #: ../admin-views/events-options.php:151
1940
+ msgid "The slug used for building a single Event URL."
 
 
1941
  msgstr ""
1942
 
1943
+ #: ../admin-views/events-options.php:152
1944
  #, php-format
1945
+ msgid "<strong>NOTE:</strong> You <em>cannot</em> use the same slug as above. The above should ideally be plural, and this singular.<br />Your single Event URL is like: <strong>%s</strong>"
1946
  msgstr ""
1947
 
1948
+ #: ../admin-views/events-options.php:157
1949
+ #: ../admin-views/events-options.php:159
1950
+ msgid "Debug"
1951
  msgstr ""
1952
 
1953
+ #: ../admin-views/events-options.php:160
1954
+ msgid "Debug Events display issues."
1955
  msgstr ""
1956
 
1957
+ #: ../admin-views/events-options.php:161
1958
  #, php-format
1959
+ msgid "Enable this option to log debug information. By default this will log to your server PHP error log. If you'd like to see the log messages in your browser, then we recommend that you install the <a href=\"%s\" target=\"_blank\">Debug Bar Plugin</a> and look for the \"Tribe\" tab in the debug output."
1960
  msgstr ""
1961
 
1962
+ #: ../admin-views/events-options.php:166
1963
+ msgid "Theme Settings"
 
1964
  msgstr ""
1965
 
1966
+ #: ../admin-views/events-options.php:169
1967
+ #: ../admin-views/events-options.php:171
1968
+ msgid "Events Template"
1969
  msgstr ""
1970
 
1971
+ #: ../admin-views/events-options.php:173
1972
+ msgid "Default Events Template"
 
1973
  msgstr ""
1974
 
1975
+ #: ../admin-views/events-options.php:174
1976
+ msgid "Default Page Template"
 
1977
  msgstr ""
1978
 
1979
+ #: ../admin-views/events-options.php:177
1980
+ msgid "Choose a page template to control the look and feel of your calendar."
 
1981
  msgstr ""
1982
 
1983
+ #: ../admin-views/events-options.php:181
1984
+ #: ../admin-views/events-options.php:183
1985
+ #: ../admin-views/events-options.php:191
1986
+ msgid "Add HTML before calendar"
1987
  msgstr ""
1988
 
1989
+ #: ../admin-views/events-options.php:185
1990
+ msgid "Some themes may require that you add extra divs before the calendar list to help with styling."
1991
  msgstr ""
1992
 
1993
+ #: ../admin-views/events-options.php:185
1994
+ msgid "This is displayed directly after the header."
 
1995
  msgstr ""
1996
 
1997
+ #: ../admin-views/events-options.php:185
1998
+ #: ../admin-views/events-options.php:193
1999
+ msgid "You may use (x)HTML."
2000
  msgstr ""
2001
 
2002
+ #: ../admin-views/events-options.php:189
2003
+ msgid "Add HTML after calendar"
2004
  msgstr ""
2005
 
2006
+ #: ../admin-views/events-options.php:193
2007
+ msgid "Some themes may require that you add extra divs after the calendar list to help with styling."
 
2008
  msgstr ""
2009
 
2010
+ #: ../admin-views/events-options.php:193
2011
+ msgid "This is displayed directly above the footer."
 
2012
  msgstr ""
2013
 
2014
+ #: ../admin-views/events-options.php:202
2015
+ msgid "Save Changes"
 
2016
  msgstr ""
2017
 
2018
+ #: ../admin-views/organizer-meta-box.php:11
2019
+ msgid "Organizer Name:"
2020
  msgstr ""
2021
 
2022
+ #: ../admin-views/organizer-meta-box.php:21
2023
+ msgid "Website:"
2024
  msgstr ""
2025
 
2026
+ #: ../admin-views/venue-meta-box.php:12
2027
+ msgid "Venue Name:"
2028
  msgstr ""
2029
 
2030
+ #: ../admin-views/venue-meta-box.php:23
2031
+ msgid "City:"
2032
  msgstr ""
2033
 
2034
+ #: ../admin-views/venue-meta-box.php:27
2035
+ msgid "Country:"
2036
  msgstr ""
2037
 
2038
+ #: ../admin-views/venue-meta-box.php:58
2039
+ msgid "State or Province:"
2040
  msgstr ""
2041
 
2042
+ #: ../admin-views/venue-meta-box.php:61
2043
+ msgid "Select a State:"
2044
  msgstr ""
2045
 
2046
+ #: ../admin-views/venue-meta-box.php:75
2047
+ msgid "Postal Code:"
2048
  msgstr ""
2049
 
2050
+ #: ../admin-views/events-meta-box.php:26
2051
+ msgid "Event Time &amp; Date"
2052
  msgstr ""
2053
 
2054
+ #: ../admin-views/events-meta-box.php:29
2055
+ msgid "You have changed the recurrence rules of this event. Saving the event will update all future events. If you did not mean to change all events, then please refresh the page."
2056
  msgstr ""
2057
 
2058
+ #: ../admin-views/events-meta-box.php:32
2059
+ msgid "All day event?"
2060
  msgstr ""
2061
 
2062
+ #: ../admin-views/events-meta-box.php:36
2063
+ msgid "Start Date / Time:"
2064
  msgstr ""
2065
 
2066
+ #: ../admin-views/events-meta-box.php:39
2067
+ #: ../admin-views/events-meta-box.php:60
2068
+ msgid "YYYY-MM-DD"
2069
  msgstr ""
2070
 
2071
+ #: ../admin-views/events-meta-box.php:41
2072
+ #: ../admin-views/events-meta-box.php:62
2073
+ msgid "@"
2074
  msgstr ""
2075
 
2076
+ #: ../admin-views/events-meta-box.php:57
2077
+ msgid "End Date / Time:"
2078
  msgstr ""
2079
 
2080
+ #: ../admin-views/events-meta-box.php:79
2081
+ msgid "Event Location Details"
2082
  msgstr ""
2083
 
2084
+ #: ../admin-views/events-meta-box.php:85
2085
+ msgid "Show Google Maps Link:"
2086
  msgstr ""
2087
 
2088
+ #: ../admin-views/events-meta-box.php:92
2089
+ msgid "Show Google Map:"
2090
  msgstr ""
2091
 
2092
+ #: ../admin-views/events-meta-box.php:101
2093
+ msgid "Event Organizer Details"
2094
  msgstr ""
2095
 
2096
+ #: ../admin-views/events-meta-box.php:110
2097
+ msgid "Event Cost"
2098
  msgstr ""
2099
 
2100
+ #: ../admin-views/events-meta-box.php:118
2101
+ msgid "Leave blank to hide the field. Enter a 0 for events that are free."
2102
  msgstr ""
2103
 
lib/template-tags-deprecated.php CHANGED
@@ -8,438 +8,598 @@
8
  // Don't load directly
9
  if ( !defined('ABSPATH') ) { die('-1'); }
10
 
11
- if (!function_exists('event_grid_view')) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  function event_grid_view() {
14
- sp_calendar_grid();
 
15
  }
16
 
17
  function get_event_google_map_link( $postId = null ) {
18
- return sp_get_map_link( $postId );
 
19
  }
20
 
21
  function event_google_map_link( $postId = null ) {
22
- sp_the_map_link( $postId );
 
23
  }
24
 
25
  function tec_get_event_address( $postId = null, $includeVenue = false ) {
26
- return sp_get_full_address($postId, $includeVenue);
 
27
  }
28
 
29
  function tec_event_address( $postId = null ) {
30
- sp_the_full_address( $postId );
 
31
  }
32
 
33
  function tec_address_exists( $postId = null ) {
34
- return sp_address_exists( $postId );
 
35
  }
36
 
37
  function get_event_google_map_embed( $postId = null, $width = '', $height = '' ) {
38
- return sp_get_embedded_map( $postId, $width, $height );
 
39
  }
40
 
41
  function event_google_map_embed( $postId = null, $width = null, $height = null ) {
42
- sp_the_embedded_map( $postId, $width, $height );
 
43
  }
44
 
45
  function get_jump_to_date_calendar( $prefix = '' ) {
46
- sp_month_year_dropdowns( $prefix );
 
47
  }
48
 
49
  function the_event_start_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
50
- return sp_get_start_date( $postId, $showtime, $dateFormat );
 
51
  }
52
 
53
  function the_event_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
54
- return sp_get_end_date( $postId, $showtime, $dateFormat );
 
55
  }
56
 
57
  function the_event_cost( $postId = null) {
58
- return sp_get_cost($postId);
 
59
  }
60
 
61
  function the_event_venue( $postId = null) {
62
- return sp_get_venue( $postID );
 
63
  }
64
 
65
  function the_event_country( $postId = null) {
66
- return sp_get_country( $postID );
 
67
  }
68
 
69
  function the_event_address( $postId = null) {
70
- return sp_get_address( $postID );
 
71
  }
72
 
73
  function the_event_city( $postId = null) {
74
- return sp_get_city( $postID );
 
75
  }
76
 
77
  function the_event_state( $postId = null) {
78
- return sp_get_state( $postID );
 
79
  }
80
 
81
  function the_event_province( $postId = null) {
82
- return sp_get_province( $postID );
 
83
  }
84
 
85
  function the_event_zip( $postId = null) {
86
- return sp_get_zip( $postID );
 
87
  }
88
 
89
  function the_event_phone( $postId = null) {
90
- return sp_get_phone( $postID );
 
91
  }
92
 
93
  function the_event_region() {
94
- return sp_get_region( $postID );
 
95
  }
96
 
97
  function the_event_all_day( $postId = null ) {
98
- return sp_get_all_day( $postID );
 
99
  }
100
 
101
  function is_new_event_day() {
102
- return sp_is_new_event_day();
 
103
  }
104
 
105
  function get_events( $numResults = null, $catName = null ) {
106
- return sp_get_events( $numResults, $catName );
 
107
  }
108
 
109
  function events_displaying_past() {
110
- return sp_is_past();
 
111
  }
112
 
113
  function events_displaying_upcoming() {
114
- return sp_is_upcoming();
 
115
  }
116
 
117
  function events_displaying_month() {
118
- return sp_is_month();
 
119
  }
120
 
121
  function events_get_past_link() {
122
- return sp_get_past_link();
 
123
  }
124
 
125
  function events_get_upcoming_link() {
126
- return sp_get_upcoming_link();
 
127
  }
128
 
129
  function events_get_next_month_link() {
130
- return sp_get_next_month_link();
 
131
  }
132
 
133
  function events_get_previous_month_link() {
134
- return sp_get_previous_month_link();
 
135
  }
136
 
137
  function events_get_events_link() {
138
- return sp_get_events_link();
 
139
  }
140
 
141
  function events_get_gridview_link() {
142
- return sp_get_gridview_link();
143
- }
 
 
144
  function events_get_listview_link() {
145
- return sp_get_listview_link();
 
146
  }
147
 
148
  function events_get_listview_past_link() {
149
- return sp_get_listview_past_link();
 
150
  }
151
 
152
  function events_get_previous_month_text() {
153
- return sp_get_previous_month_text();
 
154
  }
155
 
156
- function events_get_current_month_text(){
157
- return sp_get_current_month_text();
 
158
  }
159
 
160
  function events_get_next_month_text() {
161
- return sp_get_next_month_text();
 
162
  }
163
 
164
  function events_get_displayed_month() {
165
- return sp_get_displayed_month();
 
166
  }
167
 
168
  function events_get_this_month_link() {
169
- return sp_get_this_month_link();
 
170
  }
171
 
172
  /* SP Template Tags. Deprecated in favor of return tribe_ */
173
  function sp_get_option($optionName, $default = '') {
 
174
  return tribe_get_option($optionName, $default);
175
  }
176
 
177
  function sp_calendar_grid() {
 
178
  return tribe_calendar_grid();
179
  }
180
 
181
  function sp_calendar_mini_grid() {
 
182
  return tribe_calendar_mini_grid();
183
  }
184
 
185
  function sp_sort_by_month( $results, $date ) {
 
186
  return tribe_sort_by_month( $results, $date );
187
  }
188
 
189
  function sp_is_event( $postId = null ) {
 
190
  return tribe_is_event( $postId );
191
  }
192
 
193
  function sp_get_map_link( $postId = null ) {
 
194
  return tribe_get_map_link( $postId );
195
- }
196
 
197
  function sp_the_map_link( $postId = null ) {
198
- return tribe_the_map_link( $postId );
 
199
  }
200
 
201
  function sp_get_full_address( $postId = null, $includeVenue = false ) {
 
202
  return tribe_get_full_address( $postId );
203
  }
204
 
205
  function sp_the_full_address( $postId = null ) {
206
- return tribe_the_full_address( $postId );
 
207
  }
208
 
209
  function sp_address_exists( $postId = null ) {
 
210
  return tribe_address_exists( $postId );
211
  }
212
 
213
  function sp_get_embedded_map( $postId = null, $width = '', $height = '' ) {
 
214
  return tribe_get_embedded_map( $postId, $width, $height );
215
  }
216
 
217
  function sp_the_embedded_map( $postId = null, $width = null, $height = null ) {
218
- return tribe_the_embedded_map( $postId, $width, $height );
 
219
  }
220
 
221
  function sp_month_year_dropdowns( $prefix = '' ) {
 
222
  return tribe_month_year_dropdowns( $prefix );
223
  }
224
 
225
  function sp_get_start_date( $postId = null, $showtime = true, $dateFormat = '' ) {
 
226
  return tribe_get_start_date( $postId, $showtime, $dateFormat );
227
  }
228
 
229
  function sp_get_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
 
230
  return tribe_get_end_date( $postId, $showtime, $dateFormat );
231
  }
232
 
233
  function sp_get_cost( $postId = null) {
 
234
  return tribe_get_cost( $postId);
235
  }
236
 
237
  function sp_has_organizer( $postId = null) {
 
238
  return tribe_has_organizer( $postId);
239
  }
240
 
241
  function sp_get_organizer( $postId = null) {
 
242
  return tribe_get_organizer( $postId);
243
  }
244
 
245
  function sp_get_organizer_email( $postId = null) {
 
246
  return tribe_get_organizer_email( $postId);
247
  }
248
 
249
  function sp_get_organizer_website( $postId = null) {
250
- return tribe_get_organizer_website( $postId);
 
251
  }
252
 
253
  function sp_get_organizer_link( $postId = null) {
 
254
  return tribe_get_organizer_link( $postId);
255
  }
256
 
257
  function sp_get_organizer_phone( $postId = null) {
 
258
  return tribe_get_organizer_phone( $postId);
259
  }
260
 
261
  function sp_has_venue( $postId = null) {
 
262
  return tribe_get_venue_id( $postId);
263
  }
264
 
265
  function sp_get_venue( $postId = null) {
 
266
  return tribe_get_venue( $postId);
267
  }
268
 
269
  function sp_get_country( $postId = null) {
 
270
  return tribe_get_country( $postId);
271
  }
272
 
273
  function sp_get_address( $postId = null) {
 
274
  return tribe_get_address( $postId);
275
  }
276
 
277
  function sp_get_city( $postId = null) {
 
278
  return tribe_get_city( $postId);
279
  }
280
 
281
  function sp_get_stateprovince( $postId = null) {
 
282
  return tribe_get_stateprovince( $postId);
283
  }
284
 
285
  function sp_get_state( $postId = null) {
 
286
  return tribe_get_state( $postId);
287
  }
288
 
289
  function sp_get_province( $postId = null) {
 
290
  return tribe_get_province( $postId);
291
  }
292
 
293
  function sp_get_zip( $postId = null) {
 
294
  return tribe_get_zip( $postId);
295
  }
296
 
297
  function sp_get_phone( $postId = null) {
 
298
  return tribe_get_phone( $postId);
299
  }
300
 
301
  function sp_previous_event_link( $anchor = false ) {
 
302
  return tribe_previous_event_link( $anchor );
303
  }
304
 
305
  function sp_next_event_link( $anchor = false ) {
 
306
  return tribe_next_event_link( $anchor );
307
  }
308
 
309
  function sp_post_id_helper( $postId ) {
310
- return tribe_post_id_helper( $postId );
 
311
  }
312
 
313
  function sp_is_new_event_day() {
 
314
  return tribe_is_new_event_day();
315
  }
316
 
317
  function sp_get_events( $args = '' ) {
 
318
  return tribe_get_events( $args );
319
  }
320
 
321
  function sp_is_past() {
 
322
  return tribe_is_past();
323
  }
324
 
325
  function sp_is_upcoming() {
 
326
  return tribe_is_upcoming();
327
  }
328
 
329
  function sp_is_month() {
 
330
  return tribe_is_month();
331
  }
332
 
333
  function sp_get_past_link() {
 
334
  return tribe_get_past_link();
335
  }
336
 
337
  function sp_get_upcoming_link() {
 
338
  return tribe_get_upcoming_link();
339
  }
340
 
341
  function sp_get_next_month_link() {
 
342
  return tribe_get_next_month_link();
343
  }
344
 
345
  function sp_get_previous_month_link() {
 
346
  return tribe_get_previous_month_link();
347
  }
348
 
349
  function sp_get_month_view_date() {
 
350
  return tribe_get_month_view_date();
351
  }
352
 
353
  function sp_get_single_ical_link() {
354
- if( function_exists('tribe_get_single_ical_link') )
355
- return tribe_get_single_ical_link();
 
 
356
  }
357
 
358
  function sp_get_events_link() {
 
359
  return tribe_get_events_link();
360
  }
361
 
362
  function sp_get_gridview_link($term = null) {
 
363
  return tribe_get_gridview_link($term);
364
  }
365
 
366
  function sp_get_listview_link($term = null) {
 
367
  return tribe_get_listview_link($term);
368
  }
369
 
370
  function sp_get_listview_past_link() {
 
371
  return tribe_get_listview_past_link();
372
  }
373
 
374
  function sp_get_dropdown_link_prefix() {
 
375
  return tribe_get_dropdown_link_prefix();
376
  }
377
 
378
  function sp_get_ical_link() {
 
379
  return tribe_get_ical_link();
380
  }
381
 
382
  function sp_get_previous_month_text() {
 
383
  return tribe_get_previous_month_text();
384
  }
385
 
386
- function sp_get_current_month_text( ){
 
387
  return tribe_get_current_month_text();
388
  }
389
 
390
  function sp_get_next_month_text() {
 
391
  return tribe_get_next_month_text();
392
  }
393
 
394
  function sp_get_displayed_month() {
 
395
  return tribe_get_displayed_month();
396
  }
397
 
398
  function sp_get_this_month_link() {
 
399
  return tribe_get_this_month_link();
400
  }
401
 
402
  function sp_get_region( $postId = null ) {
 
403
  return tribe_get_region( $postId );
404
  }
405
 
406
  function sp_get_all_day( $postId = null ) {
 
407
  return tribe_get_all_day( $postId );
408
  }
409
 
410
  function sp_is_multiday( $postId = null) {
 
411
  return tribe_is_multiday( $postId );
412
  }
413
 
414
  function sp_events_title() {
 
415
  return tribe_events_title();
416
  }
417
 
418
  function sp_meta_event_cats() {
 
419
  return tribe_meta_event_cats();
420
  }
421
 
422
  function sp_meta_event_category_name(){
 
423
  return tribe_meta_event_category_name();
424
  }
425
 
426
  function sp_get_add_to_gcal_link() {
 
427
  return tribe_get_gcal_link();
428
  }
429
 
430
  function eventsGetOptionValue($optionName) {
 
431
  return tribe_get_option($optionName);
432
  }
433
 
434
  function events_by_month( $results, $date ) {
 
435
  return tribe_sort_by_month( $results, $date );
436
  }
437
 
438
  function is_event( $postId = null ) {
 
439
  return tribe_is_event( $postId );
440
  }
441
 
442
  function getEventMeta( $id, $meta, $single = true ){
 
443
  return tribe_get_event_meta( $id, $meta, $single );
444
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  }
 
8
  // Don't load directly
9
  if ( !defined('ABSPATH') ) { die('-1'); }
10
 
11
+ if ( class_exists('TribeEvents') ) {
12
+
13
+ if (!function_exists( 'tribe_is_recurring_event' )) {
14
+ /**
15
+ * Moved to ECP. Delete in 2.1
16
+ */
17
+ function tribe_is_recurring_event( $postId = null ) {
18
+ $tribe_ecp = TribeEvents::instance();
19
+ $postId = TribeEvents::postIdHelper( $postId );
20
+ return sizeof(get_post_meta($postId, '_EventStartDate')) > 1;
21
+ }
22
+ }
23
+
24
+ if (!function_exists( 'tribe_get_recurrence_text' )) {
25
+ /**
26
+ * Moved to ECP. Delete in 2.1
27
+ */
28
+ function tribe_get_recurrence_text( $postId = null ) {
29
+ $postId = TribeEvents::postIdHelper( $postId );
30
+ $tribe_ecp = TribeEvents::instance();
31
+ return apply_filters( 'tribe_get_recurrence_text', TribeEventsRecurrenceMeta::recurrenceToText( $postId ) );
32
+ }
33
+ }
34
 
35
  function event_grid_view() {
36
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_grid()' );
37
+ tribe_calendar_grid();
38
  }
39
 
40
  function get_event_google_map_link( $postId = null ) {
41
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_map_link()' );
42
+ return tribe_get_map_link( $postId );
43
  }
44
 
45
  function event_google_map_link( $postId = null ) {
46
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_map_link()' );
47
+ echo tribe_get_map_link( $postId );
48
  }
49
 
50
  function tec_get_event_address( $postId = null, $includeVenue = false ) {
51
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
52
+ return tribe_get_full_address($postId, $includeVenue);
53
  }
54
 
55
  function tec_event_address( $postId = null ) {
56
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_full_address()' );
57
+ echo tribe_get_full_address( $postId );
58
  }
59
 
60
  function tec_address_exists( $postId = null ) {
61
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_address_exists()' );
62
+ return tribe_address_exists( $postId );
63
  }
64
 
65
  function get_event_google_map_embed( $postId = null, $width = '', $height = '' ) {
66
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_embedded_map()' );
67
+ return tribe_get_embedded_map( $postId, $width, $height );
68
  }
69
 
70
  function event_google_map_embed( $postId = null, $width = null, $height = null ) {
71
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_embedded_map()' );
72
+ echo tribe_get_embedded_map( $postId, $width, $height );
73
  }
74
 
75
  function get_jump_to_date_calendar( $prefix = '' ) {
76
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_month_year_dropdowns()' );
77
+ tribe_month_year_dropdowns( $prefix );
78
  }
79
 
80
  function the_event_start_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
81
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_start_date()' );
82
+ echo tribe_get_start_date( $postId, $showtime, $dateFormat );
83
  }
84
 
85
  function the_event_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
86
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_end_date()' );
87
+ echo tribe_get_end_date( $postId, $showtime, $dateFormat );
88
  }
89
 
90
  function the_event_cost( $postId = null) {
91
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_cost()' );
92
+ echo tribe_get_cost($postId);
93
  }
94
 
95
  function the_event_venue( $postId = null) {
96
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_venue()' );
97
+ echo tribe_get_venue( $postID );
98
  }
99
 
100
  function the_event_country( $postId = null) {
101
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_country()' );
102
+ echo tribe_get_country( $postID );
103
  }
104
 
105
  function the_event_address( $postId = null) {
106
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_address()' );
107
+ echo tribe_get_address( $postID );
108
  }
109
 
110
  function the_event_city( $postId = null) {
111
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_city()' );
112
+ echo tribe_get_city( $postID );
113
  }
114
 
115
  function the_event_state( $postId = null) {
116
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_state()' );
117
+ echo tribe_get_state( $postID );
118
  }
119
 
120
  function the_event_province( $postId = null) {
121
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_province()' );
122
+ echo tribe_get_province( $postID );
123
  }
124
 
125
  function the_event_zip( $postId = null) {
126
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_zip()' );
127
+ echo tribe_get_zip( $postID );
128
  }
129
 
130
  function the_event_phone( $postId = null) {
131
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_phone()' );
132
+ echo tribe_get_phone( $postID );
133
  }
134
 
135
  function the_event_region() {
136
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_region()' );
137
+ echo tribe_get_region( $postID );
138
  }
139
 
140
  function the_event_all_day( $postId = null ) {
141
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_all_day()' );
142
+ echo tribe_get_all_day( $postID );
143
  }
144
 
145
  function is_new_event_day() {
146
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_new_event_day()' );
147
+ return tribe_is_new_event_day();
148
  }
149
 
150
  function get_events( $numResults = null, $catName = null ) {
151
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
152
+ return tribe_get_events( $numResults, $catName );
153
  }
154
 
155
  function events_displaying_past() {
156
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_past()' );
157
+ return tribe_is_past();
158
  }
159
 
160
  function events_displaying_upcoming() {
161
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_upcoming()' );
162
+ return tribe_is_upcoming();
163
  }
164
 
165
  function events_displaying_month() {
166
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_month()' );
167
+ return tribe_is_month();
168
  }
169
 
170
  function events_get_past_link() {
171
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_past_link()' );
172
+ return tribe_get_past_link();
173
  }
174
 
175
  function events_get_upcoming_link() {
176
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_upcoming_link()' );
177
+ return tribe_get_upcoming_link();
178
  }
179
 
180
  function events_get_next_month_link() {
181
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_link()' );
182
+ return tribe_get_next_month_link();
183
  }
184
 
185
  function events_get_previous_month_link() {
186
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_link()' );
187
+ return tribe_get_previous_month_link();
188
  }
189
 
190
  function events_get_events_link() {
191
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events_link()' );
192
+ return tribe_get_events_link();
193
  }
194
 
195
  function events_get_gridview_link() {
196
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gridview_link()' );
197
+ return tribe_get_gridview_link();
198
+ }
199
+
200
  function events_get_listview_link() {
201
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_link()' );
202
+ return tribe_get_listview_link();
203
  }
204
 
205
  function events_get_listview_past_link() {
206
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
207
+ return tribe_get_listview_past_link();
208
  }
209
 
210
  function events_get_previous_month_text() {
211
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_text()' );
212
+ return tribe_get_previous_month_text();
213
  }
214
 
215
+ function events_get_current_month_text() {
216
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_current_month_text()' );
217
+ return tribe_get_current_month_text();
218
  }
219
 
220
  function events_get_next_month_text() {
221
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_text()' );
222
+ return tribe_get_next_month_text();
223
  }
224
 
225
  function events_get_displayed_month() {
226
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_displayed_month()' );
227
+ return tribe_get_displayed_month();
228
  }
229
 
230
  function events_get_this_month_link() {
231
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_this_month_link()' );
232
+ return tribe_get_this_month_link();
233
  }
234
 
235
  /* SP Template Tags. Deprecated in favor of return tribe_ */
236
  function sp_get_option($optionName, $default = '') {
237
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );
238
  return tribe_get_option($optionName, $default);
239
  }
240
 
241
  function sp_calendar_grid() {
242
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_grid()' );
243
  return tribe_calendar_grid();
244
  }
245
 
246
  function sp_calendar_mini_grid() {
247
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_mini_grid()' );
248
  return tribe_calendar_mini_grid();
249
  }
250
 
251
  function sp_sort_by_month( $results, $date ) {
252
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_sort_by_month()' );
253
  return tribe_sort_by_month( $results, $date );
254
  }
255
 
256
  function sp_is_event( $postId = null ) {
257
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_event()' );
258
  return tribe_is_event( $postId );
259
  }
260
 
261
  function sp_get_map_link( $postId = null ) {
262
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_map_link()' );
263
  return tribe_get_map_link( $postId );
264
+ }
265
 
266
  function sp_the_map_link( $postId = null ) {
267
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_map_link()' );
268
+ echo tribe_get_map_link( $postId );
269
  }
270
 
271
  function sp_get_full_address( $postId = null, $includeVenue = false ) {
272
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
273
  return tribe_get_full_address( $postId );
274
  }
275
 
276
  function sp_the_full_address( $postId = null ) {
277
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
278
+ echo tribe_get_full_address( $postId );
279
  }
280
 
281
  function sp_address_exists( $postId = null ) {
282
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_address_exists()' );
283
  return tribe_address_exists( $postId );
284
  }
285
 
286
  function sp_get_embedded_map( $postId = null, $width = '', $height = '' ) {
287
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_embedded_map()' );
288
  return tribe_get_embedded_map( $postId, $width, $height );
289
  }
290
 
291
  function sp_the_embedded_map( $postId = null, $width = null, $height = null ) {
292
+ _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_embedded_map()' );
293
+ echo tribe_get_embedded_map( $postId, $width, $height );
294
  }
295
 
296
  function sp_month_year_dropdowns( $prefix = '' ) {
297
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_month_year_dropdowns()' );
298
  return tribe_month_year_dropdowns( $prefix );
299
  }
300
 
301
  function sp_get_start_date( $postId = null, $showtime = true, $dateFormat = '' ) {
302
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_start_date()' );
303
  return tribe_get_start_date( $postId, $showtime, $dateFormat );
304
  }
305
 
306
  function sp_get_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
307
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_end_date()' );
308
  return tribe_get_end_date( $postId, $showtime, $dateFormat );
309
  }
310
 
311
  function sp_get_cost( $postId = null) {
312
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_cost()' );
313
  return tribe_get_cost( $postId);
314
  }
315
 
316
  function sp_has_organizer( $postId = null) {
317
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_has_organizer()' );
318
  return tribe_has_organizer( $postId);
319
  }
320
 
321
  function sp_get_organizer( $postId = null) {
322
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer()' );
323
  return tribe_get_organizer( $postId);
324
  }
325
 
326
  function sp_get_organizer_email( $postId = null) {
327
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_email()' );
328
  return tribe_get_organizer_email( $postId);
329
  }
330
 
331
  function sp_get_organizer_website( $postId = null) {
332
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_link( $postId, false )' );
333
+ return tribe_get_organizer_link( $postId, false );
334
  }
335
 
336
  function sp_get_organizer_link( $postId = null) {
337
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_link()' );
338
  return tribe_get_organizer_link( $postId);
339
  }
340
 
341
  function sp_get_organizer_phone( $postId = null) {
342
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_phone()' );
343
  return tribe_get_organizer_phone( $postId);
344
  }
345
 
346
  function sp_has_venue( $postId = null) {
347
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_venue_id()' );
348
  return tribe_get_venue_id( $postId);
349
  }
350
 
351
  function sp_get_venue( $postId = null) {
352
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_venue()' );
353
  return tribe_get_venue( $postId);
354
  }
355
 
356
  function sp_get_country( $postId = null) {
357
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_country()' );
358
  return tribe_get_country( $postId);
359
  }
360
 
361
  function sp_get_address( $postId = null) {
362
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_address()' );
363
  return tribe_get_address( $postId);
364
  }
365
 
366
  function sp_get_city( $postId = null) {
367
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_city()' );
368
  return tribe_get_city( $postId);
369
  }
370
 
371
  function sp_get_stateprovince( $postId = null) {
372
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_stateprovince()' );
373
  return tribe_get_stateprovince( $postId);
374
  }
375
 
376
  function sp_get_state( $postId = null) {
377
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_state()' );
378
  return tribe_get_state( $postId);
379
  }
380
 
381
  function sp_get_province( $postId = null) {
382
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_province()' );
383
  return tribe_get_province( $postId);
384
  }
385
 
386
  function sp_get_zip( $postId = null) {
387
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_zip()' );
388
  return tribe_get_zip( $postId);
389
  }
390
 
391
  function sp_get_phone( $postId = null) {
392
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_phone()' );
393
  return tribe_get_phone( $postId);
394
  }
395
 
396
  function sp_previous_event_link( $anchor = false ) {
397
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_previous_event_link()' );
398
  return tribe_previous_event_link( $anchor );
399
  }
400
 
401
  function sp_next_event_link( $anchor = false ) {
402
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_next_event_link()' );
403
  return tribe_next_event_link( $anchor );
404
  }
405
 
406
  function sp_post_id_helper( $postId ) {
407
+ _deprecated_function( __FUNCTION__, '2.0' );
408
+ return TribeEvents::postIdHelper( $postId );
409
  }
410
 
411
  function sp_is_new_event_day() {
412
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_new_event_day()' );
413
  return tribe_is_new_event_day();
414
  }
415
 
416
  function sp_get_events( $args = '' ) {
417
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
418
  return tribe_get_events( $args );
419
  }
420
 
421
  function sp_is_past() {
422
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_past()' );
423
  return tribe_is_past();
424
  }
425
 
426
  function sp_is_upcoming() {
427
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_upcoming()' );
428
  return tribe_is_upcoming();
429
  }
430
 
431
  function sp_is_month() {
432
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_month()' );
433
  return tribe_is_month();
434
  }
435
 
436
  function sp_get_past_link() {
437
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_past_link()' );
438
  return tribe_get_past_link();
439
  }
440
 
441
  function sp_get_upcoming_link() {
442
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_upcoming_link()' );
443
  return tribe_get_upcoming_link();
444
  }
445
 
446
  function sp_get_next_month_link() {
447
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_link()' );
448
  return tribe_get_next_month_link();
449
  }
450
 
451
  function sp_get_previous_month_link() {
452
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_link()' );
453
  return tribe_get_previous_month_link();
454
  }
455
 
456
  function sp_get_month_view_date() {
457
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_month_view_date()' );
458
  return tribe_get_month_view_date();
459
  }
460
 
461
  function sp_get_single_ical_link() {
462
+ if( function_exists('tribe_get_single_ical_link') ) {
463
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_single_ical_link()' );
464
+ return tribe_get_single_ical_link();
465
+ }
466
  }
467
 
468
  function sp_get_events_link() {
469
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
470
  return tribe_get_events_link();
471
  }
472
 
473
  function sp_get_gridview_link($term = null) {
474
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gridview_link()' );
475
  return tribe_get_gridview_link($term);
476
  }
477
 
478
  function sp_get_listview_link($term = null) {
479
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_link()' );
480
  return tribe_get_listview_link($term);
481
  }
482
 
483
  function sp_get_listview_past_link() {
484
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
485
  return tribe_get_listview_past_link();
486
  }
487
 
488
  function sp_get_dropdown_link_prefix() {
489
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
490
  return tribe_get_dropdown_link_prefix();
491
  }
492
 
493
  function sp_get_ical_link() {
494
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_ical_link()' );
495
  return tribe_get_ical_link();
496
  }
497
 
498
  function sp_get_previous_month_text() {
499
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_text()' );
500
  return tribe_get_previous_month_text();
501
  }
502
 
503
+ function sp_get_current_month_text(){
504
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_current_month_text()' );
505
  return tribe_get_current_month_text();
506
  }
507
 
508
  function sp_get_next_month_text() {
509
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_text()' );
510
  return tribe_get_next_month_text();
511
  }
512
 
513
  function sp_get_displayed_month() {
514
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_displayed_month()' );
515
  return tribe_get_displayed_month();
516
  }
517
 
518
  function sp_get_this_month_link() {
519
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_this_month_link()' );
520
  return tribe_get_this_month_link();
521
  }
522
 
523
  function sp_get_region( $postId = null ) {
524
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_region()' );
525
  return tribe_get_region( $postId );
526
  }
527
 
528
  function sp_get_all_day( $postId = null ) {
529
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_all_day()' );
530
  return tribe_get_all_day( $postId );
531
  }
532
 
533
  function sp_is_multiday( $postId = null) {
534
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_multiday()' );
535
  return tribe_is_multiday( $postId );
536
  }
537
 
538
  function sp_events_title() {
539
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_events_title()' );
540
  return tribe_events_title();
541
  }
542
 
543
  function sp_meta_event_cats() {
544
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_meta_event_cats()' );
545
  return tribe_meta_event_cats();
546
  }
547
 
548
  function sp_meta_event_category_name(){
549
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_meta_event_category_name()' );
550
  return tribe_meta_event_category_name();
551
  }
552
 
553
  function sp_get_add_to_gcal_link() {
554
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gcal_link()' );
555
  return tribe_get_gcal_link();
556
  }
557
 
558
  function eventsGetOptionValue($optionName) {
559
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );
560
  return tribe_get_option($optionName);
561
  }
562
 
563
  function events_by_month( $results, $date ) {
564
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_sort_by_month()' );
565
  return tribe_sort_by_month( $results, $date );
566
  }
567
 
568
  function is_event( $postId = null ) {
569
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_event()' );
570
  return tribe_is_event( $postId );
571
  }
572
 
573
  function getEventMeta( $id, $meta, $single = true ){
574
+ _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_event_meta()' );
575
  return tribe_get_event_meta( $id, $meta, $single );
576
  }
577
+
578
+ function tribe_the_map_link( $postId = null ) {
579
+ _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_map_link()' );
580
+ echo tribe_get_map_link( $postId );
581
+ }
582
+
583
+ function tribe_the_embedded_map( $postId = null, $width = null, $height = null ) {
584
+ _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_embedded_map()' );
585
+ echo tribe_get_embedded_map( $postId, $width, $height );
586
+ }
587
+
588
+ function tribe_the_full_address( $postId = null, $includeVenueName = false ) {
589
+ _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_full_address()' );
590
+ echo tribe_get_full_address( $postId );
591
+ }
592
+
593
+ function tribe_get_organizer_website( $postId = null) {
594
+ _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_organizer_link($postId,false)' );
595
+ $output = tribe_get_organizer_link( $postId, false );
596
+ return apply_filters( 'tribe_get_organizer_website', $output);
597
+ }
598
+
599
+ function tribe_get_venue_permalink( $postId = null) {
600
+ _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_venue_link($postId,false)' );
601
+ return tribe_get_venue_link( $postId, false );
602
+ }
603
+
604
  }
605
+ ?>
lib/the-events-calendar.class.php CHANGED
@@ -16,7 +16,7 @@ if ( !class_exists( 'TribeEvents' ) ) {
16
  const VENUE_POST_TYPE = 'tribe_venue';
17
  const ORGANIZER_POST_TYPE = 'tribe_organizer';
18
  const PLUGIN_DOMAIN = 'tribe-events-calendar';
19
- const VERSION = '2.0';
20
  const FEED_URL = 'http://tri.be/category/products/feed/';
21
 
22
  protected $postTypeArgs = array(
@@ -141,7 +141,20 @@ if ( !class_exists( 'TribeEvents' ) ) {
141
  **/
142
  protected function loadLibraries() {
143
  require_once( 'tribe-event-exception.class.php' );
144
- require_once( $this->pluginPath.'template-tags.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  require_once( 'template-tags-deprecated.php' );
146
  require_once( 'widget-list.class.php' );
147
  require_once( 'tribe-admin-events-list.class.php' );
@@ -192,24 +205,28 @@ if ( !class_exists( 'TribeEvents' ) ) {
192
  add_action( "trash_" . TribeEvents::ORGANIZER_POST_TYPE, array($this, 'cleanupPostOrganizers'));
193
  add_action( "wp_ajax_tribe_event_validation", array($this,'ajax_form_validate') );
194
  add_action( 'tribe_debug', array( $this, 'renderDebug' ), 10, 2 );
195
- // noindex grid view
196
- add_action('wp_head', array( $this, 'noindex_months' ) );
197
  add_action( 'plugin_row_meta', array( $this, 'addMetaLinks' ), 10, 2 );
198
- add_action( 'wp_dashboard_setup', array( $this, 'dashboardWidget' ) );
199
- // organizer and venue
200
- add_action( 'tribe_venue_table_top', array($this, 'displayEventVenueInput') );
201
- add_action( 'tribe_organizer_table_top', array($this, 'displayEventOrganizerInput') );
202
- }
203
-
204
- /**
205
- * Add code to tell search engines not to index the grid view of the
206
- * calendar. Users were seeing 100s of months being indexed.
207
- */
208
- function noindex_months() {
209
- if (get_query_var('eventDisplay') == 'month') {
210
- echo " <meta name=\"robots\" content=\"noindex, follow\"/>\n";
211
- }
212
- }
 
 
 
 
213
 
214
  /**
215
  * Run on applied action init
@@ -236,25 +253,34 @@ if ( !class_exists( 'TribeEvents' ) ) {
236
  }
237
  self::debug(sprintf(__('Initializing Tribe Events on %s','tribe-events-calendar'),date('M, jS \a\t h:m:s a')));
238
  $this->maybeMigrateDatabase();
 
239
  }
240
 
241
- public function maybeMigrateDatabase() {
242
- if( !$this->getOption('data_migration_version') ) {
243
- global $wpdb;
244
- // rename option
245
- update_option(self::OPTIONNAME, get_option('sp_events_calendar_options'));
246
- delete_option('sp_events_calendar_options');
 
247
 
248
- // update post type names
249
- $wpdb->update($wpdb->posts, array( 'post_type' => self::POSTTYPE ), array( 'post_type' => 'sp_events') );
250
- $wpdb->update($wpdb->posts, array( 'post_type' => self::VENUE_POST_TYPE ), array( 'post_type' => 'sp_venue') );
251
- $wpdb->update($wpdb->posts, array( 'post_type' => self::ORGANIZER_POST_TYPE ), array( 'post_type' => 'sp_organizer') );
252
 
253
- // update taxonomy names
254
- $wpdb->update($wpdb->term_taxonomy, array( 'taxonomy' => self::TAXONOMY ), array( 'taxonomy' => 'sp_events_cat') );
255
- $this->setOption('data_migration_version', '2.0');
256
- }
257
- }
 
 
 
 
 
 
 
258
 
259
  /**
260
  * Test PHP and WordPress versions for compatibility
@@ -292,9 +318,13 @@ if ( !class_exists( 'TribeEvents' ) ) {
292
  public function add_current_menu_item_class_to_events( $items, $args ) {
293
  foreach($items as $item) {
294
  if($item->url == $this->getLink() ) {
295
- if ( is_singular( TribeEvents::POSTTYPE ) || is_singular( TribeEvents::VENUE_POST_TYPE ) ||
296
- is_tax(TribeEvents::TAXONOMY) ||
297
- tribe_is_upcoming() || tribe_is_past() || tribe_is_month() ) {
 
 
 
 
298
  $item->classes[] = 'current-menu-item current_page_item';
299
  }
300
  break;
@@ -369,8 +399,8 @@ if ( !class_exists( 'TribeEvents' ) ) {
369
  }
370
 
371
  public function addDateToRecurringEvents($permalink, $post) {
372
- if(function_exists('tribe_is_recurring_event') && $post->post_type == self::POSTTYPE && tribe_is_recurring_event($post->ID) ) {
373
- if( is_admin() && !$post->EventStartDate ) {
374
  if( isset($_REQUEST['eventDate'] ) ) {
375
  $post->EventStartDate = $_REQUEST['eventDate'];
376
  } else {
@@ -413,7 +443,15 @@ if ( !class_exists( 'TribeEvents' ) ) {
413
  $new_title = sprintf(__("Events this month", 'tribe-events-calendar'),get_query_var('eventDate')) . ' '. $sep . ' ' . $title;
414
  }
415
 
416
- }else{
 
 
 
 
 
 
 
 
417
  return $title;
418
  }
419
 
@@ -757,7 +795,7 @@ if ( !class_exists( 'TribeEvents' ) ) {
757
  $options[$opt] = $_POST[$opt];
758
  }
759
 
760
- $options['spEventsCountries'] = stripslashes($options['spEventsCountries']);
761
 
762
  // events slug happiness
763
  $slug = $options['eventsSlug'];
@@ -829,12 +867,12 @@ if ( !class_exists( 'TribeEvents' ) ) {
829
  }
830
  }
831
 
832
- public function setOption($name, $value) {
833
- $newOption = array();
834
- $newOption[$name] = $value;
835
- $options = self::getOptions();
836
- $this->setOptions( wp_parse_args( $newOption, $options ) );
837
- }
838
 
839
  // clean up trashed venues
840
  public function cleanupPostVenues($postId) {
@@ -909,29 +947,32 @@ if ( !class_exists( 'TribeEvents' ) ) {
909
  } else if ( $query->get('eventDisplay') == 'month' ) {
910
  $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
911
  $this->date = substr_replace( $date, '01', -2 );
912
- } else if (is_singular(self::POSTTYPE) && $query->get('eventDate') ) {
913
  $this->date = $query->get('eventDate');
914
- } else if (!is_singular(self::POSTTYPE)) { // don't set date for single event unless recurring
915
  $this->date = date(TribeDateUtils::DBDATETIMEFORMAT);
916
  }
917
  }
918
 
919
  public function setDisplay() {
920
- global $wp_query;
921
-
922
- if (is_admin())
923
  $this->displaying = 'admin';
924
- else
 
925
  $this->displaying = isset( $wp_query->query_vars['eventDisplay'] ) ? $wp_query->query_vars['eventDisplay'] : 'upcoming';
 
926
  }
927
 
928
- public function setReccuringEventDates() {
929
- global $post;
930
-
931
- if( function_exists('tribe_is_recurring_event') &&
932
- is_singular(self::POSTTYPE) &&
933
- tribe_is_recurring_event() &&
934
- ( !tribe_is_showing_all() && !tribe_is_upcoming() && !tribe_is_past() && !tribe_is_month() && !tribe_is_by_date() ) ) {
 
 
 
935
  $startTime = get_post_meta($post->ID, '_EventStartDate', true);
936
  $startTime = TribeDateUtils::timeOnly($startTime);
937
 
@@ -1022,12 +1063,12 @@ if ( !class_exists( 'TribeEvents' ) ) {
1022
  /**
1023
  * Adds Event specific rewrite rules.
1024
  *
1025
- * events/ => /?post_type=sp_events
1026
- * events/month => /?post_type=sp_events&eventDisplay=month
1027
- * events/upcoming => /?post_type=sp_events&eventDisplay=upcoming
1028
- * events/past => /?post_type=sp_events&eventDisplay=past
1029
- * events/2008-01/#15 => /?post_type=sp_events&eventDisplay=bydate&eventDate=2008-01-01
1030
- * events/category/some-events-category => /?post_type=sp_events&sp_event_cat=some-events-category
1031
  *
1032
  * @return void
1033
  */
@@ -1093,7 +1134,7 @@ if ( !class_exists( 'TribeEvents' ) ) {
1093
  public function getLink( $type = 'home', $secondary = false, $term = null ) {
1094
  // if permalinks are off or user doesn't want them: ugly.
1095
  if( '' == get_option('permalink_structure') ) {
1096
- return $this->uglyLink($type, $secondary);
1097
  }
1098
 
1099
  $eventUrl = trailingslashit( home_url() . '/' . $this->rewriteSlug );
@@ -1108,38 +1149,40 @@ if ( !class_exists( 'TribeEvents' ) ) {
1108
  switch( $type ) {
1109
 
1110
  case 'home':
1111
- return $eventUrl;
1112
  case 'month':
1113
  if ( $secondary ) {
1114
- return $eventUrl . $secondary;
1115
  }
1116
- return $eventUrl . $this->monthSlug . '/';
1117
  case 'upcoming':
1118
- return $eventUrl . $this->upcomingSlug . '/';
1119
  case 'past':
1120
- return $eventUrl . $this->pastSlug . '/';
1121
  case 'dropdown':
1122
- return $eventUrl;
1123
  case 'ical':
1124
  if ( $secondary == 'single' )
1125
  $eventUrl = trailingslashit(get_permalink());
1126
- return $eventUrl . 'ical/';
1127
  case 'single':
1128
- global $post;
1129
  $p = $secondary ? $secondary : $post;
1130
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1131
- $link = trailingslashit(get_permalink($p));
1132
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1133
- return $link;
1134
- case 'day':
1135
- return $eventUrl . $secondary;
1136
- case 'all':
 
 
1137
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1138
  $eventUrl = trailingslashit(get_permalink());
1139
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1140
- return $eventUrl . 'all/';
1141
  default:
1142
- return $eventUrl;
1143
  }
1144
 
1145
  }
@@ -1175,13 +1218,13 @@ if ( !class_exists( 'TribeEvents' ) ) {
1175
  }
1176
  return home_url() . '/?ical';
1177
  case 'single':
1178
- global $post;
1179
  $post = $secondary ? $secondary : $post;
1180
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1181
- $link = trailingslashit(get_permalink($post));
1182
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1183
- return $link;
1184
- case 'all':
1185
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1186
  $eventUrl = add_query_arg('eventDisplay', 'all', get_permalink() );
1187
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
@@ -1237,10 +1280,10 @@ if ( !class_exists( 'TribeEvents' ) ) {
1237
  return "";
1238
  }
1239
 
1240
- /**
1241
- * Returns the full address of an event along with HTML markup. It
1242
- * loads the full-address template to generate the HTML
1243
- */
1244
  public function fullAddress( $postId=null, $includeVenueName=false ) {
1245
  ob_start();
1246
  load_template( TribeEventsTemplates::getTemplateHierarchy( 'full-address' ), false );
@@ -1249,37 +1292,37 @@ if ( !class_exists( 'TribeEvents' ) ) {
1249
  return $address;
1250
  }
1251
 
1252
- /**
1253
- * Returns a string version of the full address of an event
1254
- */
1255
- public function fullAddressString( $postId=null ) {
1256
- $address = '';
1257
- if( tribe_get_address( $postId ) ) {
1258
- $address .= tribe_get_address( $postId );
1259
- }
1260
 
1261
- if( tribe_get_city( $postId ) ) {
1262
- if($address != '') $address .= ", ";
1263
- $address .= tribe_get_city( $postId );
1264
- }
1265
 
1266
- if( tribe_get_region( $postId ) ) {
1267
- if($address != '') $address .= ", ";
1268
- $address .= tribe_get_region( $postId );
1269
- }
1270
 
1271
- if( tribe_get_zip( $postId ) ) {
1272
- if($address != '') $address .= ", ";
1273
- $address .= tribe_get_zip( $postId );
1274
- }
1275
 
1276
- if( tribe_get_country( $postId ) ) {
1277
- if($address != '') $address .= ", ";
1278
- $address .= tribe_get_country( $postId );
1279
- }
1280
 
1281
- return $address;
1282
- }
1283
 
1284
  /**
1285
  * This plugin does not have any deactivation functionality. Any events, categories, options and metadata are
@@ -1370,6 +1413,12 @@ if ( !class_exists( 'TribeEvents' ) ) {
1370
 
1371
  $_POST['Organizer'] = stripslashes_deep($_POST['organizer']);
1372
  $_POST['Venue'] = stripslashes_deep($_POST['venue']);
 
 
 
 
 
 
1373
 
1374
  TribeEventsAPI::saveEventMeta($postId, $_POST, $post);
1375
  }
@@ -1397,8 +1446,8 @@ if ( !class_exists( 'TribeEvents' ) ) {
1397
  //That would be bad.
1398
  remove_action( 'save_post', array( $this, 'save_venue_data' ), 16, 2 );
1399
 
1400
- if( !$_POST['post_title'] ) { $_POST['post_title'] = "Unnamed Venue"; }
1401
- $_POST['venue']['Venue'] = $_POST['post_title'];
1402
  $data = stripslashes_deep($_POST['venue']);
1403
  $venue_id = TribeEventsAPI::updateVenue($postID, $data);
1404
 
@@ -1497,46 +1546,46 @@ if ( !class_exists( 'TribeEvents' ) ) {
1497
  foreach ( $this->metaTags as $tag ) {
1498
  if ( $postId && isset($_GET['post']) && $_GET['post'] ) { //if there is a post AND the post has been saved at least once.
1499
  // Sort the meta to make sure it is correct for recurring events
1500
- $meta = get_post_meta($postId,$tag); sort($meta);
1501
- $$tag = $meta[0];
 
1502
  } else {
1503
  $cleaned_tag = str_replace('_Event','',$tag);
1504
  $$tag = class_exists('TribeEventsPro') ? tribe_get_option('eventsDefault'.$cleaned_tag) : "";
1505
  }
1506
  }
1507
 
1508
- if( $_EventOrganizerID ) {
1509
- foreach($this->organizerTags as $tag) {
1510
  $$tag = get_post_meta($_EventOrganizerID, $tag, true );
1511
  }
1512
- }
1513
 
1514
- if($_EventVenueID){
1515
  foreach($this->venueTags as $tag) {
1516
  $$tag = get_post_meta($_EventVenueID, $tag, true );
1517
  }
1518
 
1519
  }else{
1520
- $defaults = $this->venueTags;
1521
- $defaults[] = '_VenueState';
1522
- $defaults[] = '_VenueProvince';
1523
 
1524
- if (class_exists('TribeEventsPro')) {
1525
- foreach ( $defaults as $tag ) {
1526
- if ( !$postId || !isset($_GET['post']) ) { //if there is a post AND the post has been saved at least once.
1527
- $cleaned_tag = str_replace('_Venue','',$tag);
1528
 
1529
- if($cleaned_tag == 'Cost')
1530
- continue;
1531
 
1532
- ${'_Venue'.$cleaned_tag} = tribe_get_option('eventsDefault'.$cleaned_tag);
1533
- }
1534
- }
1535
 
1536
- $_VenueStateProvince = -1; // we want to use default values here
1537
- }
1538
  }
1539
 
 
1540
  $isEventAllDay = ( $_EventAllDay == 'yes' || ! TribeDateUtils::dateOnly( $_EventStartDate ) ) ? 'checked="checked"' : ''; // default is all day for new posts
1541
  $startMonthOptions = TribeEventsViewHelpers::getMonthOptions( $_EventStartDate );
1542
  $endMonthOptions = TribeEventsViewHelpers::getMonthOptions( $_EventEndDate );
@@ -1561,8 +1610,8 @@ if ( !class_exists( 'TribeEvents' ) ) {
1561
  $end = TribeDateUtils::dateOnly($_EventEndDate);
1562
 
1563
  $EventEndDate = ( isset($end) && $end ) ? $end : date('Y-m-d');
1564
- $recStart = isset($_REQUEST['event_start']) ? $_REQUEST['event_start'] : null;
1565
- $recPost = isset($_REQUEST['post']) ? $_REQUEST['post'] : null;
1566
 
1567
  if ( !empty($_REQUEST['eventDate']) ) {
1568
  $duration = get_post_meta( $postId, '_EventDuration', true );
@@ -1572,16 +1621,16 @@ if ( !class_exists( 'TribeEvents' ) ) {
1572
  include( $this->pluginPath . 'admin-views/events-meta-box.php' );
1573
  }
1574
 
1575
- public function displayEventVenueInput($postId) {
1576
- $curVenue = get_post_meta( $postId, '_EventVenueID', true);
1577
- ?><input type='hidden' name='venue[curVenue]' value='<?php echo esc_attr($curVenue) ?>'/><?php
1578
- }
1579
 
1580
- public function displayEventOrganizerInput($postId) {
1581
- $curOrg = get_post_meta( $postId, '_EventOrganizerID', true);
1582
- ?><input type='hidden' name='organizer[curOrganizer]' value='<?php echo esc_attr($curOrg) ?>'/><?php
1583
- }
1584
-
1585
 
1586
  /**
1587
  * Adds a style chooser to the write post page
@@ -1797,6 +1846,17 @@ if ( !class_exists( 'TribeEvents' ) ) {
1797
  return false;
1798
  }
1799
 
 
 
 
 
 
 
 
 
 
 
 
1800
  /**
1801
  ** Get a "previous/next post" link for events. Ordered by start date instead of ID.
1802
  **/
@@ -1842,9 +1902,9 @@ if ( !class_exists( 'TribeEvents' ) ) {
1842
  }
1843
 
1844
  public function addMetaLinks( $links, $file ) {
1845
- if ( $file == $this->pluginDir . 'the-events-calendar.php' ) {
1846
- $anchor = __( 'Support', 'tribe-events-calendar' );
1847
- $links []= '<a href="http://wordpress.org/tags/the-events-calendar?forum_id=10">' . $anchor . '</a>';
1848
 
1849
  $anchor = __( 'View All Add-Ons', 'tribe-events-calendar' );
1850
  $links []= '<a href="'.self::$tribeUrl.'events-calendar/features/add-ons/?ref=tec-plugin">' . $anchor . '</a>';
@@ -1894,6 +1954,39 @@ if ( !class_exists( 'TribeEvents' ) ) {
1894
  }
1895
  }
1896
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1897
  } // end TribeEvents class
1898
 
1899
  } // end if !class_exists TribeEvents
16
  const VENUE_POST_TYPE = 'tribe_venue';
17
  const ORGANIZER_POST_TYPE = 'tribe_organizer';
18
  const PLUGIN_DOMAIN = 'tribe-events-calendar';
19
+ const VERSION = '2.0.1';
20
  const FEED_URL = 'http://tri.be/category/products/feed/';
21
 
22
  protected $postTypeArgs = array(
141
  **/
142
  protected function loadLibraries() {
143
  require_once( 'tribe-event-exception.class.php' );
144
+ // Load Template Tags
145
+ require_once( $this->pluginPath.'public/template-tags/general.php' );
146
+ require_once( $this->pluginPath.'public/template-tags/calendar.php' );
147
+ require_once( $this->pluginPath.'public/template-tags/loop.php' );
148
+ require_once( $this->pluginPath.'public/template-tags/google-map.php' );
149
+ require_once( $this->pluginPath.'public/template-tags/organizer.php' );
150
+ require_once( $this->pluginPath.'public/template-tags/venue.php' );
151
+ require_once( $this->pluginPath.'public/template-tags/date.php' );
152
+ require_once( $this->pluginPath.'public/template-tags/link.php' );
153
+ // Load Advanced Functions
154
+ require_once( $this->pluginPath.'public/advanced-functions/event.php' );
155
+ require_once( $this->pluginPath.'public/advanced-functions/venue.php' );
156
+ require_once( $this->pluginPath.'public/advanced-functions/organizer.php' );
157
+ // Load Deprecated Template Tags
158
  require_once( 'template-tags-deprecated.php' );
159
  require_once( 'widget-list.class.php' );
160
  require_once( 'tribe-admin-events-list.class.php' );
205
  add_action( "trash_" . TribeEvents::ORGANIZER_POST_TYPE, array($this, 'cleanupPostOrganizers'));
206
  add_action( "wp_ajax_tribe_event_validation", array($this,'ajax_form_validate') );
207
  add_action( 'tribe_debug', array( $this, 'renderDebug' ), 10, 2 );
208
+ // noindex grid view
209
+ add_action('wp_head', array( $this, 'noindex_months' ) );
210
  add_action( 'plugin_row_meta', array( $this, 'addMetaLinks' ), 10, 2 );
211
+ // organizer and venue
212
+ add_action( 'tribe_venue_table_top', array($this, 'displayEventVenueInput') );
213
+ add_action( 'tribe_organizer_table_top', array($this, 'displayEventOrganizerInput') );
214
+ if( !defined('TRIBE_HIDE_UPSELL') || !TRIBE_HIDE_UPSELL ) {
215
+ add_action( 'wp_dashboard_setup', array( $this, 'dashboardWidget' ) );
216
+ add_action( 'tribe_events_cost_table', array($this, 'maybeShowMetaUpsell'));
217
+ add_action( 'tribe_events_options_top', array($this, 'maybeShowSettingsUpsell'));
218
+ }
219
+ }
220
+
221
+ /**
222
+ * Add code to tell search engines not to index the grid view of the
223
+ * calendar. Users were seeing 100s of months being indexed.
224
+ */
225
+ function noindex_months() {
226
+ if (get_query_var('eventDisplay') == 'month') {
227
+ echo " <meta name=\"robots\" content=\"noindex, follow\"/>\n";
228
+ }
229
+ }
230
 
231
  /**
232
  * Run on applied action init
253
  }
254
  self::debug(sprintf(__('Initializing Tribe Events on %s','tribe-events-calendar'),date('M, jS \a\t h:m:s a')));
255
  $this->maybeMigrateDatabase();
256
+ $this->maybeSetTECVersion();
257
  }
258
 
259
+ public function maybeMigrateDatabase( ) {
260
+ // future migrations should actually check the db_version
261
+ if( !get_option('tribe_events_db_version') ) {
262
+ global $wpdb;
263
+ // rename option
264
+ update_option(self::OPTIONNAME, get_option('sp_events_calendar_options'));
265
+ delete_option('sp_events_calendar_options');
266
 
267
+ // update post type names
268
+ $wpdb->update($wpdb->posts, array( 'post_type' => self::POSTTYPE ), array( 'post_type' => 'sp_events') );
269
+ $wpdb->update($wpdb->posts, array( 'post_type' => self::VENUE_POST_TYPE ), array( 'post_type' => 'sp_venue') );
270
+ $wpdb->update($wpdb->posts, array( 'post_type' => self::ORGANIZER_POST_TYPE ), array( 'post_type' => 'sp_organizer') );
271
 
272
+ // update taxonomy names
273
+ $wpdb->update($wpdb->term_taxonomy, array( 'taxonomy' => self::TAXONOMY ), array( 'taxonomy' => 'sp_events_cat') );
274
+ update_option('tribe_events_db_version', '2.0.1');
275
+ }
276
+ }
277
+
278
+ public function maybeSetTECVersion() {
279
+ if(!$this->getOption('latest_ecp_version') ) {
280
+ if ( version_compare($this->getOption('latest_ecp_version'), self::VERSION, '<') )
281
+ $this->setOption('latest_ecp_version', self::VERSION);
282
+ }
283
+ }
284
 
285
  /**
286
  * Test PHP and WordPress versions for compatibility
318
  public function add_current_menu_item_class_to_events( $items, $args ) {
319
  foreach($items as $item) {
320
  if($item->url == $this->getLink() ) {
321
+ if ( is_singular( TribeEvents::POSTTYPE )
322
+ || is_singular( TribeEvents::VENUE_POST_TYPE )
323
+ || is_tax(TribeEvents::TAXONOMY)
324
+ || ( ( tribe_is_upcoming()
325
+ || tribe_is_past()
326
+ || tribe_is_month() )
327
+ && isset($wp_query->query_vars['eventDisplay']) ) ) {
328
  $item->classes[] = 'current-menu-item current_page_item';
329
  }
330
  break;
399
  }
400
 
401
  public function addDateToRecurringEvents($permalink, $post) {
402
+ if( function_exists('tribe_is_recurring_event') && $post->post_type == self::POSTTYPE && tribe_is_recurring_event($post->ID) ) {
403
+ if( is_admin() && (!isset($post->EventStartDate) || !$post->EventStartDate) ) {
404
  if( isset($_REQUEST['eventDate'] ) ) {
405
  $post->EventStartDate = $_REQUEST['eventDate'];
406
  } else {
443
  $new_title = sprintf(__("Events this month", 'tribe-events-calendar'),get_query_var('eventDate')) . ' '. $sep . ' ' . $title;
444
  }
445
 
446
+ } elseif(get_query_var('eventDisplay') == 'day') {
447
+ $new_title = sprintf(__("Events for %s", 'tribe-events-calendar'),date("F d, Y",strtotime(get_query_var('eventDate')))) . ' '. $sep . ' ' . $title;
448
+ } elseif(get_query_var('post_type') == self::POSTTYPE && is_single() && $this->getOption('spEventsTemplate') != '' ) {
449
+ global $post;
450
+ $new_title = $post->post_title . ' '. $sep . ' ' . $title;
451
+ } elseif(get_query_var('post_type') == self::VENUE_POST_TYPE && $this->getOption('spEventsTemplate') != '' ) {
452
+ global $post;
453
+ $new_title = sprintf(__("Events at %s", 'tribe-events-calendar'), $post->post_title) . ' '. $sep . ' ' . $title;
454
+ } else {
455
  return $title;
456
  }
457
 
795
  $options[$opt] = $_POST[$opt];
796
  }
797
 
798
+ $options['spEventsCountries'] = stripslashes($options['spEventsCountries']);
799
 
800
  // events slug happiness
801
  $slug = $options['eventsSlug'];
867
  }
868
  }
869
 
870
+ public function setOption($name, $value) {
871
+ $newOption = array();
872
+ $newOption[$name] = $value;
873
+ $options = self::getOptions();
874
+ $this->setOptions( wp_parse_args( $newOption, $options ) );
875
+ }
876
 
877
  // clean up trashed venues
878
  public function cleanupPostVenues($postId) {
947
  } else if ( $query->get('eventDisplay') == 'month' ) {
948
  $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
949
  $this->date = substr_replace( $date, '01', -2 );
950
+ } else if (is_singular() && $query->get('eventDate') ) {
951
  $this->date = $query->get('eventDate');
952
+ } else if (!is_singular()) { // don't set date for single event unless recurring
953
  $this->date = date(TribeDateUtils::DBDATETIMEFORMAT);
954
  }
955
  }
956
 
957
  public function setDisplay() {
958
+ if (is_admin()) {
 
 
959
  $this->displaying = 'admin';
960
+ } else {
961
+ global $wp_query;
962
  $this->displaying = isset( $wp_query->query_vars['eventDisplay'] ) ? $wp_query->query_vars['eventDisplay'] : 'upcoming';
963
+ }
964
  }
965
 
966
+ public function setReccuringEventDates( $post ) {
967
+ if( function_exists('tribe_is_recurring_event') &&
968
+ is_singular(self::POSTTYPE) &&
969
+ tribe_is_recurring_event() &&
970
+ !tribe_is_showing_all() &&
971
+ !tribe_is_upcoming() &&
972
+ !tribe_is_past() &&
973
+ !tribe_is_month() &&
974
+ !tribe_is_by_date() ) {
975
+
976
  $startTime = get_post_meta($post->ID, '_EventStartDate', true);
977
  $startTime = TribeDateUtils::timeOnly($startTime);
978
 
1063
  /**
1064
  * Adds Event specific rewrite rules.
1065
  *
1066
+ * events/ => /?post_type=tribe_events
1067
+ * events/month => /?post_type=tribe_events&eventDisplay=month
1068
+ * events/upcoming => /?post_type=tribe_events&eventDisplay=upcoming
1069
+ * events/past => /?post_type=tribe_events&eventDisplay=past
1070
+ * events/2008-01/#15 => /?post_type=tribe_events&eventDisplay=bydate&eventDate=2008-01-01
1071
+ * events/category/some-events-category => /?post_type=tribe_events&tribe_event_cat=some-events-category
1072
  *
1073
  * @return void
1074
  */
1134
  public function getLink( $type = 'home', $secondary = false, $term = null ) {
1135
  // if permalinks are off or user doesn't want them: ugly.
1136
  if( '' == get_option('permalink_structure') ) {
1137
+ return esc_url($this->uglyLink($type, $secondary));
1138
  }
1139
 
1140
  $eventUrl = trailingslashit( home_url() . '/' . $this->rewriteSlug );
1149
  switch( $type ) {
1150
 
1151
  case 'home':
1152
+ return esc_url($eventUrl);
1153
  case 'month':
1154
  if ( $secondary ) {
1155
+ return esc_url($eventUrl . $secondary);
1156
  }
1157
+ return esc_url($eventUrl . $this->monthSlug . '/');
1158
  case 'upcoming':
1159
+ return esc_url($eventUrl . $this->upcomingSlug . '/');
1160
  case 'past':
1161
+ return esc_url($eventUrl . $this->pastSlug . '/');
1162
  case 'dropdown':
1163
+ return esc_url($eventUrl);
1164
  case 'ical':
1165
  if ( $secondary == 'single' )
1166
  $eventUrl = trailingslashit(get_permalink());
1167
+ return esc_url($eventUrl . 'ical/');
1168
  case 'single':
1169
+ global $post;
1170
  $p = $secondary ? $secondary : $post;
1171
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1172
+ $link = trailingslashit(get_permalink($p));
1173
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1174
+ return esc_url($link);
1175
+ case 'day':
1176
+ $date = strtotime($secondary);
1177
+ $secondary = date('Y-m-d', $date);
1178
+ return esc_url($eventUrl . $secondary);
1179
+ case 'all':
1180
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1181
  $eventUrl = trailingslashit(get_permalink());
1182
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1183
+ return esc_url($eventUrl . 'all/');
1184
  default:
1185
+ return esc_url($eventUrl);
1186
  }
1187
 
1188
  }
1218
  }
1219
  return home_url() . '/?ical';
1220
  case 'single':
1221
+ global $post;
1222
  $post = $secondary ? $secondary : $post;
1223
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1224
+ $link = trailingslashit(get_permalink($post));
1225
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents'), 10, 2 );
1226
+ return $link;
1227
+ case 'all':
1228
  remove_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1229
  $eventUrl = add_query_arg('eventDisplay', 'all', get_permalink() );
1230
  add_filter( 'post_type_link', array($this, 'addDateToRecurringEvents') );
1280
  return "";
1281
  }
1282
 
1283
+ /**
1284
+ * Returns the full address of an event along with HTML markup. It
1285
+ * loads the full-address template to generate the HTML
1286
+ */
1287
  public function fullAddress( $postId=null, $includeVenueName=false ) {
1288
  ob_start();
1289
  load_template( TribeEventsTemplates::getTemplateHierarchy( 'full-address' ), false );
1292
  return $address;
1293
  }
1294
 
1295
+ /**
1296
+ * Returns a string version of the full address of an event
1297
+ */
1298
+ public function fullAddressString( $postId=null ) {
1299
+ $address = '';
1300
+ if( tribe_get_address( $postId ) ) {
1301
+ $address .= tribe_get_address( $postId );
1302
+ }
1303
 
1304
+ if( tribe_get_city( $postId ) ) {
1305
+ if($address != '') $address .= ", ";
1306
+ $address .= tribe_get_city( $postId );
1307
+ }
1308
 
1309
+ if( tribe_get_region( $postId ) ) {
1310
+ if($address != '') $address .= ", ";
1311
+ $address .= tribe_get_region( $postId );
1312
+ }
1313
 
1314
+ if( tribe_get_zip( $postId ) ) {
1315
+ if($address != '') $address .= ", ";
1316
+ $address .= tribe_get_zip( $postId );
1317
+ }
1318
 
1319
+ if( tribe_get_country( $postId ) ) {
1320
+ if($address != '') $address .= ", ";
1321
+ $address .= tribe_get_country( $postId );
1322
+ }
1323
 
1324
+ return $address;
1325
+ }
1326
 
1327
  /**
1328
  * This plugin does not have any deactivation functionality. Any events, categories, options and metadata are
1413
 
1414
  $_POST['Organizer'] = stripslashes_deep($_POST['organizer']);
1415
  $_POST['Venue'] = stripslashes_deep($_POST['venue']);
1416
+
1417
+ if( !empty($_POST['Venue']['VenueID']) )
1418
+ $_POST['Venue'] = array('VenueID' => $_POST['Venue']['VenueID']);
1419
+
1420
+ if( !empty($_POST['Organizer']['OrganizerID']) )
1421
+ $_POST['Organizer'] = array('OrganizerID' => $_POST['Organizer']['OrganizerID']);
1422
 
1423
  TribeEventsAPI::saveEventMeta($postId, $_POST, $post);
1424
  }
1446
  //That would be bad.
1447
  remove_action( 'save_post', array( $this, 'save_venue_data' ), 16, 2 );
1448
 
1449
+ if( !$_POST['post_title'] ) { $_POST['post_title'] = "Unnamed Venue"; }
1450
+ $_POST['venue']['Venue'] = $_POST['post_title'];
1451
  $data = stripslashes_deep($_POST['venue']);
1452
  $venue_id = TribeEventsAPI::updateVenue($postID, $data);
1453
 
1546
  foreach ( $this->metaTags as $tag ) {
1547
  if ( $postId && isset($_GET['post']) && $_GET['post'] ) { //if there is a post AND the post has been saved at least once.
1548
  // Sort the meta to make sure it is correct for recurring events
1549
+ $meta = get_post_meta($postId,$tag);
1550
+ sort($meta);
1551
+ if (isset($meta[0])) { $$tag = $meta[0]; }
1552
  } else {
1553
  $cleaned_tag = str_replace('_Event','',$tag);
1554
  $$tag = class_exists('TribeEventsPro') ? tribe_get_option('eventsDefault'.$cleaned_tag) : "";
1555
  }
1556
  }
1557
 
1558
+ if( isset($_EventOrganizerID) && $_EventOrganizerID ) {
1559
+ foreach($this->organizerTags as $tag) {
1560
  $$tag = get_post_meta($_EventOrganizerID, $tag, true );
1561
  }
1562
+ }
1563
 
1564
+ if(isset($_EventVenueID) && $_EventVenueID){
1565
  foreach($this->venueTags as $tag) {
1566
  $$tag = get_post_meta($_EventVenueID, $tag, true );
1567
  }
1568
 
1569
  }else{
1570
+ $defaults = $this->venueTags;
1571
+ $defaults[] = '_VenueState';
1572
+ $defaults[] = '_VenueProvince';
1573
 
1574
+ foreach ( $defaults as $tag ) {
1575
+ if ( !$postId || !isset($_GET['post']) ) { //if there is a post AND the post has been saved at least once.
1576
+ $cleaned_tag = str_replace('_Venue','',$tag);
 
1577
 
1578
+ if($cleaned_tag == 'Cost')
1579
+ continue;
1580
 
1581
+ ${'_Venue'.$cleaned_tag} = class_exists('TribeEventsPro') ? tribe_get_option('eventsDefault'.$cleaned_tag) : "";
1582
+ }
1583
+ }
1584
 
1585
+ $_VenueStateProvince = -1; // we want to use default values here
 
1586
  }
1587
 
1588
+ $_EventAllDay = isset($_EventAllDay) ? $_EventAllDay : false;
1589
  $isEventAllDay = ( $_EventAllDay == 'yes' || ! TribeDateUtils::dateOnly( $_EventStartDate ) ) ? 'checked="checked"' : ''; // default is all day for new posts
1590
  $startMonthOptions = TribeEventsViewHelpers::getMonthOptions( $_EventStartDate );
1591
  $endMonthOptions = TribeEventsViewHelpers::getMonthOptions( $_EventEndDate );
1610
  $end = TribeDateUtils::dateOnly($_EventEndDate);
1611
 
1612
  $EventEndDate = ( isset($end) && $end ) ? $end : date('Y-m-d');
1613
+ $recStart = isset($_REQUEST['event_start']) ? $_REQUEST['event_start'] : null;
1614
+ $recPost = isset($_REQUEST['post']) ? $_REQUEST['post'] : null;
1615
 
1616
  if ( !empty($_REQUEST['eventDate']) ) {
1617
  $duration = get_post_meta( $postId, '_EventDuration', true );
1621
  include( $this->pluginPath . 'admin-views/events-meta-box.php' );
1622
  }
1623
 
1624
+ public function displayEventVenueInput($postId) {
1625
+ $VenueID = get_post_meta( $postId, '_EventVenueID', true);
1626
+ ?><input type='hidden' name='venue[VenueID]' value='<?php echo esc_attr($VenueID) ?>'/><?php
1627
+ }
1628
 
1629
+ public function displayEventOrganizerInput($postId) {
1630
+ $OrganizerID = get_post_meta( $postId, '_EventOrganizerID', true);
1631
+ ?><input type='hidden' name='organizer[OrganizerID]' value='<?php echo esc_attr($OrganizerID) ?>'/><?php
1632
+ }
1633
+
1634
 
1635
  /**
1636
  * Adds a style chooser to the write post page
1846
  return false;
1847
  }
1848
 
1849
+ public function isOrganizer( $postId = null ) {
1850
+ if ( $postId === null || ! is_numeric( $postId ) ) {
1851
+ global $post;
1852
+ $postId = $post->ID;
1853
+ }
1854
+ if ( get_post_field('post_type', $postId) == self::ORGANIZER_POST_TYPE ) {
1855
+ return true;
1856
+ }
1857
+ return false;
1858
+ }
1859
+
1860
  /**
1861
  ** Get a "previous/next post" link for events. Ordered by start date instead of ID.
1862
  **/
1902
  }
1903
 
1904
  public function addMetaLinks( $links, $file ) {
1905
+ if ( $file == $this->pluginDir . 'the-events-calendar.php' ) {
1906
+ $anchor = __( 'Support', 'tribe-events-calendar' );
1907
+ $links []= '<a href="http://wordpress.org/tags/the-events-calendar?forum_id=10">' . $anchor . '</a>';
1908
 
1909
  $anchor = __( 'View All Add-Ons', 'tribe-events-calendar' );
1910
  $links []= '<a href="'.self::$tribeUrl.'events-calendar/features/add-ons/?ref=tec-plugin">' . $anchor . '</a>';
1954
  }
1955
  }
1956
  }
1957
+
1958
+ public function maybeShowMetaUpsell($postId) {
1959
+ ?><tr class="eventBritePluginPlug">
1960
+ <td colspan="2" class="tribe_sectionheader">
1961
+ <h4><?php _e('Additional Functionality', 'tribe-events-calendar'); ?></h4>
1962
+ </td>
1963
+ </tr>
1964
+ <tr class="eventBritePluginPlug">
1965
+ <td colspan="2">
1966
+ <p><?php _e('Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-events-calendar' ) ?> <?php printf( __('Check out the <a href="%s">available Add-Ons</a>.', 'tribe-events-calendar' ), TribeEvents::$tribeUrl.'shop/?ref=tec-event' ); ?></p>
1967
+ </td>
1968
+ </tr><?php
1969
+ }
1970
+
1971
+ public function maybeShowSettingsUpsell($postId) {
1972
+ ?><p><?php _e('Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-events-calendar' ); ?></p>
1973
+ <p><?php printf(__('Check out the <a href="%s">available Add-Ons</a>.', 'tribe-events-calendar' ), self::$tribeUrl.'?ref=tec-options') ?></p> <?php
1974
+ }
1975
+
1976
+ /**
1977
+ * Helper function for getting Post Id. Accepts null or a post id.
1978
+ *
1979
+ * @param int $postId (optional)
1980
+ * @return int post ID
1981
+ */
1982
+ public static function postIdHelper( $postId = null ) {
1983
+ if ( $postId != null && is_numeric( $postId ) > 0 ) {
1984
+ return (int) $postId;
1985
+ } else {
1986
+ return get_the_ID();
1987
+ }
1988
+ }
1989
+
1990
  } // end TribeEvents class
1991
 
1992
  } // end if !class_exists TribeEvents
lib/tribe-admin-events-list.class.php CHANGED
@@ -31,12 +31,21 @@ if (!class_exists('TribeEventsAdminList')) {
31
 
32
  // event deletion
33
  add_filter( 'get_delete_post_link', array(__CLASS__, 'add_date_to_recurring_event_trash_link'), 10, 2 );
 
34
  }
35
  }
 
 
 
 
 
 
 
 
36
 
37
  // event deletion
38
  public static function add_date_to_recurring_event_trash_link( $link, $postId ) {
39
- if ( function_exists('tribe_is_recurring_event') && is_array(self::$events_list) && tribe_is_recurring_event($postId) ) {
40
  return add_query_arg( array( 'eventDate'=>urlencode( TribeDateUtils::dateOnly( self::$events_list[0]->EventEndDate ) ) ), $link );
41
  }
42
 
@@ -44,7 +53,7 @@ if (!class_exists('TribeEventsAdminList')) {
44
  }
45
 
46
  public static function cache_posts_results($posts) {
47
- if ( get_query_var('post_type') == TribeEvents::POSTTYPE ) {
48
  // sort by start date
49
  self::$events_list = $posts; // cache results so i can get the end dates later
50
  }
@@ -232,7 +241,7 @@ if (!class_exists('TribeEventsAdminList')) {
232
  }
233
 
234
  if ( $column_id == 'start-date' ) {
235
- echo tribe_event_format_date(strtotime(TribeEvents::getRealStartDate( $post_id )), false);
236
  }
237
  if ( $column_id == 'end-date' ) {
238
  echo tribe_get_end_date($post_id, false);
@@ -245,7 +254,7 @@ if (!class_exists('TribeEventsAdminList')) {
245
  }
246
 
247
  // if is a recurring event
248
- if ( function_exists('tribe_is_recurring_event') && tribe_is_recurring_event($eventId) ) {
249
  $link = add_query_arg('eventDate', urlencode( TribeDateUtils::dateOnly( self::$events_list[0]->EventEndDate ) ), $link);
250
  }
251
 
31
 
32
  // event deletion
33
  add_filter( 'get_delete_post_link', array(__CLASS__, 'add_date_to_recurring_event_trash_link'), 10, 2 );
34
+ add_filter( 'post_row_actions', array(__CLASS__, 'add_recurring_event_view_link'));
35
  }
36
  }
37
+ public static function add_recurring_event_view_link($actions) {
38
+ global $post;
39
+ if ( function_exists('tribe_is_recurring_event') && is_array(self::$events_list) && tribe_is_recurring_event(self::$events_list[0]->ID) && isset(self::$events_list[0]) ) {
40
+ $actions['view'] = '<a href="' . tribe_get_event_link(self::$events_list[0]) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $post->post_title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
41
+ }
42
+
43
+ return $actions;
44
+ }
45
 
46
  // event deletion
47
  public static function add_date_to_recurring_event_trash_link( $link, $postId ) {
48
+ if ( function_exists('tribe_is_recurring_event') && is_array(self::$events_list) && tribe_is_recurring_event($postId) && isset(self::$events_list[0]) ) {
49
  return add_query_arg( array( 'eventDate'=>urlencode( TribeDateUtils::dateOnly( self::$events_list[0]->EventEndDate ) ) ), $link );
50
  }
51
 
53
  }
54
 
55
  public static function cache_posts_results($posts) {
56
+ if ( get_query_var('post_type') == TribeEvents::POSTTYPE && sizeof(self::$events_list) <= 0 ) {
57
  // sort by start date
58
  self::$events_list = $posts; // cache results so i can get the end dates later
59
  }
241
  }
242
 
243
  if ( $column_id == 'start-date' ) {
244
+ echo tribe_get_start_date($post_id, false);
245
  }
246
  if ( $column_id == 'end-date' ) {
247
  echo tribe_get_end_date($post_id, false);
254
  }
255
 
256
  // if is a recurring event
257
+ if ( function_exists('tribe_is_recurring_event') && tribe_is_recurring_event($eventId) && isset(self::$events_list[0])) {
258
  $link = add_query_arg('eventDate', urlencode( TribeDateUtils::dateOnly( self::$events_list[0]->EventEndDate ) ), $link);
259
  }
260
 
lib/tribe-event-api.class.php CHANGED
@@ -43,7 +43,7 @@ if (!class_exists('TribeEventsAPI')) {
43
  * Delete an event - all instances if recurring
44
  */
45
  public static function deleteEvent($eventId, $force_delete = false) {
46
- wp_delete_post($eventId, $force_delete);
47
  }
48
 
49
  /**
@@ -52,7 +52,7 @@ if (!class_exists('TribeEventsAPI')) {
52
  public static function saveEventMeta($event_id, $data, $event = null) {
53
  $tribe_ecp = TribeEvents::instance();
54
 
55
- if( $data['EventAllDay'] == 'yes' || !isset($data['EventStartDate']) ) {
56
  $data['EventStartDate'] = TribeDateUtils::beginningOfDay($data['EventStartDate']);
57
  $data['EventEndDate'] = TribeDateUtils::endOfDay($data['EventEndDate']);
58
  } else {
@@ -61,7 +61,7 @@ if (!class_exists('TribeEventsAPI')) {
61
  $data['EventEndDate'] = date( TribeDateUtils::DBDATETIMEFORMAT, strtotime($data['EventEndDate'] . " " . $data['EventEndHour'] . ":" . $data['EventEndMinute'] . ":59 " . $data['EventEndMeridian']) );
62
  }
63
 
64
- if(!$data['EventHideFromUpcoming']) delete_post_meta($event_id, '_EventHideFromUpcoming');
65
 
66
  // sanity check that start date < end date
67
  $startTimestamp = strtotime( $data['EventStartDate'] );
@@ -73,10 +73,14 @@ if (!class_exists('TribeEventsAPI')) {
73
 
74
  if( !isset( $data['EventShowMapLink'] ) ) update_post_meta( $event_id, '_EventShowMapLink', 'false' );
75
  if( !isset( $data['EventShowMap'] ) ) update_post_meta( $event_id, '_EventShowMap', 'false' );
76
-
77
- $data['EventOrganizerID'] = TribeEventsAPI::saveEventOrganizer($data["Organizer"], $event);
78
- $data['EventVenueID'] = TribeEventsAPI::saveEventVenue($data["Venue"], $event);
79
-
 
 
 
 
80
  $tribe_ecp->do_action('tribe_events_event_save', $event_id);
81
 
82
  //update meta fields
@@ -97,37 +101,39 @@ if (!class_exists('TribeEventsAPI')) {
97
  * Saves the event organizer information passed via an event
98
  */
99
  private static function saveEventOrganizer($data, $post=null) {
100
- // return if organizer is already created
101
- if($data['OrganizerID'] && $data['OrganizerID'] != "0")
102
- return $data['OrganizerID'];
103
-
104
- if($data['curOrganizer']) {
105
- return TribeEventsAPI::updateOrganizer($data['curOrganizer'], $data);
106
- } else {
107
- return TribeEventsAPI::createOrganizer($data);
108
- }
 
109
  }
110
 
111
  /**
112
  * Saves the event venue information passed via an event
113
  */
114
  private static function saveEventVenue($data, $post=null) {
115
- // return if Venue is already created
116
- if($data['VenueID'] && $data['VenueID'] != "0")
117
- return $data['VenueID'];
118
-
119
- if($data['curVenue']) {
120
- return TribeEventsAPI::updateVenue($data['curVenue'], $data);
121
- } else {
122
- return TribeEventsAPI::createVenue($data);
123
- }
 
124
  }
125
 
126
  /**
127
  * Creates a new organizer
128
  */
129
  public static function createOrganizer($data) {
130
- if ( $data['Organizer'] ) {
131
  $postdata = array(
132
  'post_title' => $data['Organizer'],
133
  'post_type' => TribeEvents::ORGANIZER_POST_TYPE,
@@ -206,6 +212,14 @@ if (!class_exists('TribeEventsAPI')) {
206
  * Saves venue meta
207
  */
208
  private static function saveVenueMeta($venueId, $data) {
 
 
 
 
 
 
 
 
209
  foreach ($data as $key => $var) {
210
  update_post_meta($venueId, '_Venue'.$key, $var);
211
  }
43
  * Delete an event - all instances if recurring
44
  */
45
  public static function deleteEvent($eventId, $force_delete = false) {
46
+ return wp_delete_post($eventId, $force_delete);
47
  }
48
 
49
  /**
52
  public static function saveEventMeta($event_id, $data, $event = null) {
53
  $tribe_ecp = TribeEvents::instance();
54
 
55
+ if( isset($data['EventAllDay']) && ( $data['EventAllDay'] == 'yes' || $data['EventAllDay'] == true || !isset($data['EventStartDate'] ) ) ) {
56
  $data['EventStartDate'] = TribeDateUtils::beginningOfDay($data['EventStartDate']);
57
  $data['EventEndDate'] = TribeDateUtils::endOfDay($data['EventEndDate']);
58
  } else {
61
  $data['EventEndDate'] = date( TribeDateUtils::DBDATETIMEFORMAT, strtotime($data['EventEndDate'] . " " . $data['EventEndHour'] . ":" . $data['EventEndMinute'] . ":59 " . $data['EventEndMeridian']) );
62
  }
63
 
64
+ if(!isset($data['EventHideFromUpcoming']) || !$data['EventHideFromUpcoming']) delete_post_meta($event_id, '_EventHideFromUpcoming');
65
 
66
  // sanity check that start date < end date
67
  $startTimestamp = strtotime( $data['EventStartDate'] );
73
 
74
  if( !isset( $data['EventShowMapLink'] ) ) update_post_meta( $event_id, '_EventShowMapLink', 'false' );
75
  if( !isset( $data['EventShowMap'] ) ) update_post_meta( $event_id, '_EventShowMap', 'false' );
76
+
77
+ if (isset($data["Organizer"])) {
78
+ $data['EventOrganizerID'] = TribeEventsAPI::saveEventOrganizer($data["Organizer"], $event);
79
+ }
80
+ if (isset($data["Venue"])) {
81
+ $data['EventVenueID'] = TribeEventsAPI::saveEventVenue($data["Venue"], $event);
82
+ }
83
+
84
  $tribe_ecp->do_action('tribe_events_event_save', $event_id);
85
 
86
  //update meta fields
101
  * Saves the event organizer information passed via an event
102
  */
103
  private static function saveEventOrganizer($data, $post=null) {
104
+ if( isset($data['OrganizerID']) && $data['OrganizerID'] > 0) {
105
+ if (count($data) == 1) {
106
+ // Only an ID was passed and we should do nothing.
107
+ return $data['OrganizerID'];
108
+ } else {
109
+ return TribeEventsAPI::updateOrganizer($data['OrganizerID'], $data);
110
+ }
111
+ } else {
112
+ return TribeEventsAPI::createOrganizer($data);
113
+ }
114
  }
115
 
116
  /**
117
  * Saves the event venue information passed via an event
118
  */
119
  private static function saveEventVenue($data, $post=null) {
120
+ if( isset($data['VenueID']) && $data['VenueID'] > 0) {
121
+ if (count($data) == 1) {
122
+ // Only an ID was passed and we should do nothing.
123
+ return $data['VenueID'];
124
+ } else {
125
+ return TribeEventsAPI::updateVenue($data['VenueID'], $data);
126
+ }
127
+ } else {
128
+ return TribeEventsAPI::createVenue($data);
129
+ }
130
  }
131
 
132
  /**
133
  * Creates a new organizer
134
  */
135
  public static function createOrganizer($data) {
136
+ if ( isset($data['Organizer']) ) {
137
  $postdata = array(
138
  'post_title' => $data['Organizer'],
139
  'post_type' => TribeEvents::ORGANIZER_POST_TYPE,
212
  * Saves venue meta
213
  */
214
  private static function saveVenueMeta($venueId, $data) {
215
+ // TODO: We should probably do away with 'StateProvince' and stick to 'State' and 'Province'.
216
+ if (!isset($data['StateProvince'])) {
217
+ if (isset($data['State'])) {
218
+ $data['StateProvince'] = $data['State'];
219
+ } else if(isset($data['Province'])) {
220
+ $data['StateProvince'] = $data['Province'];
221
+ }
222
+ }
223
  foreach ($data as $key => $var) {
224
  update_post_meta($venueId, '_Venue'.$key, $var);
225
  }
lib/tribe-event-query.class.php CHANGED
@@ -83,7 +83,13 @@ if (!class_exists('TribeEventsQuery')) {
83
  case "month":
84
  $query = self::setMonthDisplayTypeArgs($query);
85
  }
86
- }
 
 
 
 
 
 
87
 
88
  return $query;
89
  }
83
  case "month":
84
  $query = self::setMonthDisplayTypeArgs($query);
85
  }
86
+ } else if ( is_single() ) {
87
+ $args = &$query->query_vars;
88
+ if( isset($args['eventDate']) ) {
89
+ $args['start_date'] = $args['eventDate'];
90
+ $args['end_date'] = $args['eventDate'];
91
+ }
92
+ }
93
 
94
  return $query;
95
  }
lib/tribe-templates.class.php CHANGED
@@ -41,6 +41,7 @@ if (!class_exists('TribeEventsTemplates')) {
41
  } else {
42
  // we need to ensure that we always enter the loop, whether or not there are any events in the actual query
43
  self::spoofQuery();
 
44
  add_action( 'loop_start', array(__CLASS__, 'setup_ecp_template'));
45
 
46
  $template = locate_template( tribe_get_option('spEventsTemplate', 'default') == 'default' ? 'page.php' : tribe_get_option('spEventsTemplate', 'default') );
@@ -53,6 +54,10 @@ if (!class_exists('TribeEventsTemplates')) {
53
  public static function wpHeadFinished() {
54
  self::$throughHead = true;
55
  }
 
 
 
 
56
 
57
  public static function setup_ecp_template($query) {
58
  if( self::is_main_loop($query) && self::$throughHead) {
41
  } else {
42
  // we need to ensure that we always enter the loop, whether or not there are any events in the actual query
43
  self::spoofQuery();
44
+ add_filter( 'wp_title', array(__CLASS__, 'remove_default_title'), 1);
45
  add_action( 'loop_start', array(__CLASS__, 'setup_ecp_template'));
46
 
47
  $template = locate_template( tribe_get_option('spEventsTemplate', 'default') == 'default' ? 'page.php' : tribe_get_option('spEventsTemplate', 'default') );
54
  public static function wpHeadFinished() {
55
  self::$throughHead = true;
56
  }
57
+
58
+ public static function remove_default_title($title) {
59
+ return '';
60
+ }
61
 
62
  public static function setup_ecp_template($query) {
63
  if( self::is_main_loop($query) && self::$throughHead) {
lib/tribe-the-events-calendar-import.class.php CHANGED
@@ -35,6 +35,15 @@ if (!class_exists('TribeEventsImport')) {
35
  add_action( 'admin_init', array( $this, 'upgradeData' ) );
36
  add_action( 'tribe_events_options_post_form', array( $this, 'adminForm' ) );
37
  add_action( 'admin_notices', array( $this, 'upgradeNotice' ) );
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
  public function adminForm() {
@@ -185,6 +194,7 @@ if (!class_exists('TribeEventsImport')) {
185
  'meta_key' => '_EventStartDate',
186
  'category_name' => 'Events'
187
  ));
 
188
  if (count($query->posts)) {
189
  TribeEvents::debug( __( 'Install has 1 or more legacy event!', 'tribe-events-calendar' ), false, 'warning' );
190
  }
35
  add_action( 'admin_init', array( $this, 'upgradeData' ) );
36
  add_action( 'tribe_events_options_post_form', array( $this, 'adminForm' ) );
37
  add_action( 'admin_notices', array( $this, 'upgradeNotice' ) );
38
+ add_action( 'admin_notices', array( $this, 'promptUpgrade') );
39
+ }
40
+
41
+ public function promptUpgrade() {
42
+ if ( self::hasLegacyEvents() ) {
43
+ echo '<div class="error"><p>' .
44
+ __('Welcome to Events 2.0! This is a HUGE upgrade from 1.6.5. Please make sure you have backed up before proceeding any further. You can easily <a href=" http://wordpress.org/extend/plugins/the-events-calendar/download/">revert to an old version</a> if you want to backup first. This upgrade includes two major steps, <a href="options-general.php?page=tribe-events-calendar">migrating data</a> & updating your templates as necessary. There have been significant changes to the template tags and functions. Check out our <a href="http://tri.be/migrating-from-events-calendar-1-6-5-to-2-0">walkthrough on the upgrade</a> before proceeding and check out the FAQ & Knowledge base from the <a href="http://tri.be/support/">support page</a>.<br/><br/> You have events that need to be migrated. Please visit the bottom of the <a href="options-general.php?page=tribe-events-calendar">settings page</a> to perform the migration.', 'tribe-events-calendar') .
45
+ '</p></div>';
46
+ }
47
  }
48
 
49
  public function adminForm() {
194
  'meta_key' => '_EventStartDate',
195
  'category_name' => 'Events'
196
  ));
197
+
198
  if (count($query->posts)) {
199
  TribeEvents::debug( __( 'Install has 1 or more legacy event!', 'tribe-events-calendar' ), false, 'warning' );
200
  }
lib/tribe-view-helpers.class.php CHANGED
@@ -11,7 +11,7 @@ if (!class_exists('TribeEventsViewHelpers')) {
11
  public static function constructCountries( $postId = '', $useDefault = true ) {
12
  $tribe_ecp = TribeEvents::instance();
13
 
14
- if(sp_get_option('spEventsCountries') != ''){
15
  $countries = array(
16
  "" => __("Select a Country:", 'tribe-events-calendar')
17
  );
@@ -359,7 +359,7 @@ if (!class_exists('TribeEventsViewHelpers')) {
359
  $options = '';
360
 
361
  if (empty($date)) {
362
- $hour = ( $isStart ) ? '08' : '05';
363
  } else {
364
  $timestamp = strtotime($date);
365
  $hour = date($h, $timestamp);
@@ -413,7 +413,8 @@ if (!class_exists('TribeEventsViewHelpers')) {
413
  private static function hours() {
414
  $hours = array();
415
  $rangeMax = ( strstr(get_option('time_format', TribeDateUtils::TIMEFORMAT), 'H') ) ? 23 : 12;
416
- foreach (range(1, $rangeMax) as $hour) {
 
417
  if ($hour < 10) {
418
  $hour = "0" . $hour;
419
  }
11
  public static function constructCountries( $postId = '', $useDefault = true ) {
12
  $tribe_ecp = TribeEvents::instance();
13
 
14
+ if(tribe_get_option('spEventsCountries') != ''){
15
  $countries = array(
16
  "" => __("Select a Country:", 'tribe-events-calendar')
17
  );
359
  $options = '';
360
 
361
  if (empty($date)) {
362
+ $hour = ( $isStart ) ? '08' : (count($hours) == 12 ? '05' : '17');
363
  } else {
364
  $timestamp = strtotime($date);
365
  $hour = date($h, $timestamp);
413
  private static function hours() {
414
  $hours = array();
415
  $rangeMax = ( strstr(get_option('time_format', TribeDateUtils::TIMEFORMAT), 'H') ) ? 23 : 12;
416
+ $rangeStart = $rangeMax > 12 ? 0 : 1;
417
+ foreach (range($rangeStart, $rangeMax) as $hour) {
418
  if ($hour < 10) {
419
  $hour = "0" . $hour;
420
  }
public/advanced-functions/event.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Events Calendar Advanced Functions for the Event Post Type
4
+ *
5
+ * These functions can be used to manipulate Event data. These functions may be useful for integration with other WordPress plugins and extended functionality.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Create an Event
15
+ *
16
+ * $args accepts all the args that can be passed to wp_insert_post().
17
+ * In addition to that, the following args can be passed specifically
18
+ * for the process of creating an Event:
19
+ *
20
+ * - EventStartDate date string (required) - Start date of the Event.
21
+ * - EventEndDate date string (required) - End date of the Event.
22
+ * - EventAllDay bool - Set to true if event has no start / end time and should run all day.
23
+ * - EventStartHour string - Event start hour (01 - 12).
24
+ * - EventStartMinute string - Event start minute (01 - 60).
25
+ * - EventStartMeridian string - Event start meridian (am or pm).
26
+ * - EventEndHour string - Event end hour (01 - 12).
27
+ * - EventEndMinute string - Event end minute (01 - 60).
28
+ * - EventEndMeridian string - Event end meridian (am or pm).
29
+ * - EventHideFromUpcoming bool - Set to true to hide this Event from the upcoming list view.
30
+ * - EventShowMapLink bool - Set to true to display a link to the map in the Event view.
31
+ * - EventShowMap bool - Set to true to embed the map in the Event view.
32
+ * - EventCost string - Default cost of the Event.
33
+ * - Venue array - Array of data to create or update an Venue to be associated with the Event. {@link tribe_create_venue}.
34
+ * - Organizer array - Array of data to create or update an Organizer to be associated with the Event. {@link tribe_create_organizer}.
35
+ *
36
+ * Note: If ONLY the 'VenueID'/'OrganizerID' value is set in the 'Venue'/'Organizer' array,
37
+ * then the specified Venue/Organizer will be associated with this Event without attempting
38
+ * to edit the Venue/Organizer. If NO 'VenueID'/'OrganizerID' is passed, but other Venue/Organizer
39
+ * data is passed, then a new Venue/Organizer will be created.
40
+ *
41
+ * @param array $args Elements that make up post to insert.
42
+ * @return int ID of the event that was created. False if insert failed.
43
+ * @link http://codex.wordpress.org/Function_Reference/wp_insert_post
44
+ * @see wp_insert_post()
45
+ * @see tribe_create_venue()
46
+ * @see tribe_create_organizer()
47
+ * @category Event Functions
48
+ * @since 2.0.1
49
+ */
50
+ function tribe_create_event($args) {
51
+ $postId = TribeEventsAPI::createEvent($args);
52
+ return $postId;
53
+ }
54
+
55
+ /**
56
+ * Update an Event
57
+ *
58
+ * @param int $postId ID of the event to be modified.
59
+ * @param array $args Args for updating the post. See {@link tribe_create_event()} for more info.
60
+ * @return int ID of the event that was created. False if update failed.
61
+ * @link http://codex.wordpress.org/Function_Reference/wp_update_post
62
+ * @see wp_update_post()
63
+ * @see tribe_create_event()
64
+ * @category Event Functions
65
+ * @since 2.0.1
66
+ */
67
+ function tribe_update_event($postId, $args) {
68
+ $postId = TribeEventsAPI::updateEvent($postId, $args);
69
+ return $postId;
70
+ }
71
+
72
+ /**
73
+ * Delete an Event
74
+ *
75
+ * @param int $postId ID of the event to be deleted.
76
+ * @param bool $force_delete Whether to bypass trash and force deletion. Defaults to false.
77
+ * @return bool false if delete failed.
78
+ * @link http://codex.wordpress.org/Function_Reference/wp_delete_post
79
+ * @see wp_delete_post()
80
+ * @category Event Functions
81
+ * @since 2.0.1
82
+ */
83
+ function tribe_delete_event($postId, $force_delete = false) {
84
+ $success = TribeEventsAPI::deleteEvent($postId, $args);
85
+ return $success;
86
+ }
87
+
88
+ }
89
+ ?>
public/advanced-functions/organizer.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Events Calendar Advanced Functions for the Organizer Post Type
4
+ *
5
+ * These functions can be used to manipulate Organizer data. These functions may be useful for integration with other WordPress plugins and extended functionality.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Create an Organizer
15
+ *
16
+ * $args accepts all the args that can be passed to wp_insert_post().
17
+ * In addition to that, the following args can be passed specifically
18
+ * for the process of creating an Organizer:
19
+ *
20
+ * - Organizer string - Title of the Organizer. (required)
21
+ * - Email string - Email address of the Organizer.
22
+ * - Website string - URL of the Organizer.
23
+ * - Phone string - Phone number for the Organizer.
24
+ *
25
+ * @param array $args Elements that make up post to insert.
26
+ * @return int ID of the Organizer that was created. False if insert failed.
27
+ * @link http://codex.wordpress.org/Function_Reference/wp_insert_post
28
+ * @see wp_insert_post()
29
+ * @category Organizer Functions
30
+ * @since 2.0.1
31
+ */
32
+ function tribe_create_organizer($args) {
33
+ $postId = TribeEventsAPI::createOrganizer($args);
34
+ return $postId;
35
+ }
36
+
37
+ /**
38
+ * Update an Organizer
39
+ *
40
+ * @param int $postId ID of the Organizer to be modified.
41
+ * @param array $args Args for updating the post. See {@link tribe_create_organizer()} for more info.
42
+ * @return int ID of the Organizer that was created. False if update failed.
43
+ * @link http://codex.wordpress.org/Function_Reference/wp_update_post
44
+ * @see wp_update_post()
45
+ * @see tribe_create_organizer()
46
+ * @category Organizer Functions
47
+ * @since 2.0.1
48
+ */
49
+ function tribe_update_organizer($postId, $args) {
50
+ $postId = TribeEventsAPI::updateOrganizer($postId, $args);
51
+ return $postId;
52
+ }
53
+
54
+ /**
55
+ * Delete an Organizer
56
+ *
57
+ * @param int $postId ID of the Organizer to be deleted.
58
+ * @param bool $force_delete Whether to bypass trash and force deletion. Defaults to false.
59
+ * @return bool false if delete failed.
60
+ * @link http://codex.wordpress.org/Function_Reference/wp_delete_post
61
+ * @see wp_delete_post()
62
+ * @category Organizer Functions
63
+ * @since 2.0.1
64
+ */
65
+ function tribe_delete_organizer($postId, $force_delete = false) {
66
+ $success = TribeEventsAPI::deleteOrganizer($postId, $args);
67
+ return $success;
68
+ }
69
+
70
+ }
71
+ ?>
public/advanced-functions/venue.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Events Calendar Advanced Functions for the Venue Post Type
4
+ *
5
+ * These functions can be used to manipulate Venue data. These functions may be useful for integration with other WordPress plugins and extended functionality.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Create a Venue
15
+ *
16
+ * $args accepts all the args that can be passed to wp_insert_post().
17
+ * In addition to that, the following args can be passed specifically
18
+ * for the process of creating a Venue:
19
+ *
20
+ * - Venue string - Title of the Venue. (required)
21
+ * - Country string - Country code for the Venue country.
22
+ * - Address string - Street address of the Venue.
23
+ * - City string - City of the Venue.
24
+ * - State string - Two letter state abbreviation.
25
+ * - Province string - Province of the Venue.
26
+ * - Zip string - Zip code of the Venue.
27
+ * - Phone string - Phone number for the Venue.
28
+ *
29
+ * @param array $args Elements that make up post to insert.
30
+ * @return int ID of the Venue that was created. False if insert failed.
31
+ * @link http://codex.wordpress.org/Function_Reference/wp_insert_post
32
+ * @see wp_insert_post()
33
+ * @category Venue Functions
34
+ * @since 2.0.1
35
+ */
36
+ function tribe_create_venue($args) {
37
+ $postId = TribeEventsAPI::createEvent($args);
38
+ return $postId;
39
+ }
40
+
41
+ /**
42
+ * Update a Venue
43
+ *
44
+ * @param int $postId ID of the Venue to be modified.
45
+ * @param array $args Args for updating the post. See {@link tribe_create_venue()} for more info.
46
+ * @return int ID of the Venue that was created. False if update failed.
47
+ * @link http://codex.wordpress.org/Function_Reference/wp_update_post
48
+ * @see wp_update_post()
49
+ * @see tribe_create_venue()
50
+ * @category Venue Functions
51
+ * @since 2.0.1
52
+ */
53
+ function tribe_update_venue($postId, $args) {
54
+ $postId = TribeEventsAPI::updateEvent($postId, $args);
55
+ return $postId;
56
+ }
57
+
58
+ /**
59
+ * Delete a Venue
60
+ *
61
+ * @param int $postId ID of the Venue to be deleted.
62
+ * @param bool $force_delete Whether to bypass trash and force deletion. Defaults to false.
63
+ * @return bool false if delete failed.
64
+ * @link http://codex.wordpress.org/Function_Reference/wp_delete_post
65
+ * @see wp_delete_post()
66
+ * @category Venue Functions
67
+ * @since 2.0.1
68
+ */
69
+ function tribe_delete_venue($postId, $force_delete = false) {
70
+ $success = TribeEventsAPI::deleteVenue($postId, $args);
71
+ return $success;
72
+ }
73
+
74
+ }
75
+ ?>
public/template-tags/calendar.php ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Calendar Grid Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Calendar Grid (Display)
15
+ *
16
+ * Display the full size grid calendar table
17
+ *
18
+ * @uses load_template()
19
+ * @since 2.0
20
+ */
21
+ function tribe_calendar_grid() {
22
+ set_query_var( 'eventDisplay', 'bydate' );
23
+ load_template( TribeEventsTemplates::getTemplateHierarchy('table') );
24
+ }
25
+
26
+ /**
27
+ * Calendar Mini Grid (Display)
28
+ *
29
+ * Displays the mini grid calendar table (usually in a widget)
30
+ *
31
+ * @uses load_template()
32
+ * @since 2.0
33
+ */
34
+ function tribe_calendar_mini_grid() {
35
+ global $wp_query;
36
+ $old_query = $wp_query;
37
+
38
+ $wp_query = NEW WP_Query('post_type='.TribeEvents::POSTTYPE);
39
+ set_query_var( 'eventDisplay', 'bydate' );
40
+ load_template( TribeEventsTemplates::getTemplateHierarchy('table-mini') );
41
+
42
+ $wp_query = $old_query;
43
+ }
44
+
45
+ /**
46
+ * Grid View Test
47
+ *
48
+ * Returns true if the query is set for grid display (as opposed to Upcoming / Past)
49
+ *
50
+ * @return bool
51
+ * @since 2.0
52
+ */
53
+ function tribe_is_month() {
54
+ $tribe_ecp = TribeEvents::instance();
55
+ return ( $tribe_ecp->displaying == 'month' ) ? true : false;
56
+ }
57
+
58
+ /**
59
+ * Sort Events by Day
60
+ *
61
+ * Maps events to days of the month.
62
+ *
63
+ * @param array $results Array of events from tribe_get_events()
64
+ * @param string $date
65
+ * @return array Days of the month with events as values
66
+ * @since 2.0
67
+ */
68
+ function tribe_sort_by_month( $results, $date ) {
69
+ $cutoff_time = tribe_get_option('multiDayCutoff', '12:00');
70
+
71
+ if( preg_match( '/(\d{4})-(\d{2})/', $date, $matches ) ) {
72
+ $queryYear = $matches[1];
73
+ $queryMonth = $matches[2];
74
+ } else {
75
+ return false; // second argument not a date we recognize
76
+ }
77
+ $monthView = array();
78
+ for( $i = 1; $i <= 31; $i++ ) {
79
+ $monthView[$i] = array();
80
+ }
81
+
82
+
83
+ foreach ( $results as $event ) {
84
+ $started = false;
85
+
86
+ list( $startYear, $startMonth, $startDay ) = explode( '-', $event->EventStartDate );
87
+ list( $endYear, $endMonth, $endDay ) = explode( '-', $event->EventEndDate );
88
+
89
+ list( $startDay, $garbage ) = explode( ' ', $startDay );
90
+
91
+ list( $endDay, $garbage ) = explode( ' ', $endDay );
92
+ for( $i = 1; $i <= 31 ; $i++ ) {
93
+ $curDate = strtotime( $queryYear.'-'.$queryMonth.'-'.$i );
94
+
95
+ if ( ( $i == $startDay && $startMonth == $queryMonth ) || strtotime( $startYear.'-'.$startMonth ) < strtotime( $queryYear.'-'.$queryMonth ) ) {
96
+ $started = true;
97
+ }
98
+
99
+ // if last day of multiday event
100
+ if( !tribe_get_all_day() && tribe_is_multiday($event->ID) && date('Y-m-d', $curDate) == date('Y-m-d', strtotime($event->EventEndDate)) ) {
101
+ $endTime = strtotime(date('Y-m-d', $curDate) . date('h:i A', strtotime($event->EventEndDate)));
102
+ $cutoffTime = strtotime(date('Y-m-d', $curDate) . $cutoff_time . "AM");
103
+
104
+ // if end time is before cutoff, then don't show
105
+ if ($endTime <= $cutoffTime) {
106
+ $started = false;
107
+ }
108
+ }
109
+
110
+ if ( $started ) {
111
+ $monthView[$i][] = $event;
112
+ }
113
+ if( $i == $endDay && $endMonth == $queryMonth ) {
114
+ continue 2;
115
+ }
116
+ }
117
+ }
118
+
119
+ return $monthView;
120
+ }
121
+
122
+ /**
123
+ * Drop Menu Post Link
124
+ *
125
+ * Returns the URL where the jump menu sends the month/year request.
126
+ *
127
+ * @return string URL
128
+ * @since 2.0
129
+ */
130
+ function tribe_get_dropdown_link_prefix() {
131
+ $tribe_ecp = TribeEvents::instance();
132
+ $output = $tribe_ecp->getLink('dropdown');
133
+ return $output;
134
+ }
135
+
136
+ /**
137
+ * Month / Year Dropdown Selector (Display)
138
+ *
139
+ * Display the year & month dropdowns. JavaScript in the resources/events-admin.js file will autosubmit on the change event.
140
+ *
141
+ * @param string $prefix A prefix to add to the ID of the calendar elements. This allows you to reuse the calendar on the same page.
142
+ * @since 2.0
143
+ */
144
+ function tribe_month_year_dropdowns( $prefix = '' ) {
145
+ global $wp_query;
146
+
147
+ if ( isset ( $wp_query->query_vars['eventDate'] ) ) {
148
+ $date = $wp_query->query_vars['eventDate'] . "-01";
149
+ } else {
150
+ $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
151
+ }
152
+ $monthOptions = TribeEventsViewHelpers::getMonthOptions( $date );
153
+ $yearOptions = TribeEventsViewHelpers::getYearOptions( $date );
154
+ include(TribeEvents::instance()->pluginPath.'admin-views/datepicker.php');
155
+ }
156
+
157
+ /**
158
+ * Link to This Month
159
+ *
160
+ * Returns a link to the currently displayed month (if in "jump to month" mode)
161
+ *
162
+ * @return string URL
163
+ * @since 2.0
164
+ */
165
+ function tribe_get_this_month_link() {
166
+ $tribe_ecp = TribeEvents::instance();
167
+ if ( $tribe_ecp->displaying == 'month' ) {
168
+ $output = $tribe_ecp->getLink( 'month', $tribe_ecp->date );
169
+ return $output;
170
+ }
171
+ return false;
172
+ }
173
+
174
+ /**
175
+ * Gridview Date
176
+ *
177
+ * Get current calendar gridview date
178
+ *
179
+ * @return string Date currently queried
180
+ * @since 2.0
181
+ */
182
+ function tribe_get_month_view_date() {
183
+ global $wp_query;
184
+
185
+ if ( isset ( $wp_query->query_vars['eventDate'] ) ) {
186
+ $date = $wp_query->query_vars['eventDate'] . "-01";
187
+ } else {
188
+ $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
189
+ }
190
+
191
+ return $date;
192
+ }
193
+
194
+ /**
195
+ * Link to Previous Month
196
+ *
197
+ * Returns a link to the previous month's events page. Used in the grid view.
198
+ *
199
+ * @return string URL
200
+ * @since 2.0
201
+ */
202
+ function tribe_get_previous_month_link() {
203
+ global $wp_query;
204
+ $tribe_ecp = TribeEvents::instance();
205
+ $output = $tribe_ecp->getLink( 'month', $tribe_ecp->previousMonth( tribe_get_month_view_date() ));
206
+ return $output;
207
+ }
208
+
209
+ /**
210
+ * Previous Month Text
211
+ *
212
+ * Returns a textual description of the previous month
213
+ *
214
+ * @return string Name of the previous month.
215
+ * @since 2.0
216
+ */
217
+ function tribe_get_previous_month_text() {
218
+ $tribe_ecp = TribeEvents::instance();
219
+ return $tribe_ecp->getDateString( $tribe_ecp->previousMonth( tribe_get_month_view_date() ) );
220
+ }
221
+
222
+ /**
223
+ * Link to Next Month
224
+ *
225
+ * Returns a link to the next month's events page. Used in the grid view.
226
+ *
227
+ * @return string URL
228
+ * @since 2.0
229
+ */
230
+ function tribe_get_next_month_link() {
231
+ $tribe_ecp = TribeEvents::instance();
232
+ $output = $tribe_ecp->getLink( 'month', $tribe_ecp->nextMonth(tribe_get_month_view_date() ));
233
+ return $output;
234
+ }
235
+
236
+ /**
237
+ * Current Month Text
238
+ *
239
+ * Returns a textual description of the current month
240
+ *
241
+ * @return string Name of the current month.
242
+ * @since 2.0
243
+ */
244
+ function tribe_get_current_month_text( ) {
245
+ return date( 'F', strtotime( tribe_get_month_view_date() ) );
246
+ }
247
+
248
+ /**
249
+ * Next Month Text
250
+ *
251
+ * Returns a textual description of the next month
252
+ *
253
+ * @return string Name of the next month.
254
+ * @since 2.0
255
+ */
256
+ function tribe_get_next_month_text() {
257
+ $tribe_ecp = TribeEvents::instance();
258
+ return $tribe_ecp->getDateString( $tribe_ecp->nextMonth( tribe_get_month_view_date() ) );
259
+ }
260
+
261
+ /**
262
+ * Current Month Date
263
+ *
264
+ * Returns a formatted date string of the currently displayed month (in "jump to month" mode)
265
+ *
266
+ * @return string Name of the displayed month.
267
+ * @since 2.0
268
+ */
269
+ function tribe_get_displayed_month() {
270
+ $tribe_ecp = TribeEvents::instance();
271
+ if ( $tribe_ecp->displaying == 'month' ) {
272
+ return $tribe_ecp->getDateString( $tribe_ecp->date );
273
+ }
274
+ return " ";
275
+ }
276
+
277
+ }
278
+ ?>
public/template-tags/date.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Date Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Start Date
15
+ *
16
+ * Returns the event start date and time
17
+ *
18
+ * @param int $postId (optional) This only works for non recurring events
19
+ * @param bool $displayTime If true shows date and time, if false only shows date
20
+ * @param string $dateFormat Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
21
+ * @return string Date
22
+ * @todo support $postId for recurring events.
23
+ * @since 2.0
24
+ */
25
+ function tribe_get_start_date( $postId = null, $displayTime = true, $dateFormat = '' ) {
26
+ $postId = TribeEvents::postIdHelper( $postId );
27
+ if (!$postId || ( function_exists('tribe_is_recurring_event') && tribe_is_recurring_event( $postId ) ) ) {
28
+ global $post;
29
+ } else {
30
+ $post = get_post($postId);
31
+ }
32
+
33
+ if( tribe_get_all_day( $postId ) )
34
+ $displayTime = false;
35
+
36
+ $date = strtotime( $post->EventStartDate ? $post->EventStartDate : tribe_get_event_meta( $postId, '_EventStartDate', true ));
37
+
38
+ return tribe_event_format_date($date, $displayTime, $dateFormat );
39
+ }
40
+
41
+ /**
42
+ * End Date
43
+ *
44
+ * Returns the event end date
45
+ *
46
+ * @param int $postId (optional) this only works for non recurring events
47
+ * @param bool $displayTime If true shows date and time, if false only shows date
48
+ * @param string $dateFormat Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
49
+ * @return string Date
50
+ * @todo support $postId for recurring events.
51
+ * @since 2.0
52
+ */
53
+ function tribe_get_end_date( $postId = null, $displayTime = 'true', $dateFormat = '' ) {
54
+ $postId = TribeEvents::postIdHelper( $postId );
55
+ if (!$postId || ( function_exists('tribe_is_recurring_event') && tribe_is_recurring_event( $postId ) ) ) {
56
+ global $post;
57
+ } else {
58
+ $post = get_post($postId);
59
+ }
60
+
61
+ if( tribe_get_all_day( $postId ) )
62
+ $displayTime = false;
63
+
64
+ $date = strtotime( $post->EventEndDate ? $post->EventEndDate : tribe_get_event_meta( $postId, '_EventEndDate', true ));
65
+
66
+ return tribe_event_format_date($date, $displayTime, $dateFormat );
67
+ }
68
+
69
+ /**
70
+ * Formatted Date
71
+ *
72
+ * Returns formatted date
73
+ *
74
+ * @param string $date
75
+ * @param bool $displayTime If true shows date and time, if false only shows date
76
+ * @param string $dateFormat Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
77
+ * @return string
78
+ * @since 2.0
79
+ */
80
+ function tribe_event_format_date($date, $displayTime = true, $dateFormat = '') {
81
+ $tribe_ecp = TribeEvents::instance();
82
+
83
+ if( $dateFormat ) $format = $dateFormat;
84
+ else $format = get_option( 'date_format', TribeDateUtils::DATEONLYFORMAT );
85
+
86
+ if ( $displayTime )
87
+ $format = $tribe_ecp->getTimeFormat( $format );
88
+
89
+ $shortMonthNames = ( strstr( $format, 'M' ) ) ? true : false;
90
+ $date = date_i18n ( $format, $date );
91
+ return str_replace( array_keys($tribe_ecp->monthNames( $shortMonthNames )), $tribe_ecp->monthNames( $shortMonthNames ), $date);
92
+ }
93
+
94
+ }
95
+ ?>
public/template-tags/general.php ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Events Calendar Template Tags
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Get Options
15
+ *
16
+ * Retrieve specific key from options array, optionally provide a default return value
17
+ *
18
+ * @param string $optionName Name of the option to retrieve.
19
+ * @param string $default Value to return if no such option is found.
20
+ * @return mixed Value of the option if found.
21
+ * @todo Abstract this function out of template tags or otherwise secure it from other namespace conflicts.
22
+ * @since 2.0
23
+ */
24
+ function tribe_get_option($optionName, $default = '') {
25
+ $tribe_ecp = TribeEvents::instance();
26
+ return $tribe_ecp->getOption($optionName, $default);
27
+ }
28
+
29
+ /**
30
+ * Event Type Test
31
+ *
32
+ * Checks type of $postId to determine if it is an Event
33
+ *
34
+ * @param int $postId (optional)
35
+ * @return bool true if this post is an Event post type
36
+ * @since 2.0
37
+ */
38
+ function tribe_is_event( $postId = null ) {
39
+ return TribeEvents::instance()->isEvent($postId);
40
+ }
41
+
42
+ /**
43
+ * Get Event
44
+ *
45
+ * Queries the events using WordPress get_posts() by setting the post type and sorting by event date.
46
+ *
47
+ * @param array $args query vars with added defaults including post_type of events, sorted (orderby) by event date (order) ascending
48
+ * @return array List of posts.
49
+ * @link http://codex.wordpress.org/Template_Tags/get_posts
50
+ * @link http://codex.wordpress.org/Function_Reference/get_post
51
+ * @uses get_posts()
52
+ * @see get_posts()
53
+ * @since 2.0
54
+ */
55
+ function tribe_get_events( $args = '' ) {
56
+ $tribe_ecp = TribeEvents::instance();
57
+ return $tribe_ecp->getEvents( $args );
58
+ }
59
+
60
+ /**
61
+ * All Day Event Test
62
+ *
63
+ * Returns true if the event is an all day event
64
+ *
65
+ * @param int $postId (optional)
66
+ * @return bool
67
+ * @since 2.0
68
+ */
69
+ function tribe_get_all_day( $postId = null ) {
70
+ $postId = TribeEvents::postIdHelper( $postId );
71
+ return !! tribe_get_event_meta( $postId, '_EventAllDay', true );
72
+ }
73
+
74
+ /**
75
+ * Multi-day Event Test
76
+ *
77
+ * Returns true if the event spans multiple days
78
+ *
79
+ * @param int $postId (optional)
80
+ * @return bool true if event spans multiple days
81
+ * @since 2.0
82
+ */
83
+ function tribe_is_multiday( $postId = null) {
84
+ $postId = TribeEvents::postIdHelper( $postId );
85
+ $start = (array)tribe_get_event_meta( $postId, '_EventStartDate', false );
86
+ sort($start);
87
+ $start = strtotime($start[0]);
88
+ $end = strtotime(tribe_get_event_meta( $postId, '_EventEndDate', true ));
89
+ return date('d-m-Y', $start) != date('d-m-Y', $end);
90
+ }
91
+
92
+ /**
93
+ * Event Categories (Display)
94
+ *
95
+ * Display the event categories
96
+ *
97
+ * @param string $label
98
+ * @param string $separator
99
+ * @uses the_terms()
100
+ * @since 2.0
101
+ */
102
+ function tribe_meta_event_cats( $label=null, $separator=', ') {
103
+ if( !$label ) { $label = __('Category:', 'tribe-events-calendar'); }
104
+
105
+ $tribe_ecp = TribeEvents::instance();
106
+ the_terms( get_the_ID(), $tribe_ecp->get_event_taxonomy(), '<dt>'.$label.'</dt><dd>', $separator, '</dd>' );
107
+ }
108
+
109
+ /**
110
+ * Event Post Meta
111
+ *
112
+ * Get event post meta.
113
+ *
114
+ * @param int $postId (optional)
115
+ * @param string $meta name of the meta_key
116
+ * @param bool $single determines if the results should be a single item or an array of items.
117
+ * @return mixed meta value(s)
118
+ * @since 2.0
119
+ */
120
+ function tribe_get_event_meta( $postId = null, $meta = false, $single = true ){
121
+ $postId = TribeEvents::postIdHelper( $postId );
122
+ $tribe_ecp = TribeEvents::instance();
123
+ return $tribe_ecp->getEventMeta( $postId, $meta, $single );
124
+ }
125
+
126
+ /**
127
+ * Event Category Name
128
+ *
129
+ * Return the current event category name based the url.
130
+ *
131
+ * @return string Name of the Event Category
132
+ * @since 2.0
133
+ */
134
+ function tribe_meta_event_category_name() {
135
+ $tribe_ecp = TribeEvents::instance();
136
+ $current_cat = get_query_var('tribe_events_cat');
137
+ if($current_cat){
138
+ $term_info = get_term_by('slug',$current_cat,$tribe_ecp->get_event_taxonomy());
139
+ return $term_info->name;
140
+ }
141
+ }
142
+
143
+ /**
144
+ * Current Template
145
+ *
146
+ * Get the current page template that we are on
147
+ *
148
+ * @todo Update the function name to ensure there are no namespace conflicts.
149
+ * @return string Page template
150
+ * @since 2.0
151
+ */
152
+ function tribe_get_current_template() {
153
+ return TribeEventsTemplates::get_current_page_template();
154
+ }
155
+
156
+ /**
157
+ * Venue Type Test
158
+ *
159
+ * Checks type of $postId to determine if it is a Venue
160
+ *
161
+ * @param int $postId (optional)
162
+ * @return bool True if post type id Venue
163
+ * @since 2.0
164
+ */
165
+ function tribe_is_venue( $postId = null ) {
166
+ $tribe_ecp = TribeEvents::instance();
167
+ return $tribe_ecp->isVenue($postId);
168
+ }
169
+
170
+ /**
171
+ * HTML Before Event (Display)
172
+ *
173
+ * Display HTML to output before the event template
174
+ *
175
+ * @since 2.0
176
+ */
177
+ function tribe_events_before_html() {
178
+ echo stripslashes(tribe_get_option('spEventsBeforeHTML'));
179
+ }
180
+
181
+ /**
182
+ * HTML After Event (Display)
183
+ *
184
+ * Display HTML to output after the event template
185
+ *
186
+ * @since 2.0
187
+ */
188
+ function tribe_events_after_html() {
189
+ echo stripslashes(tribe_get_option('spEventsAfterHTML'));
190
+ }
191
+
192
+ /**
193
+ * Event Cost
194
+ *
195
+ * If EventBrite plugin is active
196
+ * - If the event is registered in eventbrite, and has one ticket. Return the cost of that ticket.
197
+ * - If the event is registered in eventbrite, and there are many tickets, return "Varies"
198
+ * - If the event is not registered in eventbrite, and there is meta, return that.
199
+ * - If the event is not registered in eventbrite, and there is no meta, return ""
200
+ *
201
+ * @param int $postId (optional)
202
+ * @return string Cost of the event.
203
+ */
204
+ function tribe_get_cost( $postId = null) {
205
+ $tribe_ecp = TribeEvents::instance();
206
+ $postId = TribeEvents::postIdHelper( $postId );
207
+ if( class_exists( 'Eventbrite_for_TribeEvents' ) ) {
208
+ global $spEventBrite;
209
+ $returned = $spEventBrite->tribe_get_cost($postId);
210
+ if($returned) {
211
+ return esc_html($returned);
212
+ }
213
+ }
214
+
215
+ $cost = tribe_get_event_meta( $postId, '_EventCost', true );
216
+
217
+ if($cost === ''){
218
+ $cost = '';
219
+ }elseif($cost == '0'){
220
+ $cost = __( "Free", 'tribe-events-calendar' );
221
+ }else{
222
+ $cost = esc_html($cost);
223
+ }
224
+
225
+ return apply_filters( 'tribe_get_cost', $cost );
226
+ }
227
+
228
+ }
229
+ ?>
public/template-tags/google-map.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Google Maps Integration
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Google Map Link
15
+ *
16
+ * Returns a url to google maps for the given event
17
+ *
18
+ * @param string $postId
19
+ * @return string A fully qualified link to http://maps.google.com/ for this event
20
+ * @since 2.0
21
+ */
22
+ function tribe_get_map_link( $postId = null ) {
23
+ $tribe_ecp = TribeEvents::instance();
24
+ $output = esc_url($tribe_ecp->googleMapLink( $postId ));
25
+ return apply_filters( 'tribe_get_map_link', $output );
26
+ }
27
+
28
+ /**
29
+ * Google Map Embed
30
+ *
31
+ * Returns an embedded google maps for an event
32
+ *
33
+ * @param string $postId
34
+ * @param int $width
35
+ * @param int $height
36
+ * @param bool $force_load If true, then load the map even if an address is not provided.
37
+ * @return string An iframe pulling http://maps.google.com/ for this event
38
+ * @since 2.0
39
+ */
40
+ function tribe_get_embedded_map( $postId = null, $width = '', $height = '', $force_load = false ) {
41
+ $postId = TribeEvents::postIdHelper( $postId );
42
+ if ( !tribe_is_venue( $postId ) && !tribe_is_event( $postId ) ) {
43
+ return false;
44
+ }
45
+
46
+ $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
47
+ $locationMetaSuffixes = array( 'address', 'city', 'state', 'province', 'zip', 'country' );
48
+ $toUrlEncode = "";
49
+
50
+ foreach( $locationMetaSuffixes as $val ) {
51
+ $metaVal = call_user_func('tribe_get_'.$val);
52
+ if ( $metaVal )
53
+ $toUrlEncode .= $metaVal . " ";
54
+ }
55
+
56
+ if ( $toUrlEncode )
57
+ $address = $toUrlEncode;
58
+ else
59
+ $address = null;
60
+
61
+
62
+ if (!$height) $height = tribe_get_option('embedGoogleMapsHeight','350');
63
+ if (!$width) $width = tribe_get_option('embedGoogleMapsWidth','100%');
64
+
65
+ if ($address || $force_load) {
66
+ ob_start();
67
+ include(TribeEvents::instance()->pluginPath.'admin-views/event-map.php');
68
+ $google_map = ob_get_contents();
69
+ ob_get_clean();
70
+ return $google_map;
71
+ }
72
+ else return '';
73
+ }
74
+
75
+ /**
76
+ * Google Map Embed Test
77
+ *
78
+ * Check if embed google map is enabled for this event.
79
+ *
80
+ * @param int $postId Id of the post, if none specified, current post is used
81
+ * @return bool True if google map option is set to embed the map
82
+ * @since 2.0
83
+ */
84
+ function tribe_embed_google_map($postId = null) {
85
+ $postId = TribeEvents::postIdHelper( $postId );
86
+ return get_post_meta( get_the_ID(), '_EventShowMap', 1) == 1;
87
+ }
88
+
89
+ /**
90
+ * Google Map Link Test
91
+ *
92
+ * Check if google map link is enabled for this event
93
+ *
94
+ * @param int $postId Id of the post, if none specified, current post is used
95
+ * @return bool True if google map link is set to display the event
96
+ * @since 2.0
97
+ */
98
+ function tribe_show_google_map_link($postId = null) {
99
+ return get_post_meta( get_the_ID(), '_EventShowMapLink', 1) == 1;
100
+ }
101
+
102
+ }
103
+ ?>
public/template-tags/link.php ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Link Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Link Event Day
15
+ *
16
+ * @param string $date
17
+ * @return string URL
18
+ * @since 2.0
19
+ */
20
+ function tribe_get_day_link($date) {
21
+ $tribe_ecp = TribeEvents::instance();
22
+ return $tribe_ecp->getLink('day', $date);
23
+ }
24
+
25
+ /**
26
+ * Link to Previous Event (Display)
27
+ *
28
+ * Displays a link to the previous post by start date for the given event
29
+ *
30
+ * @param string $anchor link text. Use %title% to place the post title in your string.
31
+ * @since 2.0
32
+ */
33
+ function tribe_previous_event_link( $anchor = false ) {
34
+ global $post;
35
+ $tribe_ecp = TribeEvents::instance();
36
+ echo $tribe_ecp->get_event_link($post,'previous',$anchor);
37
+ }
38
+
39
+ /**
40
+ * Link to Next Event (Display)
41
+ *
42
+ * Display a link to the next post by start date for the given event
43
+ *
44
+ * @param string $anchor link text. Use %title% to place the post title in your string.
45
+ * @since 2.0
46
+ */
47
+ function tribe_next_event_link( $anchor = false ) {
48
+ global $post;
49
+ $tribe_ecp = TribeEvents::instance();
50
+ echo $tribe_ecp->get_event_link($post, 'next',$anchor);
51
+ }
52
+
53
+ /**
54
+ * Link to All Events
55
+ *
56
+ * Returns a link to the events URL
57
+ *
58
+ * @return string URL
59
+ * @since 2.0
60
+ */
61
+ function tribe_get_events_link() {
62
+ $tribe_ecp = TribeEvents::instance();
63
+ $output = $tribe_ecp->getLink('home');
64
+ return $output;
65
+ }
66
+
67
+ /**
68
+ * Link to Grid View
69
+ *
70
+ * Returns a link to the general or category calendar grid view
71
+ *
72
+ * @param string $term Optional event category to link to.
73
+ * @return string URL
74
+ * @since 2.0
75
+ */
76
+ function tribe_get_gridview_link($term = null) {
77
+ $tribe_ecp = TribeEvents::instance();
78
+ $output = $tribe_ecp->getLink('month', false, $term);
79
+ return $output;
80
+ }
81
+
82
+ /**
83
+ * Link to List View
84
+ *
85
+ * Returns a link to the general or category upcoming view
86
+ *
87
+ * @param string $term Optional event category to link to.
88
+ * @return string URL
89
+ * @since 2.0
90
+ */
91
+ function tribe_get_listview_link($term = null) {
92
+ $tribe_ecp = TribeEvents::instance();
93
+ $output = $tribe_ecp->getLink('upcoming', false, $term);
94
+ return $output;
95
+ }
96
+
97
+ /**
98
+ * Link to List View (Past)
99
+ *
100
+ * Returns a link to the general or category past view
101
+ *
102
+ * @return string URL
103
+ * @since 2.0
104
+ */
105
+ function tribe_get_listview_past_link() {
106
+ $tribe_ecp = TribeEvents::instance();
107
+ $output = $tribe_ecp->getLink('past');
108
+ return $output;
109
+ }
110
+
111
+ /**
112
+ * Single Event Link (Display)
113
+ *
114
+ * Display link to a single event
115
+ *
116
+ * @param int $postId (optional)
117
+ * @since 2.0
118
+ */
119
+ function tribe_event_link($post = null) {
120
+ // pass in whole post object to retain start date
121
+ echo tribe_get_event_link($post);
122
+ }
123
+
124
+ /**
125
+ * Single Event Link
126
+ *
127
+ * Get link to a single event
128
+ *
129
+ * @param int $postId (optional)
130
+ * @return string
131
+ * @since 2.0
132
+ */
133
+ function tribe_get_event_link($post = null) {
134
+ return apply_filters( 'tribe_get_event_link', TribeEvents::instance()->getLink('single', $post), $post );
135
+ }
136
+
137
+ }
138
+ ?>
public/template-tags/loop.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Loop Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * New Day Test
15
+ *
16
+ * Called inside of the loop, returns true if the current post's meta_value (EventStartDate)
17
+ * is different than the previous post. Will always return true for the first event in the loop.
18
+ *
19
+ * @return bool
20
+ * @since 2.0
21
+ */
22
+ function tribe_is_new_event_day() {
23
+ global $post;
24
+ $tribe_ecp = TribeEvents::instance();
25
+ $retval = false;
26
+ $now = time();
27
+ if(isset($post->EventStartDate)) {
28
+ $postTimestamp = strtotime( $post->EventStartDate, $now );
29
+ $postTimestamp = strtotime( date( TribeDateUtils::DBDATEFORMAT, $postTimestamp ), $now); // strip the time
30
+ if ( $postTimestamp != $tribe_ecp->currentPostTimestamp ) {
31
+ $retval = true;
32
+ }
33
+ $tribe_ecp->currentPostTimestamp = $postTimestamp;
34
+ return $retval;
35
+ } else {
36
+ return true;
37
+ }
38
+ }
39
+
40
+ /**
41
+ * Single Day Test
42
+ *
43
+ * Returns true if the query is set for single day, false otherwise
44
+ *
45
+ * @return bool
46
+ * @since 2.0
47
+ */
48
+ function tribe_is_day() {
49
+ $tribe_ecp = TribeEvents::instance();
50
+ return ($tribe_ecp->displaying == 'day') ? true : false;
51
+ }
52
+
53
+
54
+ /**
55
+ * Past Loop View Test
56
+ *
57
+ * Returns true if the query is set for past events, false otherwise
58
+ *
59
+ * @return bool
60
+ * @since 2.0
61
+ */
62
+ function tribe_is_past() {
63
+ $tribe_ecp = TribeEvents::instance();
64
+ return ($tribe_ecp->displaying == 'past') ? true : false;
65
+ }
66
+
67
+ /**
68
+ * Upcoming Loop View Test
69
+ *
70
+ * Returns true if the query is set for upcoming events, false otherwise
71
+ *
72
+ * @return bool
73
+ * @since 2.0
74
+ */
75
+ function tribe_is_upcoming() {
76
+ $tribe_ecp = TribeEvents::instance();
77
+ return ($tribe_ecp->displaying == 'upcoming') ? true : false;
78
+ }
79
+
80
+ /**
81
+ * Show All Test
82
+ *
83
+ * Returns true if the query is set to show all events, false otherwise
84
+ *
85
+ * @return bool
86
+ * @since 2.0
87
+ */
88
+ function tribe_is_showing_all() {
89
+ $tribe_ecp = TribeEvents::instance();
90
+ return ($tribe_ecp->displaying == 'all') ? true : false;
91
+ }
92
+
93
+ /**
94
+ * Date View Test
95
+ *
96
+ * Check if current display is "bydate"
97
+ *
98
+ * @return bool
99
+ * @since 2.0
100
+ */
101
+ function tribe_is_by_date() {
102
+ $tribe_ecp = TribeEvents::instance();
103
+ return ( $tribe_ecp->displaying == 'bydate' ) ? true : false;
104
+ }
105
+
106
+ /**
107
+ * Event Title (Display)
108
+ *
109
+ * Display an event's title with pseudo-breadcrumb if on a category
110
+ *
111
+ * @param bool $depth include linked title
112
+ * @since 2.0
113
+ */
114
+ function tribe_events_title( $depth = true ) {
115
+ echo tribe_get_events_title( $depth );
116
+ }
117
+
118
+ /**
119
+ * Event Title
120
+ *
121
+ * Return an event's title with pseudo-breadcrumb if on a category
122
+ *
123
+ * @param bool $depth include linked title
124
+ * @return string title
125
+ * @since 2.0
126
+ */
127
+ function tribe_get_events_title( $depth = true ) {
128
+ $tribe_ecp = TribeEvents::instance();
129
+
130
+ $title = __('Calendar of Events', 'tribe-events-calendar');
131
+ if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
132
+ $cat = get_term_by( 'slug', get_query_var('term'), $tribe_ecp->get_event_taxonomy() );
133
+ if ( $depth ) {
134
+ $title = '<a href="'.tribe_get_events_link().'">'.$title.'</a>';
135
+ $title .= ' &#8250; ' . $cat->name;
136
+ } else {
137
+ $title = $cat->name;
138
+ }
139
+ }
140
+
141
+ return $title;
142
+ }
143
+
144
+ /**
145
+ * Link to Upcoming Events
146
+ *
147
+ * Returns a link to the upcoming events in list view. Used in the loop view.
148
+ *
149
+ * @return string URL
150
+ * @since 2.0
151
+ */
152
+ function tribe_get_upcoming_link() {
153
+ $tribe_ecp = TribeEvents::instance();
154
+ $output = $tribe_ecp->getLink('upcoming');
155
+ return $output;
156
+ }
157
+
158
+ /**
159
+ * Link to Past Events
160
+ *
161
+ * Returns a link to the previous events in list view. Used in the loop view.
162
+ *
163
+ * @return string URL
164
+ * @since 2.0
165
+ */
166
+ function tribe_get_past_link() {
167
+ $tribe_ecp = TribeEvents::instance();
168
+ $output = $tribe_ecp->getLink('past');
169
+ return $output;
170
+ }
171
+
172
+ }
173
+ ?>
public/template-tags/organizer.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Organizer Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Organizer ID
15
+ *
16
+ * Returns the event Organizer ID.
17
+ *
18
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
19
+ * @return int Organizer
20
+ * @since 2.0
21
+ */
22
+ function tribe_get_organizer_id( $postId = null) {
23
+ $postId = TribeEvents::postIdHelper( $postId );
24
+ if (is_numeric($postId) && $postId > 0) {
25
+ $tribe_ecp = TribeEvents::instance();
26
+ // check if $postId is an organizer id
27
+ if ($tribe_ecp->isOrganizer($postId)) {
28
+ $organizer_id = $postId;
29
+ } else {
30
+ $organizer_id = tribe_get_event_meta( $postId, '_EventOrganizerID', true );
31
+ }
32
+ }
33
+ return apply_filters('tribe_get_organizer_id', $organizer_id, $postId );
34
+ }
35
+
36
+ /**
37
+ * Get Organizer
38
+ *
39
+ * Returns the name of the Organizer
40
+ *
41
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
42
+ * @return string Organizer's Name
43
+ * @since 2.0
44
+ */
45
+ function tribe_get_organizer( $postId = null) {
46
+ $postId = TribeEvents::postIdHelper( $postId );
47
+ $output = esc_html(tribe_get_event_meta( tribe_get_organizer_id( $postId ), '_OrganizerOrganizer', true ));
48
+ return apply_filters( 'tribe_get_organizer', $output );
49
+ }
50
+
51
+ /**
52
+ * Organizer Test
53
+ *
54
+ * Returns true or false depending on if the post id has/is a n organizer
55
+ *
56
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
57
+ * @return bool
58
+ * @since 2.0
59
+ */
60
+ function tribe_has_organizer( $postId = null) {
61
+ $postId = TribeEvents::postIdHelper( $postId );
62
+ return ( tribe_get_organizer_id( $postId ) > 0 ) ? true : false;
63
+ }
64
+
65
+ /**
66
+ * Organizer Email
67
+ *
68
+ * Returns the Organizer's Email
69
+ *
70
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
71
+ * @return string Organizer's Email
72
+ * @since 2.0
73
+ */
74
+ function tribe_get_organizer_email( $postId = null) {
75
+ $postId = TribeEvents::postIdHelper( $postId );
76
+ $output = esc_html(tribe_get_event_meta( tribe_get_organizer_id( $postId ), '_OrganizerEmail', true ));
77
+ return apply_filters( 'tribe_get_organizer_email', $output);
78
+ }
79
+
80
+ /**
81
+ * Organizer Website Link
82
+ *
83
+ * Returns the event Organizer Name with a link to their supplied website url
84
+ *
85
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
86
+ * @param bool $display If true displays full html links around organizers name, if false returns just the link without displaying it
87
+ * @return string Organizer Name and Url
88
+ * @since 2.0
89
+ */
90
+ function tribe_get_organizer_link( $postId = null, $display = true ) {
91
+ $postId = TribeEvents::postIdHelper( $postId );
92
+ $url = esc_url(tribe_get_event_meta( tribe_get_organizer_id( $postId ), '_OrganizerWebsite', true ));
93
+ if( $display && $url != '' ) {
94
+ $organizer_name = tribe_get_organizer($postId);
95
+ $link = '<a href="'.$url.'">'.$organizer_name.'</a>';
96
+ } else {
97
+ $link = $url;
98
+ }
99
+ $link = apply_filters( 'tribe_get_organizer_link', $link, $postId, $display, $url );
100
+ if ( $display ) {
101
+ echo $link;
102
+ } else {
103
+ return $link;
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Organizer Phone
109
+ *
110
+ * Returns the event Organizer's phone number
111
+ *
112
+ * @param int $postId Can supply either event id or organizer id, if none specified, current post is used
113
+ * @return string Organizer's Phone Number
114
+ * @since 2.0
115
+ */
116
+ function tribe_get_organizer_phone( $postId = null) {
117
+ $postId = TribeEvents::postIdHelper( $postId );
118
+ $output = esc_html(tribe_get_event_meta( tribe_get_organizer_id( $postId ), '_OrganizerPhone', true ));
119
+ return apply_filters( 'tribe_get_organizer_phone', $output );
120
+ }
121
+
122
+ }
123
+ ?>
public/template-tags/venue.php ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Venue Functions
4
+ *
5
+ * Display functions (template-tags) for use in WordPress templates.
6
+ */
7
+
8
+ // Don't load directly
9
+ if ( !defined('ABSPATH') ) { die('-1'); }
10
+
11
+ if( class_exists( 'TribeEvents' ) ) {
12
+
13
+ /**
14
+ * Venue ID
15
+ *
16
+ * Returns the event Venue ID.
17
+ *
18
+ * @param int $postId can supply either event id or venue id, if none specified, current post is used
19
+ * @return int Venue ID
20
+ * @since 2.0
21
+ */
22
+ function tribe_get_venue_id( $postId = null ) {
23
+ $postId = TribeEvents::postIdHelper( $postId );
24
+ if ( tribe_is_venue( $postId ) ) {
25
+ return $postId;
26
+ } else {
27
+ return tribe_get_event_meta( $postId, '_EventVenueID', true );
28
+ }
29
+ }
30
+
31
+ /**
32
+ * Venue Test
33
+ *
34
+ * Returns true or false depending on if the post id for the event has a venue or if the post id is a venue
35
+ *
36
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
37
+ * @return bool
38
+ * @since 2.0
39
+ */
40
+ function tribe_has_venue( $postId = null) {
41
+ return ( tribe_get_venue_id( $postId ) > 0 ) ? true : false;
42
+ }
43
+
44
+ /**
45
+ * Get Venue
46
+ *
47
+ * Returns the event venue name
48
+ *
49
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
50
+ * @param bool $with_link (deprecated in 2.0.1)
51
+ * @return string Venue Name
52
+ * @since 2.0
53
+ */
54
+ function tribe_get_venue( $postId = null, $with_link = false ) {
55
+ if ( $with_link ) { _deprecated_argument( __FUNCTION__, '2.0.1' ); }
56
+ $postId = tribe_get_venue_id( $postId );
57
+ $venue = esc_html(tribe_get_event_meta( $postId, '_VenueVenue', true ));
58
+ return $venue;
59
+ }
60
+
61
+ /**
62
+ * Venue Link
63
+ *
64
+ * Returns or display the event Organizer Name with a link to their supplied website url
65
+ *
66
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
67
+ * @param bool $display If true displays full html links around venue's name, if false returns just the link without displaying it
68
+ * @return string Venue if $display is set to false, void if it's set to true.
69
+ * @since 2.0
70
+ */
71
+ function tribe_get_venue_link( $postId = null, $display = true ) {
72
+ $url = esc_url( get_permalink( tribe_get_venue_id( $postId ) ) );
73
+ if( $display && $url != '' ) {
74
+ $venue_name = tribe_get_venue($postId);
75
+ $link = '<a href="'.$url.'">'.$venue_name.'</a>';
76
+ } else {
77
+ $link = $url;
78
+ }
79
+ $link = apply_filters( 'tribe_get_venue_link', $link, $postId, $display, $url );
80
+ if ( $display ) {
81
+ echo $link;
82
+ } else {
83
+ return $link;
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Country
89
+ *
90
+ * Returns the event country
91
+ *
92
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
93
+ * @return string Country
94
+ * @since 2.0
95
+ */
96
+ function tribe_get_country( $postId = null) {
97
+ $postId = tribe_get_venue_id( $postId );
98
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueCountry', true ) );
99
+ return $output;
100
+ }
101
+
102
+ /**
103
+ * Full Address
104
+ *
105
+ * Returns the full address for the venue. Function uses the views/full-address.php template which you can override in your theme (including google microformats etc).
106
+ *
107
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
108
+ * @return string Formatted event address
109
+ * @since 2.0
110
+ */
111
+ function tribe_get_full_address( $postId = null, $includeVenueName = false ) {
112
+ $postId = tribe_get_venue_id( $postId );
113
+ $tribe_ecp = TribeEvents::instance();
114
+ return apply_filters('tribe_get_full_address', $tribe_ecp->fullAddress( $postId, $includeVenueName ) );
115
+ }
116
+
117
+ /**
118
+ * Address Test
119
+ *
120
+ * Returns true if any of the following exist: address, city, state/province (region), country or zip
121
+ *
122
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
123
+ * @return bool True if any part of an address exists
124
+ * @since 2.0
125
+ */
126
+ function tribe_address_exists( $postId = null ) {
127
+ if (
128
+ tribe_get_address( $postId ) ||
129
+ tribe_get_city( $postId ) ||
130
+ tribe_get_region( $postId ) ||
131
+ tribe_get_country( $postId ) ||
132
+ tribe_get_zip( $postId )
133
+ ) {
134
+ return true;
135
+ } else {
136
+ return false;
137
+ }
138
+ }
139
+
140
+ /**
141
+ * Street Address
142
+ *
143
+ * Returns the venue street address
144
+ *
145
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
146
+ * @return string Street address
147
+ * @since 2.0
148
+ */
149
+ function tribe_get_address( $postId = null) {
150
+ $postId = tribe_get_venue_id( $postId );
151
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueAddress', true ) );
152
+ return $output;
153
+ }
154
+
155
+ /**
156
+ * City
157
+ *
158
+ * Returns the venue city
159
+ *
160
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
161
+ * @return string City
162
+ * @since 2.0
163
+ */
164
+ function tribe_get_city( $postId = null) {
165
+ $postId = tribe_get_venue_id( $postId );
166
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueCity', true ) );
167
+ return $output;
168
+ }
169
+
170
+ /**
171
+ * State or Province
172
+ *
173
+ * Returns the venue state or province
174
+ *
175
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
176
+ * @return string State
177
+ * @todo Depricate tribe_get_stateprovince or tribe_get_region
178
+ * @since 2.0
179
+ */
180
+ function tribe_get_stateprovince( $postId = null) {
181
+ $postId = tribe_get_venue_id( $postId );
182
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueStateProvince', true ) );
183
+ return $output;
184
+ }
185
+
186
+ /**
187
+ * State
188
+ *
189
+ * Returns the venue state
190
+ *
191
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
192
+ * @return string State
193
+ * @since 2.0
194
+ */
195
+ function tribe_get_state( $postId = null) {
196
+ $postId = tribe_get_venue_id( $postId );
197
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueState', true ) );
198
+ return $output;
199
+ }
200
+
201
+ /**
202
+ * Province
203
+ *
204
+ * Returns the venue province
205
+ *
206
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
207
+ * @return string Province
208
+ * @since 2.0
209
+ */
210
+ function tribe_get_province( $postId = null) {
211
+ $postId = tribe_get_venue_id( $postId );
212
+ $output = esc_html( tribe_get_event_meta( $postId, '_VenueProvince', true ) );
213
+ return $output;
214
+ }
215
+
216
+ /**
217
+ * Region
218
+ *
219
+ * Returns the state or province for US or non-US addresses (effectively the same thing as tribe_get_stateprovince())
220
+ *
221
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
222
+ * @return string
223
+ * @todo Depricate tribe_get_region or tribe_get_stateprovince
224
+ * @since 2.0
225
+ */
226
+ function tribe_get_region( $postId = null ) {
227
+ $postId = tribe_get_venue_id( $postId );
228
+ if(tribe_get_event_meta($postId, '_VenueStateProvince', true )){
229
+ return tribe_get_event_meta($postId, '_VenueStateProvince', true );
230
+ } else {
231
+ if ( tribe_get_country($postId) == __('United States', 'tribe-events-calendar' ) ) {
232
+ return tribe_get_state($postId);
233
+ } else {
234
+ return tribe_get_province();
235
+ }
236
+ }
237
+ }
238
+
239
+ /**
240
+ * Zip Code
241
+ *
242
+ * Returns the event zip code
243
+ *
244
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
245
+ * @return string Zip code
246
+ * @since 2.0
247
+ */
248
+ function tribe_get_zip( $postId = null) {
249
+ $postId = tribe_get_venue_id( $postId );
250
+ $output = esc_html(tribe_get_event_meta( $postId, '_VenueZip', true ));
251
+ return $output;
252
+ }
253
+
254
+ /**
255
+ * Venue Phone Number
256
+ *
257
+ * Returns the venue phone number
258
+ *
259
+ * @param int $postId Can supply either event id or venue id, if none specified, current post is used
260
+ * @return string Phone number
261
+ * @since 2.0
262
+ */
263
+ function tribe_get_phone( $postId = null) {
264
+ $postId = tribe_get_venue_id( $postId );
265
+ $output = esc_html(tribe_get_event_meta( $postId, '_VenuePhone', true ));
266
+ return $output;
267
+ }
268
+
269
+ }
270
+ ?>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: modern tribe, tribe, widget, events, tooltips, grid, month, list, calendar
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QA7QZM4CNQ342
6
  Requires at least: 3.1
7
  Tested up to: 3.2.1
8
- Stable tag: 2.0
9
 
10
  == Description ==
11
 
@@ -68,12 +68,36 @@ No setup required. Just plug and play!
68
 
69
  == Documentation ==
70
 
71
- We are developing a wealth of <a href="http://tri.be/support/?ref=tec-readme">documentation on our support page</a>.
72
-
73
- For template tags, you can view our template tag include and read through the functions directly. Please see template-tags.php.
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  = 2.0 =
78
 
79
  This is such a major re-write that we are starting the change log over.
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QA7QZM4CNQ342
6
  Requires at least: 3.1
7
  Tested up to: 3.2.1
8
+ Stable tag: 2.0.1
9
 
10
  == Description ==
11
 
68
 
69
  == Documentation ==
70
 
71
+ For template tags, you can view our template tag includes in the "public" folder to read through the functions directly or visit our online documentation at <a href="http://tri.be/support/documentation?ref=tec-readme">http://tri.be/support/documentation</a>
 
 
72
 
73
  == Changelog ==
74
 
75
+ = 2.0.1 =
76
+
77
+ Small features, UX and Content Tweeks:
78
+ * Enabled method to turn off event upsell messages on your site in wp-config.php - define( 'TRIBE_HIDE_UPSELL', true );
79
+ * Updated migration message to help 1.6.5 users have an easier time when they upgrade to 2.0
80
+ * Added a "View my events" link in the settings panel to help users find where the calendar lives
81
+ * Added Russian and Swedish translation files.
82
+ * Broke out advanced functions into their own file "advanced-functions.php"
83
+ * Added in line documentation to all template tags and moved them to separate files in the /public folder
84
+ * Added and updated documentation on http://tri.be/support/documentation/
85
+
86
+ Bugs:
87
+ * Added "00" in the time drop down when in 24 hour mode
88
+ * Updated default end time to "17" for 24 hour mode
89
+ * Fixed broken link in the "you need events 2.0 open source" on activation for PRO users.
90
+ * More tag now properly crops content in loop
91
+ * Custom meta > number only drop down values now carry over
92
+ * Resolved an issue where single day view yielded a 404 if date was in the past
93
+ * Next event widget now shows the proper event
94
+ * Attachments on recurring events now persist across instances
95
+ * Custom recurring event error caused by blank end date fixed
96
+ * Default state now shows properly
97
+ * Title tags wrong in various views fixed
98
+ * Event date showing incorrectly for certain cases of recurrence fixed.
99
+ * Venue / Organizer data not saving for certain cases of recurrence fixed.
100
+
101
  = 2.0 =
102
 
103
  This is such a major re-write that we are starting the change log over.
resources/events-admin.js CHANGED
@@ -344,5 +344,4 @@ jQuery(document).ready(function($) {
344
  dayselect.hide();
345
  }
346
  });
347
-
348
  });
344
  dayselect.hide();
345
  }
346
  });
 
347
  });
template-tags.php DELETED
@@ -1,1190 +0,0 @@
1
- <?php
2
- /**
3
- * Template Tags
4
- * I. Option Template Tags
5
- * II. Grid View Template Tags
6
- * III. Google Map Template Tags
7
- * IV. Event Organizer Template Tags
8
- * V. Event Venue (& Address) Template Tags
9
- * VI. Other Event Meta Template Tags
10
- * VII. Link Template Tags
11
- * VIII. Misc Template Tags
12
- * IX. API Template Tags
13
- */
14
-
15
- // Don't load directly
16
- if ( !defined('ABSPATH') ) { die('-1'); }
17
-
18
- if( class_exists( 'TribeEvents' ) && !function_exists( 'tribe_get_option' ) ) {
19
-
20
- /**
21
- * I. Option View Template Tags
22
- */
23
-
24
- /**
25
- * retrieve specific key from options array, optionally provide a default return value
26
- */
27
- function tribe_get_option($optionName, $default = '') {
28
- $tribe_ecp = TribeEvents::instance();
29
- return $tribe_ecp->getOption($optionName, $default);
30
- }
31
-
32
- /**
33
- * II. Grid View Template Tags
34
- */
35
-
36
- /**
37
- * Output function: Prints the gridded calendar table
38
- *
39
- * @return void
40
- */
41
- function tribe_calendar_grid() {
42
- $tribe_ecp = TribeEvents::instance();
43
- set_query_var( 'eventDisplay', 'bydate' );
44
- load_template( TribeEventsTemplates::getTemplateHierarchy('table') );
45
- }
46
-
47
- /**
48
- * Output: Prints the mini gridded calendar table
49
- *
50
- * @return void
51
- */
52
- function tribe_calendar_mini_grid() {
53
- global $wp_query;
54
- $tribe_ecp = TribeEvents::instance();
55
- $old_query = $wp_query;
56
-
57
- $wp_query = NEW WP_Query('post_type=sp_events');
58
- set_query_var( 'eventDisplay', 'bydate' );
59
- load_template( TribeEventsTemplates::getTemplateHierarchy('table-mini') );
60
-
61
- $wp_query = $old_query;
62
- }
63
-
64
- /**
65
- * Maps events to days
66
- *
67
- * @param array of events from tribe_get_events()
68
- * @param string date of the
69
- * @return array days of the month with events as values
70
- */
71
- function tribe_sort_by_month( $results, $date ) {
72
- $cutoff_time = tribe_get_option('multiDayCutoff', '12:00');
73
-
74
- if( preg_match( '/(\d{4})-(\d{2})/', $date, $matches ) ) {
75
- $queryYear = $matches[1];
76
- $queryMonth = $matches[2];
77
- } else {
78
- return false; // second argument not a date we recognize
79
- }
80
- $monthView = array();
81
- for( $i = 1; $i <= 31; $i++ ) {
82
- $monthView[$i] = array();
83
- }
84
-
85
-
86
- foreach ( $results as $event ) {
87
- $started = false;
88
-
89
- list( $startYear, $startMonth, $startDay ) = explode( '-', $event->EventStartDate );
90
- list( $endYear, $endMonth, $endDay ) = explode( '-', $event->EventEndDate );
91
-
92
- list( $startDay, $garbage ) = explode( ' ', $startDay );
93
-
94
- list( $endDay, $garbage ) = explode( ' ', $endDay );
95
- for( $i = 1; $i <= 31 ; $i++ ) {
96
- $curDate = strtotime( $queryYear.'-'.$queryMonth.'-'.$i );
97
-
98
- if ( ( $i == $startDay && $startMonth == $queryMonth ) || strtotime( $startYear.'-'.$startMonth ) < strtotime( $queryYear.'-'.$queryMonth ) ) {
99
- $started = true;
100
- }
101
-
102
- // if last day of multiday event
103
- if( !tribe_get_all_day() && tribe_is_multiday($event->ID) && date('Y-m-d', $curDate) == date('Y-m-d', strtotime($event->EventEndDate)) ) {
104
- $endTime = strtotime(date('Y-m-d', $curDate) . date('h:i A', strtotime($event->EventEndDate)));
105
- $cutoffTime = strtotime(date('Y-m-d', $curDate) . $cutoff_time . "AM");
106
-
107
- // if end time is before cutoff, then don't show
108
- if ($endTime <= $cutoffTime) {
109
- $started = false;
110
- }
111
- }
112
-
113
- if ( $started ) {
114
- $monthView[$i][] = $event;
115
- }
116
- if( $i == $endDay && $endMonth == $queryMonth ) {
117
- continue 2;
118
- }
119
- }
120
- }
121
-
122
- return $monthView;
123
- }
124
-
125
- /**
126
- * Prints the year & month dropdowns. JavaScript in the resources/events-admin.js file will autosubmit on the change event.
127
- *
128
- * @param string a prefix to add to the ID of the calendar elements. This allows you to reuse the calendar on the same page.
129
- * @return void
130
- */
131
- function tribe_month_year_dropdowns( $prefix = '' ) {
132
- global $wp_query;
133
- $tribe_ecp = TribeEvents::instance();
134
-
135
- if ( isset ( $wp_query->query_vars['eventDate'] ) ) {
136
- $date = $wp_query->query_vars['eventDate'] . "-01";
137
- } else {
138
- $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
139
- }
140
- $monthOptions = TribeEventsViewHelpers::getMonthOptions( $date );
141
- $yearOptions = TribeEventsViewHelpers::getYearOptions( $date );
142
- include($tribe_ecp->pluginPath.'admin-views/datepicker.php');
143
- }
144
-
145
- /**
146
- * Checks type of $postId to determine if it is an event
147
- * @return boolean
148
- */
149
- function tribe_is_event( $postId = null ) {
150
- $tribe_ecp = TribeEvents::instance();
151
- return $tribe_ecp->isEvent($postId);
152
- }
153
-
154
-
155
- /**
156
- * III. Google Map Template Tags
157
- */
158
-
159
- /**
160
- * Returns a link to google maps for the given event
161
- *
162
- * @param string $postId
163
- * @return string a fully qualified link to http://maps.google.com/ for this event
164
- */
165
- function tribe_get_map_link( $postId = null ) {
166
- $tribe_ecp = TribeEvents::instance();
167
- $output = esc_url($tribe_ecp->googleMapLink( $postId ));
168
- return apply_filters( 'tribe_get_map_link', $output );
169
- }
170
-
171
- /**
172
- * Displays a link to google maps for the given event
173
- *
174
- * @param string $postId
175
- * @return void
176
- */
177
- function tribe_the_map_link( $postId = null ) {
178
- echo tribe_get_map_link( $postId );
179
- }
180
-
181
- /**
182
- * Returns an embedded google maps for the given event
183
- *
184
- * @param string $postId
185
- * @param int $width
186
- * @param int $height
187
- * @return string - an iframe pulling http://maps.google.com/ for this event
188
- */
189
- function tribe_get_embedded_map( $postId = null, $width = '', $height = '', $force_load = false ) {
190
- $tribe_ecp = TribeEvents::instance();
191
- $postId = tribe_post_id_helper( $postId );
192
- if ( !tribe_is_venue( $postId ) && !tribe_is_event( $postId ) ) {
193
- return false;
194
- }
195
-
196
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
197
- $locationMetaSuffixes = array( 'address', 'city', 'state', 'province', 'zip', 'country' );
198
- $toUrlEncode = "";
199
-
200
- foreach( $locationMetaSuffixes as $val ) {
201
- $metaVal = call_user_func('tribe_get_'.$val);
202
- if ( $metaVal )
203
- $toUrlEncode .= $metaVal . " ";
204
- }
205
-
206
- if ( $toUrlEncode )
207
- $address = $toUrlEncode;
208
- else
209
- $address = null;
210
-
211
-
212
- if (!$height) $height = tribe_get_option('embedGoogleMapsHeight','350');
213
- if (!$width) $width = tribe_get_option('embedGoogleMapsWidth','100%');
214
-
215
- if ($address || $force_load) {
216
- ob_start();
217
- include($tribe_ecp->pluginPath.'admin-views/event-map.php');
218
- $google_map = ob_get_contents();
219
- ob_get_clean();
220
- return $google_map;
221
- }
222
- else return '';
223
- }
224
-
225
- /**
226
- * Displays an embedded google map for the given event
227
- *
228
- * @param string $postId
229
- * @param int $width
230
- * @param int $height
231
- * @return void
232
- */
233
- function tribe_the_embedded_map( $postId = null, $width = null, $height = null ) {
234
- if (tribe_get_option('embedGoogleMaps'))
235
- echo tribe_get_embedded_map( $postId, $width, $height );
236
- }
237
-
238
- /**
239
- * Check if embed google map is enabled for this post
240
- */
241
- function tribe_embed_google_map($postId = null) {
242
- $postId = tribe_post_id_helper( $postId );
243
- return get_post_meta( get_the_ID(), '_EventShowMap', 1) == 1;
244
- }
245
-
246
- /**
247
- * Check if google map link is enabled for this post
248
- */
249
- function tribe_show_google_map_link($postId = null) {
250
- return get_post_meta( get_the_ID(), '_EventShowMapLink', 1) == 1;
251
- }
252
-
253
- /**
254
- * IV. Event Organizer Template Tags
255
- */
256
-
257
- /**
258
- * Returns the event Organizer
259
- *
260
- * @return string Organizer
261
- */
262
- function tribe_has_organizer( $postId = null) {
263
- $postId = tribe_post_id_helper( $postId );
264
- return apply_filters('tribe_has_organizer', tribe_get_event_meta( $postId, '_EventOrganizerID', true ) );
265
- }
266
-
267
- /**
268
- * Returns the event Organizer
269
- *
270
- * @return string Organizer
271
- */
272
- function tribe_get_organizer( $postId = null) {
273
- $postId = tribe_post_id_helper( $postId );
274
- $output = esc_html(tribe_get_event_meta( tribe_has_organizer(), '_OrganizerOrganizer', true ));
275
- return apply_filters( 'tribe_get_organizer', $output );
276
- }
277
-
278
- /**
279
- * Returns the event Organizer
280
- *
281
- * @return string Organizer
282
- */
283
- function tribe_get_organizer_email( $postId = null) {
284
- $postId = tribe_post_id_helper( $postId );
285
- $output = esc_html(tribe_get_event_meta( tribe_has_organizer(), '_OrganizerEmail', true ));
286
- return apply_filters( 'tribe_get_organizer_email', $output);
287
- }
288
-
289
- /**
290
- * Returns the event Organizer
291
- *
292
- * @return string Organizer
293
- */
294
- function tribe_get_organizer_website( $postId = null) {
295
- $postId = tribe_post_id_helper( $postId );
296
- $output = esc_url(tribe_get_event_meta( tribe_has_organizer(), '_OrganizerWebsite', true ));
297
- return apply_filters( 'tribe_get_organizer_website', $output);
298
- }
299
-
300
- /**
301
- * Returns the event Organizer
302
- *
303
- * @return string Organizer
304
- */
305
- function tribe_get_organizer_link( $postId = null) {
306
- $postId = tribe_post_id_helper( $postId );
307
-
308
- $link = tribe_get_organizer($postId);
309
-
310
- if(tribe_get_organizer_website($postId) != ''){
311
- $link = '<a href="'.esc_attr(tribe_get_organizer_website($postId)).'">'.$link.'</a>';
312
- }
313
-
314
- return apply_filters( 'tribe_get_organizer_link', $link);
315
- }
316
-
317
- /**
318
- * Returns the event Organizer
319
- *
320
- * @return string Organizer
321
- */
322
- function tribe_get_organizer_phone( $postId = null) {
323
- $postId = tribe_post_id_helper( $postId );
324
- $output = esc_html(tribe_get_event_meta( tribe_has_organizer(), '_OrganizerPhone', true ));
325
- return apply_filters( 'tribe_get_organizer_phone', $output );
326
- }
327
-
328
- /**
329
- * V. Event Venue Template Tags
330
- */
331
-
332
- /**
333
- * Returns the venue id if post has a venue meta id or the post id if the post is a venue
334
- *
335
- * @param string $postId
336
- * @return int venue id
337
- */
338
- function tribe_get_venue_id( $postId = null ) {
339
- $postId = tribe_post_id_helper( $postId );
340
- if ( tribe_is_venue( $postId ) ) {
341
- return $postId;
342
- } else {
343
- return tribe_get_event_meta( $postId, '_EventVenueID', true );
344
- }
345
- }
346
-
347
- /**
348
- * Returns true or false depending on if the post id has/is a venue
349
- *
350
- * @return boolean
351
- */
352
- function tribe_has_venue( $postId = null) {
353
- $postId = tribe_post_id_helper( $postId );
354
- return ( tribe_get_venue_id( $postId ) > 0 ) ? true : false;
355
- }
356
-
357
- /**
358
- * Returns the event venue
359
- *
360
- * @return string venue
361
- */
362
- function tribe_get_venue( $postId = null, $with_link = false) {
363
- $postId = tribe_post_id_helper( $postId );
364
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
365
- $venue = esc_html(tribe_get_event_meta( $postId, '_VenueVenue', true ));
366
-
367
- if( $with_link && tribe_has_venue( $postId ) && class_exists('TribeEventsPro') )
368
- return "<a href='" . get_permalink(tribe_get_venue_id( $postId )) . "'>$venue</a>";
369
-
370
- return $venue;
371
- }
372
-
373
- /**
374
- * Returns the event venue permalink
375
- *
376
- * @return string venue
377
- */
378
- function tribe_get_venue_permalink( $postId = null) {
379
- $postId = tribe_post_id_helper( $postId );
380
- $output = esc_html((tribe_has_venue( $postId )) ? get_permalink( tribe_get_venue_id( $postId ) ) : "");
381
- return $output;
382
- }
383
-
384
- /**
385
- * Returns the event country
386
- *
387
- * @return string country
388
- */
389
- function tribe_get_country( $postId = null) {
390
- $postId = tribe_post_id_helper( $postId );
391
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
392
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueCountry', true ) );
393
- return $output;
394
- }
395
-
396
- /**
397
- * @return string formatted event address
398
- */
399
- function tribe_get_full_address( $postId = null, $includeVenueName = false ) {
400
- $postId = tribe_post_id_helper( $postId );
401
- $tribe_ecp = TribeEvents::instance();
402
- return apply_filters('tribe_get_full_address', $tribe_ecp->fullAddress( $postId, $includeVenueName ) );
403
- }
404
-
405
- /**
406
- * Displays a formatted event address
407
- *
408
- * @param string $postId
409
- * @return void
410
- */
411
- function tribe_the_full_address( $postId = null, $includeVenueName = false ) {
412
- echo tribe_get_full_address( $postId );
413
- }
414
-
415
- /**
416
- * @return boolean true if any part of an address exists
417
- */
418
- function tribe_address_exists( $postId = null ) {
419
- $postId = tribe_post_id_helper( $postId );
420
- if (
421
- tribe_get_address( $postId ) ||
422
- tribe_get_city( $postId ) ||
423
- tribe_get_region( $postId ) ||
424
- tribe_get_country( $postId ) ||
425
- tribe_get_zip( $postId )
426
- ) {
427
- return true;
428
- } else {
429
- return false;
430
- }
431
- }
432
-
433
- /**
434
- * Returns the event address
435
- *
436
- * @return string address
437
- */
438
- function tribe_get_address( $postId = null) {
439
- $postId = tribe_post_id_helper( $postId );
440
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
441
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueAddress', true ) );
442
- return $output;
443
- }
444
-
445
- /**
446
- * Returns the event city
447
- *
448
- * @return string city
449
- */
450
- function tribe_get_city( $postId = null) {
451
- $postId = tribe_post_id_helper( $postId );
452
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
453
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueCity', true ) );
454
- return $output;
455
- }
456
-
457
- /**
458
- * Returns the event state or Province
459
- *
460
- * @return string state
461
- */
462
- function tribe_get_stateprovince( $postId = null) {
463
- $postId = tribe_post_id_helper( $postId );
464
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
465
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueStateProvince', true ) );
466
- return $output;
467
- }
468
-
469
- /**
470
- * Returns the event state
471
- *
472
- * @return string state
473
- */
474
- function tribe_get_state( $postId = null) {
475
- $postId = tribe_post_id_helper( $postId );
476
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
477
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueState', true ) );
478
- return $output;
479
- }
480
-
481
- /**
482
- * Returns the event province
483
- *
484
- * @return string province
485
- */
486
- function tribe_get_province( $postId = null) {
487
- $postId = tribe_post_id_helper( $postId );
488
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
489
- $output = esc_html( tribe_get_event_meta( $postId, '_VenueProvince', true ) );
490
- return $output;
491
- }
492
-
493
- /**
494
- * Returns the state or province for US or non-US addresses
495
- *
496
- * @return string
497
- */
498
- function tribe_get_region( $postId = null ) {
499
- $postId = tribe_post_id_helper( $postId );
500
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
501
-
502
- $tribe_ecp = TribeEvents::instance();
503
- if(tribe_get_event_meta($postId, '_VenueStateProvince', true )){
504
- return tribe_get_event_meta($postId, '_VenueStateProvince', true );
505
- } else {
506
- if ( tribe_get_country($postId) == __('United States', 'tribe-events-calendar' ) ) {
507
- return tribe_get_state($postId);
508
- } else {
509
- return tribe_get_province();
510
- }
511
- }
512
- }
513
-
514
- /**
515
- * Returns the event zip code
516
- *
517
- * @return string zip code
518
- */
519
- function tribe_get_zip( $postId = null) {
520
- $postId = tribe_post_id_helper( $postId );
521
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
522
- $output = esc_html(tribe_get_event_meta( $postId, '_VenueZip', true ));
523
- return $output;
524
- }
525
-
526
- /**
527
- * VI. Other Event Meta Template Tags
528
- */
529
-
530
- /**
531
- * Returns the event start date
532
- *
533
- * @param int post id
534
- * @param bool display time?
535
- * @param string date format
536
- * @return string date
537
- */
538
- function tribe_get_start_date( $postId = null, $showtime = true, $dateFormat = '' ) {
539
- global $post;
540
- $tribe_ecp = TribeEvents::instance();
541
- $postId = tribe_post_id_helper( $postId );
542
-
543
- if( tribe_get_all_day( $postId ) )
544
- $showtime = false;
545
-
546
- $date = strtotime( $post->EventStartDate ? $post->EventStartDate : tribe_get_event_meta( $postId, '_EventStartDate', true ));
547
-
548
- return tribe_event_format_date($date, $showtime, $dateFormat );
549
- }
550
-
551
- /**
552
- * Returns formatted date
553
- *
554
- * @param string $date
555
- * @param boolean $showtime display time?
556
- * @param string $dateFormat date format
557
- * @return string
558
- */
559
- function tribe_event_format_date($date, $showtime = true, $dateFormat = '') {
560
- $tribe_ecp = TribeEvents::instance();
561
-
562
- if( $dateFormat ) $format = $dateFormat;
563
- else $format = get_option( 'date_format', TribeDateUtils::DATEONLYFORMAT );
564
-
565
- if ( $showtime )
566
- $format = $tribe_ecp->getTimeFormat( $format );
567
-
568
- $shortMonthNames = ( strstr( $format, 'M' ) ) ? true : false;
569
- $date = date_i18n ( $format, $date );
570
- return str_replace( array_keys($tribe_ecp->monthNames( $shortMonthNames )), $tribe_ecp->monthNames( $shortMonthNames ), $date);
571
- }
572
-
573
- /**
574
- * Returns the event end date
575
- *
576
- * @param int post id
577
- * @param bool display time?
578
- * @param string date format
579
- * @return string date
580
- */
581
- function tribe_get_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
582
- global $post;
583
- $tribe_ecp = TribeEvents::instance();
584
- $postId = tribe_post_id_helper( $postId );
585
-
586
- if( tribe_get_all_day( $postId ) )
587
- $showtime = false;
588
-
589
- $date = strtotime( $post->EventEndDate ? $post->EventEndDate : tribe_get_event_meta( $postId, '_EventEndDate', true ));
590
-
591
- return tribe_event_format_date($date, $showtime, $dateFormat );
592
- }
593
-
594
- /**
595
- * If EventBrite plugin is active
596
- * If the event is registered in eventbrite, and has one ticket. Return the cost of that ticket.
597
- * If the event is registered in eventbrite, and there are many tickets, return "Varies"
598
- * If the event is not registered in eventbrite, and there is meta, return that.
599
- * If the event is not registered in eventbrite, and there is no meta, return ""
600
- *
601
- * @param mixed post id or null if used in the loop
602
- * @return string
603
- */
604
- function tribe_get_cost( $postId = null) {
605
- $tribe_ecp = TribeEvents::instance();
606
- $postId = tribe_post_id_helper( $postId );
607
- if( class_exists( 'Eventbrite_for_TribeEvents' ) ) {
608
- global $spEventBrite;
609
- $returned = $spEventBrite->tribe_get_cost($postId);
610
- if($returned) {
611
- return esc_html($returned);
612
- }
613
- }
614
-
615
- $cost = tribe_get_event_meta( $postId, '_EventCost', true );
616
-
617
- if($cost === ''){
618
- $cost = '';
619
- }elseif($cost == '0'){
620
- $cost = __( "Free", 'tribe-events-calendar' );
621
- }else{
622
- $cost = esc_html($cost);
623
- }
624
-
625
- return apply_filters( 'tribe_get_cost', $cost );
626
- }
627
-
628
- /**
629
- * Returns the event phone number
630
- *
631
- * @return string phone number
632
- */
633
- function tribe_get_phone( $postId = null) {
634
- $postId = tribe_post_id_helper( $postId );
635
- $postId = tribe_is_venue( $postId ) ? $postId : tribe_get_venue_id( $postId );
636
- $output = esc_html(tribe_get_event_meta( $postId, '_VenuePhone', true ));
637
- return $output;
638
- }
639
-
640
- /**
641
- * VII. Event Link Template Tags
642
- */
643
-
644
- /**
645
- * Link for all occurrences of an event (based on the currently queried event).
646
- *
647
- * @return string url
648
- */
649
- function tribe_all_occurences_link( ) {
650
- global $post;
651
- $tribe_ecp = TribeEvents::instance();
652
- echo $tribe_ecp->getLink('all');
653
- }
654
-
655
- /**
656
- * Link for the event day
657
- *
658
- * @param string $date
659
- * @return string url
660
- */
661
- function tribe_get_day_link($date) {
662
- $tribe_ecp = TribeEvents::instance();
663
- return $tribe_ecp->getLink('day', $date);
664
- }
665
-
666
- /**
667
- * Displays a link to the previous post by start date for the given event
668
- *
669
- * @param string $anchor link text. Use %title% to place the post title in your string.
670
- * @return void
671
- */
672
- function tribe_previous_event_link( $anchor = false ) {
673
- global $post;
674
- $tribe_ecp = TribeEvents::instance();
675
-
676
- echo $tribe_ecp->get_event_link($post,'previous',$anchor);
677
- }
678
-
679
- /**
680
- * Displays a link to the next post by start date for the given event
681
- *
682
- * @param string $anchor link text. Use %title% to place the post title in your string.
683
- * @return void
684
- */
685
- function tribe_next_event_link( $anchor = false ) {
686
- global $post;
687
- $tribe_ecp = TribeEvents::instance();
688
- echo $tribe_ecp->get_event_link($post, 'next',$anchor);
689
- }
690
-
691
- /**
692
- * Returns a link to the upcoming events in list view
693
- *
694
- * @return string
695
- */
696
-
697
- function tribe_get_upcoming_link() {
698
- $tribe_ecp = TribeEvents::instance();
699
- $output = esc_html($tribe_ecp->getLink('upcoming'));
700
- return $output;
701
- }
702
-
703
- /**
704
- * Returns a link to the next month's events page
705
- *
706
- * @return string
707
- */
708
- function tribe_get_next_month_link() {
709
- $tribe_ecp = TribeEvents::instance();
710
- $output = esc_html($tribe_ecp->getLink( 'month', $tribe_ecp->nextMonth(tribe_get_month_view_date() )));
711
- return $output;
712
- }
713
-
714
- /**
715
- * Returns a link to the previous month's events page
716
- *
717
- * @return string
718
- */
719
- function tribe_get_previous_month_link() {
720
- global $wp_query;
721
- $tribe_ecp = TribeEvents::instance();
722
- $output = esc_html($tribe_ecp->getLink( 'month', $tribe_ecp->previousMonth( tribe_get_month_view_date() )));
723
- return $output;
724
- }
725
-
726
- /**
727
- * Returns a link to the previous events in list view
728
- *
729
- * @return string
730
- */
731
- function tribe_get_past_link() {
732
- $tribe_ecp = TribeEvents::instance();
733
- $output = esc_html($tribe_ecp->getLink('past'));
734
- return $output;
735
- }
736
-
737
- /**
738
- * Returns a link to the events URL
739
- *
740
- * @return string
741
- */
742
- function tribe_get_events_link() {
743
- $tribe_ecp = TribeEvents::instance();
744
- $output = esc_url($tribe_ecp->getLink('home'));
745
- return $output;
746
- }
747
-
748
- /**
749
- * Returns a link to the overall or category gridview
750
- */
751
- function tribe_get_gridview_link($term = null) {
752
- $tribe_ecp = TribeEvents::instance();
753
- $output = esc_url($tribe_ecp->getLink('month', false, $term));
754
- return $output;
755
- }
756
-
757
- /**
758
- * Returns a link to the overall or category upcoming view
759
- */
760
- function tribe_get_listview_link($term = null) {
761
- $tribe_ecp = TribeEvents::instance();
762
- $output = esc_url($tribe_ecp->getLink('upcoming', false, $term));
763
- return $output;
764
- }
765
-
766
- /**
767
- * Returns a link to the overall or category past view
768
- */
769
- function tribe_get_listview_past_link() {
770
- $tribe_ecp = TribeEvents::instance();
771
- $output = esc_url($tribe_ecp->getLink('past'));
772
- return $output;
773
- }
774
-
775
- /**
776
- * Returns a link to the overall or category dropdown view
777
- */
778
- function tribe_get_dropdown_link_prefix() {
779
- $tribe_ecp = TribeEvents::instance();
780
- $output = esc_url($tribe_ecp->getLink('dropdown'));
781
- return $output;
782
- }
783
-
784
- /**
785
- * Echo link to a single event
786
- */
787
- function tribe_event_link($post = null) {
788
- // pass in whole post object to retain start date
789
- echo tribe_get_event_link($post);
790
- }
791
-
792
- /**
793
- * Get link to a single event
794
- */
795
- function tribe_get_event_link($post = null) {
796
- return apply_filters( 'tribe_get_event_link', TribeEvents::instance()->getLink('single', $post), $post );
797
- }
798
-
799
- /**
800
- * Returns a link to the currently displayed month (if in "jump to month" mode)
801
- *
802
- * @return string
803
- */
804
- function tribe_get_this_month_link() {
805
- $tribe_ecp = TribeEvents::instance();
806
- if ( $tribe_ecp->displaying == 'month' ) {
807
- $output = esc_url($tribe_ecp->getLink( 'month', $tribe_ecp->date ));
808
- return $output;
809
- }
810
- return false;
811
- }
812
-
813
-
814
- /**
815
- * VIII. Misc Template Tags
816
- */
817
-
818
- /**
819
- * Helper function to determine postId. Pulls from global $post object if null or non-numeric.
820
- *
821
- * @return int postId;
822
- */
823
- function tribe_post_id_helper( $postId ) {
824
- if ( $postId === null || ! is_numeric( $postId ) ) {
825
- global $post;
826
- return $post->ID;
827
- }
828
- return (int) $postId;
829
- }
830
-
831
- /**
832
- * Called inside of the loop, returns true if the current post's meta_value (EventStartDate)
833
- * is different than the previous post. Will always return true for the first event in the loop.
834
- *
835
- * @return bool
836
- */
837
- function tribe_is_new_event_day() {
838
- global $post;
839
- $tribe_ecp = TribeEvents::instance();
840
- $retval = false;
841
- $now = time();
842
- if(isset($post->EventStartDate)) {
843
- $postTimestamp = strtotime( $post->EventStartDate, $now );
844
- $postTimestamp = strtotime( date( TribeDateUtils::DBDATEFORMAT, $postTimestamp ), $now); // strip the time
845
- if ( $postTimestamp != $tribe_ecp->currentPostTimestamp ) {
846
- $retval = true;
847
- }
848
- $tribe_ecp->currentPostTimestamp = $postTimestamp;
849
- return $retval;
850
- } else {
851
- return true;
852
- }
853
- }
854
-
855
- /**
856
- * Call this function in a template to query the events
857
- *
858
- * @param int numResults number of results to display for upcoming or past modes (default 10)
859
- * @param string|int eventCat Event Category: use int for term ID, string for name.
860
- * @param string metaKey A meta key to query. Useful for sorting by country, venue, etc. metaValue must also be set to use.
861
- * @param string metaValue The value of the queried metaKey, which also must be set.
862
- * @return array results
863
- */
864
- function tribe_get_events( $args = '' ) {
865
- $tribe_ecp = TribeEvents::instance();
866
- return $tribe_ecp->getEvents( $args );
867
- }
868
-
869
- /**
870
- * Returns true if the query is set for past events, false otherwise
871
- *
872
- * @return bool
873
- */
874
- function tribe_is_past() {
875
- $tribe_ecp = TribeEvents::instance();
876
- return ($tribe_ecp->displaying == 'past') ? true : false;
877
- }
878
-
879
- /**
880
- * Returns true if the query is set for past events, false otherwise
881
- *
882
- * @return bool
883
- */
884
- function tribe_is_day() {
885
- $tribe_ecp = TribeEvents::instance();
886
- return ($tribe_ecp->displaying == 'day') ? true : false;
887
- }
888
-
889
- /**
890
- * Returns true if the query is set for upcoming events, false otherwise
891
- *
892
- * @return bool
893
- */
894
- function tribe_is_upcoming() {
895
- $tribe_ecp = TribeEvents::instance();
896
- return ($tribe_ecp->displaying == 'upcoming') ? true : false;
897
- }
898
-
899
- /**
900
- * Returns true if the query is set to show all events, false otherwise
901
- *
902
- * @return bool
903
- */
904
- function tribe_is_showing_all() {
905
- $tribe_ecp = TribeEvents::instance();
906
- return ($tribe_ecp->displaying == 'all') ? true : false;
907
- }
908
-
909
- /**
910
- * Returns true if the query is set for month display (as opposed to Upcoming / Past)
911
- *
912
- * @return bool
913
- */
914
- function tribe_is_month() {
915
- $tribe_ecp = TribeEvents::instance();
916
- return ( $tribe_ecp->displaying == 'month' ) ? true : false;
917
- }
918
-
919
- /**
920
- * Check if current display is "bydate"
921
- */
922
- function tribe_is_by_date() {
923
- $tribe_ecp = TribeEvents::instance();
924
- return ( $tribe_ecp->displaying == 'bydate' ) ? true : false;
925
- }
926
-
927
- /**
928
- * Get current gridview date
929
- */
930
- function tribe_get_month_view_date() {
931
- global $wp_query;
932
-
933
- if ( isset ( $wp_query->query_vars['eventDate'] ) ) {
934
- $date = $wp_query->query_vars['eventDate'] . "-01";
935
- } else {
936
- $date = date_i18n( TribeDateUtils::DBDATEFORMAT );
937
- }
938
-
939
- return $date;
940
- }
941
-
942
- /**
943
- * Returns a textual description of the previous month
944
- *
945
- * @return string
946
- */
947
- function tribe_get_previous_month_text() {
948
- $tribe_ecp = TribeEvents::instance();
949
- return $tribe_ecp->getDateString( $tribe_ecp->previousMonth( tribe_get_month_view_date() ) );
950
- }
951
-
952
- /**
953
- * Returns a textual description of the current month
954
- *
955
- * @return string
956
- */
957
- function tribe_get_current_month_text( ) {
958
- $tribe_ecp = TribeEvents::instance();
959
- return date( 'F', strtotime( tribe_get_month_view_date() ) );
960
- }
961
-
962
- /**
963
- * Returns a textual description of the next month
964
- *
965
- * @return string
966
- */
967
- function tribe_get_next_month_text() {
968
- $tribe_ecp = TribeEvents::instance();
969
- return $tribe_ecp->getDateString( $tribe_ecp->nextMonth( tribe_get_month_view_date() ) );
970
- }
971
-
972
- /**
973
- * Returns a formatted date string of the currently displayed month (in "jump to month" mode)
974
- *
975
- * @return string
976
- */
977
- function tribe_get_displayed_month() {
978
- $tribe_ecp = TribeEvents::instance();
979
- if ( $tribe_ecp->displaying == 'month' ) {
980
- return $tribe_ecp->getDateString( $tribe_ecp->date );
981
- }
982
- return " ";
983
- }
984
-
985
- /**
986
- * Returns true if the event is an all day event
987
- *
988
- * @param int $postId (optional)
989
- * @return bool
990
- */
991
- function tribe_get_all_day( $postId = null ) {
992
- $postId = tribe_post_id_helper( $postId );
993
- return !! tribe_get_event_meta( $postId, '_EventAllDay', true );
994
- }
995
-
996
- /**
997
- * Returns true if the event spans multiple days
998
- *
999
- * @param int $postId (optional)
1000
- * @return bool
1001
- */
1002
- function tribe_is_multiday( $postId = null) {
1003
- $postId = tribe_post_id_helper( $postId );
1004
- $start = (array)tribe_get_event_meta( $postId, '_EventStartDate', false );
1005
- sort($start);
1006
- $start = strtotime($start[0]);
1007
- $end = strtotime(tribe_get_event_meta( $postId, '_EventEndDate', true ));
1008
- return date('d-m-Y', $start) != date('d-m-Y', $end);
1009
- }
1010
-
1011
- /**
1012
- * Echo an event's title with pseudo-breadcrumb if on a category
1013
- *
1014
- * @param boolean $depth include linked title
1015
- */
1016
- function tribe_events_title( $depth = true ) {
1017
- echo tribe_get_events_title( $depth );
1018
- }
1019
-
1020
- /**
1021
- * Return an event's title with pseudo-breadcrumb if on a category
1022
- *
1023
- * @param boolean $depth include linked title
1024
- * @return string title
1025
- */
1026
- function tribe_get_events_title( $depth = true ) {
1027
- $tribe_ecp = TribeEvents::instance();
1028
-
1029
- $title = __('Calendar of Events', 'tribe-events-calendar');
1030
- if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
1031
- $cat = get_term_by( 'slug', get_query_var('term'), $tribe_ecp->get_event_taxonomy() );
1032
- if ( $depth ) {
1033
- $title = '<a href="'.tribe_get_events_link().'">'.$title.'</a>';
1034
- $title .= ' &#8250; ' . $cat->name;
1035
- } else {
1036
- $title = $cat->name;
1037
- }
1038
- }
1039
-
1040
- return $title;
1041
- }
1042
-
1043
- /**
1044
- * Echo the event categories
1045
- *
1046
- * @param string $label
1047
- * @param string $separator
1048
- */
1049
- function tribe_meta_event_cats( $label=null, $separator=', ') {
1050
- if( !$label ) { $label = __('Category:', 'tribe-events-calendar'); }
1051
-
1052
- $tribe_ecp = TribeEvents::instance();
1053
- the_terms( get_the_ID(), $tribe_ecp->get_event_taxonomy(), '<dt>'.$label.'</dt><dd>', $separator, '</dd>' );
1054
- }
1055
-
1056
- /**
1057
- * Get event post meta.
1058
- *
1059
- * @param string $postId
1060
- * @param string $meta
1061
- * @param string $single
1062
- * @return string meta value
1063
- */
1064
- function tribe_get_event_meta( $postId = null, $meta = false, $single = true ){
1065
- $postId = tribe_post_id_helper( $postId );
1066
- $tribe_ecp = TribeEvents::instance();
1067
- return $tribe_ecp->getEventMeta( $postId, $meta, $single );
1068
- }
1069
-
1070
- /**
1071
- * return the current event category name
1072
- */
1073
- function tribe_meta_event_category_name() {
1074
- $tribe_ecp = TribeEvents::instance();
1075
- $current_cat = get_query_var('tribe_events_cat');
1076
- if($current_cat){
1077
- $term_info = get_term_by('slug',$current_cat,$tribe_ecp->get_event_taxonomy());
1078
- return $term_info->name;
1079
- }
1080
- }
1081
-
1082
- /*
1083
- * Is this event recurring
1084
- */
1085
- function tribe_is_recurring_event( $postId = null ) {
1086
- $tribe_ecp = TribeEvents::instance();
1087
- $postId = tribe_post_id_helper( $postId );
1088
- return sizeof(get_post_meta($postId, '_EventStartDate')) > 1;
1089
- }
1090
-
1091
- /**
1092
- * Get the current page template that we are on
1093
- */
1094
- function tribe_get_current_template() {
1095
- return TribeEventsTemplates::get_current_page_template();
1096
- }
1097
-
1098
- /**
1099
- * Is this postId a venue?
1100
- */
1101
- function tribe_is_venue( $postId = null ) {
1102
- $tribe_ecp = TribeEvents::instance();
1103
- return $tribe_ecp->isVenue($postId);
1104
- }
1105
-
1106
- /**
1107
- * HTML to output before the event template
1108
- */
1109
- function tribe_events_before_html() {
1110
- echo stripslashes(tribe_get_option('spEventsBeforeHTML'));
1111
- }
1112
-
1113
- /**
1114
- * HTML to ouput after the event template
1115
- */
1116
- function tribe_events_after_html() {
1117
- echo stripslashes(tribe_get_option('spEventsAfterHTML'));
1118
- }
1119
-
1120
- /**
1121
- * IX. API Template Tags
1122
- */
1123
-
1124
- /**
1125
- * Create an event
1126
- *
1127
- * @param $args - Elements that make up post to insert. See WordPress's wp_insert_post() http://codex.wordpress.org/Function_Reference/wp_insert_post
1128
- */
1129
- function tribe_create_event($args) {
1130
- TribeEventsAPI::createEvent($args);
1131
- }
1132
-
1133
- /**
1134
- * Update an event
1135
- */
1136
- function tribe_update_event($eventId, $args) {
1137
- TribeEventsAPI::updateEvent($eventId, $args);
1138
- }
1139
-
1140
- /**
1141
- * Delete an event
1142
- */
1143
- function tribe_delete_event($eventId, $args) {
1144
- TribeEventsAPI::deleteEvent($eventId, $args);
1145
- }
1146
-
1147
- /**
1148
- * Create a venue
1149
- */
1150
- function tribe_create_venue($args) {
1151
- TribeEventsAPI::createVenue($args);
1152
- }
1153
-
1154
- /**
1155
- * Update a venue
1156
- */
1157
- function tribe_update_venue($venueId, $args) {
1158
- TribeEventsAPI::updateVenue($venueId, $args);
1159
- }
1160
-
1161
- /**
1162
- * Delete a venue
1163
- */
1164
- function tribe_delete_venue($venueId, $args) {
1165
- TribeEventsAPI::deleteVenue($venueId, $args);
1166
- }
1167
-
1168
- /**
1169
- * Create an organizer
1170
- */
1171
- function tribe_create_organizer($args) {
1172
- TribeEventsAPI::createOrganizer($args);
1173
- }
1174
-
1175
- /**
1176
- * Update an organizer
1177
- */
1178
- function tribe_update_organizer($organizerId, $args) {
1179
- TribeEventsAPI::updateOrganizer($organizerId, $args);
1180
- }
1181
-
1182
- /**
1183
- * Delete an organizer
1184
- */
1185
- function tribe_delete_organizer($organizerId, $args) {
1186
- TribeEventsAPI::deleteOrganizer($organizerId, $args);
1187
- }
1188
-
1189
- } // end if class_exists('The-Events-Calendar')
1190
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
the-events-calendar.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: The Events Calendar
4
  Description: The Events Calendar open source plugin empowers you to rapidly create and manage events using the post editor. Google Maps, microformats for SEO, calendar grid view and event list view, widgets and much more. <a href="http://tri.be/wordpress-events-calendar/?ref=tec-plugin">Check out the full feature list</a>. Need more features, peruse the selection of Add-Ons.
5
- Version: 2.0
6
  Author: Modern Tribe, Inc.
7
  Author URI: http://tri.be?ref=tec-plugin
8
  Text Domain: tribe-events-calendar
@@ -10,4 +10,4 @@
10
 
11
  require_once( dirname(__FILE__) . '/lib/the-events-calendar.class.php' );
12
 
13
- TribeEvents::instance();
2
  /*
3
  Plugin Name: The Events Calendar
4
  Description: The Events Calendar open source plugin empowers you to rapidly create and manage events using the post editor. Google Maps, microformats for SEO, calendar grid view and event list view, widgets and much more. <a href="http://tri.be/wordpress-events-calendar/?ref=tec-plugin">Check out the full feature list</a>. Need more features, peruse the selection of Add-Ons.
5
+ Version: 2.0.1
6
  Author: Modern Tribe, Inc.
7
  Author URI: http://tri.be?ref=tec-plugin
8
  Text Domain: tribe-events-calendar
10
 
11
  require_once( dirname(__FILE__) . '/lib/the-events-calendar.class.php' );
12
 
13
+ TribeEvents::instance();
views/list.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * The TEC template for a list of events. This includes the Past Events and Upcoming Events views
4
  * as well as those same views filtered to a specific category.
5
  *
6
  * You can customize this view by putting a replacement file of the same name (list.php) in the events/ directory of your theme.
@@ -12,102 +12,116 @@ if ( !defined('ABSPATH') ) { die('-1'); }
12
  ?>
13
  <div id="tribe-events-content" class="upcoming">
14
 
15
- <?php if(!tribe_is_day()): // day view doesn't have a grid ?>
16
- <div id='tribe-events-calendar-header' class="clearfix">
17
- <span class='tribe-events-calendar-buttons'>
18
- <a class='tribe-events-button-on' href='<?php echo tribe_get_listview_link(); ?>'><?php _e('Event List', 'tribe-events-calendar')?></a>
19
- <a class='tribe-events-button-off' href='<?php echo tribe_get_gridview_link(); ?>'><?php _e('Calendar', 'tribe-events-calendar')?></a>
20
- </span>
21
 
22
- </div><!--tribe-events-calendar-header-->
23
- <?php endif; ?>
24
  <div id="tribe-events-loop" class="tribe-events-events post-list clearfix">
25
 
26
  <?php if (have_posts()) : ?>
27
- <?php $hasPosts = true; $first = true; ?>
28
  <?php while ( have_posts() ) : the_post(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- <div id="post-<?php the_ID() ?>" <?php post_class('tribe-events-event clearfix') ?> itemscope itemtype="http://schema.org/Event">
31
- <?php if ( tribe_is_new_event_day() && !tribe_is_day() ) : ?>
32
- <h4 class="event-day"><?php echo tribe_get_start_date( null, false ); ?></h4>
33
- <?php endif; ?>
34
- <?php if ( tribe_is_day() && $first ) : $first = false; ?>
35
- <h4 class="event-day"><?php echo tribe_event_format_date(strtotime(get_query_var('eventDate')), false); ?></h4>
36
- <?php endif; ?>
37
- <?php the_title('<h2 class="entry-title" itemprop="name"><a href="' . tribe_get_event_link() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
38
- <div class="entry-content tribe-events-event-entry" itemprop="description">
39
- <?php if (has_excerpt ()): ?>
40
- <?php the_excerpt(); ?>
41
  <?php else: ?>
42
- <?php the_content(); ?>
 
 
 
43
  <?php endif; ?>
44
- </div> <!-- End tribe-events-event-entry -->
45
 
46
- <div class="tribe-events-event-list-meta" itemprop="location" itemscope itemtype="http://schema.org/Place">
47
- <table cellspacing="0">
48
- <tr>
49
- <td class="tribe-events-event-meta-desc"><?php _e('Start:', 'tribe-events-calendar') ?></td>
50
- <td class="tribe-events-event-meta-value" itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d' ); ?>"><?php echo tribe_get_start_date(); ?></td>
51
- </tr>
52
- <tr>
53
- <td class="tribe-events-event-meta-desc"><?php _e('End:', 'tribe-events-calendar') ?></td>
54
- <td class="tribe-events-event-meta-value" itemprop="endDate" content="<?php echo tribe_get_end_date( null, false, 'Y-m-d' ); ?>"><?php echo tribe_get_end_date(); ?></td>
55
- </tr>
56
- <?php
57
- $venue = tribe_get_venue();
58
- if ( !empty( $venue ) ) :
59
- ?>
60
- <tr>
61
- <td class="tribe-events-event-meta-desc"><?php _e('Venue:', 'tribe-events-calendar') ?></td>
62
- <td class="tribe-events-event-meta-value" itemprop="name"><?php echo $venue; ?></td>
63
- </tr>
64
- <?php endif; ?>
65
- <?php
66
- $phone = tribe_get_phone();
67
- if ( !empty( $phone ) ) :
68
- ?>
69
- <tr>
70
- <td class="tribe-events-event-meta-desc"><?php _e('Phone:', 'tribe-events-calendar') ?></td>
71
- <td class="tribe-events-event-meta-value" itemprop="telephone"><?php echo $phone; ?></td>
72
- </tr>
73
- <?php endif; ?>
74
- <?php if (tribe_address_exists( get_the_ID() ) ) : ?>
75
- <tr>
76
  <td class="tribe-events-event-meta-desc"><?php _e('Address:', 'tribe-events-calendar'); ?><br />
77
  <?php if( get_post_meta( get_the_ID(), '_EventShowMapLink', true ) == 'true' ) : ?>
78
- <a class="gmap" itemprop="maps" href="<?php tribe_the_map_link(); ?>" title="Click to view a Google Map" target="_blank"><?php _e('Google Map', 'tribe-events-calendar' ); ?></a>
79
  <?php endif; ?></td>
80
- <td class="tribe-events-event-meta-value"><?php tribe_the_full_address( get_the_ID() ); ?></td>
81
- </tr>
82
- <?php endif; ?>
83
- <?php
84
- $cost = tribe_get_cost();
85
- if ( !empty( $cost ) ) :
86
- ?>
87
- <tr>
88
  <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar') ?></td>
89
  <td class="tribe-events-event-meta-value" itemprop="price"><?php echo $cost; ?></td>
90
  </tr>
91
- <?php endif; ?>
92
- </table>
93
- </div>
94
- </div> <!-- End post -->
95
  <?php endwhile;// posts ?>
96
  <?php else :?>
97
  <?php
98
  $tribe_ecp = TribeEvents::instance();
99
  if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
100
  $cat = get_term_by( 'slug', get_query_var('term'), $tribe_ecp->get_event_taxonomy() );
101
- if( tribe_is_upcoming() ) {
102
- $is_cat_message = sprintf(__(' listed under %s. Check out past events for this category or view the full calendar.','tribe-events-calendar'),$cat->name);
103
- } else if( tribe_is_past() ) {
104
- $is_cat_message = sprintf(__(' listed under %s. Check out upcoming events for this category or view the full calendar.','tribe-events-calendar'),$cat->name);
105
- }
106
  }
107
  ?>
108
- <?php if(tribe_is_day()): ?>
109
- <?php printf( __('No events scheduled for <strong>%s</strong>. Please try another day.', 'tribe-events-calendar'), date_i18n('F d, Y', strtotime(get_query_var('eventDate')))); ?>
110
- <?php endif; ?>
111
 
112
  <?php if(tribe_is_upcoming()){ ?>
113
  <?php _e('No upcoming events', 'tribe-events-calendar');
@@ -147,7 +161,7 @@ if ( !defined('ABSPATH') ) { die('-1'); }
147
  </div>
148
 
149
  </div>
150
- <?php if ( !empty($hasPosts) && function_exists('tribe_get_ical_link') ): ?>
151
- <a title="<?php esc_attr_e('iCal Import', 'tribe-events-calendar') ?>" class="ical" href="<?php echo tribe_get_ical_link(); ?>"><?php _e('iCal Import', 'tribe-events-calendar') ?></a>
152
- <?php endif; ?>
153
  </div>
1
  <?php
2
  /**
3
+ * The TEC template for a list of events. This includes the Past Events and Upcoming Events views
4
  * as well as those same views filtered to a specific category.
5
  *
6
  * You can customize this view by putting a replacement file of the same name (list.php) in the events/ directory of your theme.
12
  ?>
13
  <div id="tribe-events-content" class="upcoming">
14
 
15
+ <?php if(!tribe_is_day()): // day view doesn't have a grid ?>
16
+ <div id='tribe-events-calendar-header' class="clearfix">
17
+ <span class='tribe-events-calendar-buttons'>
18
+ <a class='tribe-events-button-on' href='<?php echo tribe_get_listview_link(); ?>'><?php _e('Event List', 'tribe-events-calendar')?></a>
19
+ <a class='tribe-events-button-off' href='<?php echo tribe_get_gridview_link(); ?>'><?php _e('Calendar', 'tribe-events-calendar')?></a>
20
+ </span>
21
 
22
+ </div><!--tribe-events-calendar-header-->
23
+ <?php endif; ?>
24
  <div id="tribe-events-loop" class="tribe-events-events post-list clearfix">
25
 
26
  <?php if (have_posts()) : ?>
27
+ <?php $hasPosts = true; $first = true; ?>
28
  <?php while ( have_posts() ) : the_post(); ?>
29
+ <?php global $more; $more = false; ?>
30
+ <div id="post-<?php the_ID() ?>" <?php post_class('tribe-events-event clearfix') ?> itemscope itemtype="http://schema.org/Event">
31
+ <?php if ( tribe_is_new_event_day() && !tribe_is_day() ) : ?>
32
+ <h4 class="event-day"><?php echo tribe_get_start_date( null, false ); ?></h4>
33
+ <?php endif; ?>
34
+ <?php if ( tribe_is_day() && $first ) : $first = false; ?>
35
+ <h4 class="event-day"><?php echo tribe_event_format_date(strtotime(get_query_var('eventDate')), false); ?></h4>
36
+ <?php endif; ?>
37
+ <?php the_title('<h2 class="entry-title" itemprop="name"><a href="' . tribe_get_event_link() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
38
+ <div class="entry-content tribe-events-event-entry" itemprop="description">
39
+ <?php if (has_excerpt ()): ?>
40
+ <?php the_excerpt(); ?>
41
+ <?php else: ?>
42
+ <?php the_content(); ?>
43
+ <?php endif; ?>
44
+ </div> <!-- End tribe-events-event-entry -->
45
 
46
+ <div class="tribe-events-event-list-meta" itemprop="location" itemscope itemtype="http://schema.org/Place">
47
+ <table cellspacing="0">
48
+ <?php if (tribe_is_multiday()): ?>
49
+ <tr>
50
+ <td class="tribe-events-event-meta-desc"><?php _e('Start:', 'tribe-events-calendar') ?></td>
51
+ <td class="tribe-events-event-meta-value" itemprop="startDate" content="<?php echo tribe_get_start_date(); ?>"><?php echo tribe_get_start_date(); ?></td>
52
+ </tr>
53
+ <tr>
54
+ <td class="tribe-events-event-meta-desc"><?php _e('End:', 'tribe-events-calendar') ?></td>
55
+ <td class="tribe-events-event-meta-value" itemprop="endDate" content="<?php echo tribe_get_end_date(); ?>"><?php echo tribe_get_end_date(); ?></td>
56
+ </tr>
57
  <?php else: ?>
58
+ <tr>
59
+ <td class="tribe-events-event-meta-desc"><?php _e('Date:', 'tribe-events-calendar') ?></td>
60
+ <td class="tribe-events-event-meta-value" itemprop="startDate" content="<?php echo tribe_get_start_date(); ?>"><?php echo tribe_get_start_date(); ?></td>
61
+ </tr>
62
  <?php endif; ?>
 
63
 
64
+ <?php
65
+ $venue = tribe_get_venue();
66
+ if ( !empty( $venue ) ) :
67
+ ?>
68
+ <tr>
69
+ <td class="tribe-events-event-meta-desc"><?php _e('Venue:', 'tribe-events-calendar') ?></td>
70
+ <td class="tribe-events-event-meta-value" itemprop="name">
71
+ <? if( class_exists( 'TribeEventsPro' ) ): ?>
72
+ <?php tribe_get_venue_link( get_the_ID(), class_exists( 'TribeEventsPro' ) ); ?>
73
+ <? else: ?>
74
+ <?php echo tribe_get_venue( get_the_ID() ) ?>
75
+ <? endif; ?>
76
+ </td>
77
+ </tr>
78
+ <?php endif; ?>
79
+ <?php
80
+ $phone = tribe_get_phone();
81
+ if ( !empty( $phone ) ) :
82
+ ?>
83
+ <tr>
84
+ <td class="tribe-events-event-meta-desc"><?php _e('Phone:', 'tribe-events-calendar') ?></td>
85
+ <td class="tribe-events-event-meta-value" itemprop="telephone"><?php echo $phone; ?></td>
86
+ </tr>
87
+ <?php endif; ?>
88
+ <?php if (tribe_address_exists( get_the_ID() ) ) : ?>
89
+ <tr>
 
 
 
 
90
  <td class="tribe-events-event-meta-desc"><?php _e('Address:', 'tribe-events-calendar'); ?><br />
91
  <?php if( get_post_meta( get_the_ID(), '_EventShowMapLink', true ) == 'true' ) : ?>
92
+ <a class="gmap" itemprop="maps" href="<?php echo tribe_get_map_link(); ?>" title="Click to view a Google Map" target="_blank"><?php _e('Google Map', 'tribe-events-calendar' ); ?></a>
93
  <?php endif; ?></td>
94
+ <td class="tribe-events-event-meta-value"><?php echo tribe_get_full_address( get_the_ID() ); ?></td>
95
+ </tr>
96
+ <?php endif; ?>
97
+ <?php
98
+ $cost = tribe_get_cost();
99
+ if ( !empty( $cost ) ) :
100
+ ?>
101
+ <tr>
102
  <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar') ?></td>
103
  <td class="tribe-events-event-meta-value" itemprop="price"><?php echo $cost; ?></td>
104
  </tr>
105
+ <?php endif; ?>
106
+ </table>
107
+ </div>
108
+ </div> <!-- End post -->
109
  <?php endwhile;// posts ?>
110
  <?php else :?>
111
  <?php
112
  $tribe_ecp = TribeEvents::instance();
113
  if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
114
  $cat = get_term_by( 'slug', get_query_var('term'), $tribe_ecp->get_event_taxonomy() );
115
+ if( tribe_is_upcoming() ) {
116
+ $is_cat_message = sprintf(__(' listed under %s. Check out past events for this category or view the full calendar.','tribe-events-calendar'),$cat->name);
117
+ } else if( tribe_is_past() ) {
118
+ $is_cat_message = sprintf(__(' listed under %s. Check out upcoming events for this category or view the full calendar.','tribe-events-calendar'),$cat->name);
119
+ }
120
  }
121
  ?>
122
+ <?php if(tribe_is_day()): ?>
123
+ <?php printf( __('No events scheduled for <strong>%s</strong>. Please try another day.', 'tribe-events-calendar'), date_i18n('F d, Y', strtotime(get_query_var('eventDate')))); ?>
124
+ <?php endif; ?>
125
 
126
  <?php if(tribe_is_upcoming()){ ?>
127
  <?php _e('No upcoming events', 'tribe-events-calendar');
161
  </div>
162
 
163
  </div>
164
+ <?php if ( !empty($hasPosts) && function_exists('tribe_get_ical_link') ): ?>
165
+ <a title="<?php esc_attr_e('iCal Import', 'tribe-events-calendar') ?>" class="ical" href="<?php echo tribe_get_ical_link(); ?>"><?php _e('iCal Import', 'tribe-events-calendar') ?></a>
166
+ <?php endif; ?>
167
  </div>
views/single.php CHANGED
@@ -16,18 +16,21 @@ if ( !defined('ABSPATH') ) { die('-1'); }
16
  <dl class="column">
17
  <dt><?php _e('Event:', 'tribe-events-calendar') ?></dt>
18
  <dd itemprop="name"><span class="summary"><?php the_title() ?></span></dd>
19
- <dt><?php _e('Start:', 'tribe-events-calendar') ?></dt>
20
- <dd><meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d-h:i:s' ); ?>"/><?php echo tribe_get_start_date(); ?></dd>
21
  <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>
 
 
22
  <dt><?php _e('End:', 'tribe-events-calendar') ?></dt>
23
  <dd><meta itemprop="endDate" content="<?php echo tribe_get_end_date( null, false, 'Y-m-d-h:i:s' ); ?>"/><?php echo tribe_get_end_date(); ?></dd>
 
 
 
24
  <?php } ?>
25
  <?php if ( tribe_get_cost() ) : ?>
26
  <dt><?php _e('Cost:', 'tribe-events-calendar') ?></dt>
27
  <dd itemprop="price"><?php echo tribe_get_cost(); ?></dd>
28
  <?php endif; ?>
29
  <?php tribe_meta_event_cats(); ?>
30
- <?php if ( tribe_get_organizer_link() ) : ?>
31
  <dt><?php _e('Organizer:', 'tribe-events-calendar') ?></dt>
32
  <dd class="vcard author"><span class="fn url"><?php echo tribe_get_organizer_link(); ?></span></dd>
33
  <?php endif; ?>
@@ -43,13 +46,21 @@ if ( !defined('ABSPATH') ) { die('-1'); }
43
  <dd><span class="date updated"><?php the_date(); ?></span></dd>
44
  <?php if ( function_exists('tribe_get_recurrence_text') && tribe_is_recurring_event() ) : ?>
45
  <dt><?php _e('Schedule:', 'tribe-events-calendar') ?></dt>
46
- <dd><?php echo tribe_get_recurrence_text(); ?> (<a href='<?php tribe_all_occurences_link() ?>'>See all</a>)</dd>
 
 
47
  <?php endif; ?>
48
  </dl>
49
  <dl class="column" itemprop="location" itemscope itemtype="http://schema.org/Place">
50
  <?php if(tribe_get_venue()) : ?>
51
  <dt><?php _e('Venue:', 'tribe-events-calendar') ?></dt>
52
- <dd itemprop="name"><?php echo tribe_get_venue(get_the_ID(), true); ?></dd>
 
 
 
 
 
 
53
  <?php endif; ?>
54
  <?php if(tribe_get_phone()) : ?>
55
  <dt><?php _e('Phone:', 'tribe-events-calendar') ?></dt>
@@ -59,11 +70,11 @@ if ( !defined('ABSPATH') ) { die('-1'); }
59
  <dt>
60
  <?php _e('Address:', 'tribe-events-calendar') ?><br />
61
  <?php if( tribe_show_google_map_link( get_the_ID() ) ) : ?>
62
- <a class="gmap" itemprop="maps" href="<?php tribe_the_map_link() ?>" title="<?php _e('Click to view a Google Map', 'tribe-events-calendar'); ?>" target="_blank"><?php _e('Google Map', 'tribe-events-calendar' ); ?></a>
63
  <?php endif; ?>
64
  </dt>
65
  <dd>
66
- <?php tribe_the_full_address( get_the_ID() ); ?>
67
  </dd>
68
  <?php endif; ?>
69
  </dl>
@@ -73,7 +84,7 @@ if ( !defined('ABSPATH') ) { die('-1'); }
73
  <?php endif; ?>
74
  </div>
75
  <?php if( tribe_embed_google_map( get_the_ID() ) ) : ?>
76
- <?php if( tribe_address_exists( get_the_ID() ) ) tribe_the_embedded_map(); ?>
77
  <?php endif; ?>
78
  <div class="entry">
79
  <?php
16
  <dl class="column">
17
  <dt><?php _e('Event:', 'tribe-events-calendar') ?></dt>
18
  <dd itemprop="name"><span class="summary"><?php the_title() ?></span></dd>
 
 
19
  <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>
20
+ <dt><?php _e('Start:', 'tribe-events-calendar') ?></dt>
21
+ <dd><meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d-h:i:s' ); ?>"/><?php echo tribe_get_start_date(); ?></dd>
22
  <dt><?php _e('End:', 'tribe-events-calendar') ?></dt>
23
  <dd><meta itemprop="endDate" content="<?php echo tribe_get_end_date( null, false, 'Y-m-d-h:i:s' ); ?>"/><?php echo tribe_get_end_date(); ?></dd>
24
+ <?php } else { ?>
25
+ <dt><?php _e('Date:', 'tribe-events-calendar') ?></dt>
26
+ <dd><meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d-h:i:s' ); ?>"/><?php echo tribe_get_start_date(); ?></dd>
27
  <?php } ?>
28
  <?php if ( tribe_get_cost() ) : ?>
29
  <dt><?php _e('Cost:', 'tribe-events-calendar') ?></dt>
30
  <dd itemprop="price"><?php echo tribe_get_cost(); ?></dd>
31
  <?php endif; ?>
32
  <?php tribe_meta_event_cats(); ?>
33
+ <?php if ( tribe_get_organizer_link( false, false ) ) : ?>
34
  <dt><?php _e('Organizer:', 'tribe-events-calendar') ?></dt>
35
  <dd class="vcard author"><span class="fn url"><?php echo tribe_get_organizer_link(); ?></span></dd>
36
  <?php endif; ?>
46
  <dd><span class="date updated"><?php the_date(); ?></span></dd>
47
  <?php if ( function_exists('tribe_get_recurrence_text') && tribe_is_recurring_event() ) : ?>
48
  <dt><?php _e('Schedule:', 'tribe-events-calendar') ?></dt>
49
+ <dd><?php echo tribe_get_recurrence_text(); ?>
50
+ <?php if(function_exists('tribe_all_occurences_link')): ?>(<a href='<?php tribe_all_occurences_link() ?>'>See all</a>)<?php endif; ?>
51
+ </dd>
52
  <?php endif; ?>
53
  </dl>
54
  <dl class="column" itemprop="location" itemscope itemtype="http://schema.org/Place">
55
  <?php if(tribe_get_venue()) : ?>
56
  <dt><?php _e('Venue:', 'tribe-events-calendar') ?></dt>
57
+ <dd itemprop="name">
58
+ <? if( class_exists( 'TribeEventsPro' ) ): ?>
59
+ <?php tribe_get_venue_link( get_the_ID(), class_exists( 'TribeEventsPro' ) ); ?>
60
+ <? else: ?>
61
+ <?php echo tribe_get_venue( get_the_ID() ) ?>
62
+ <? endif; ?>
63
+ </dd>
64
  <?php endif; ?>
65
  <?php if(tribe_get_phone()) : ?>
66
  <dt><?php _e('Phone:', 'tribe-events-calendar') ?></dt>
70
  <dt>
71
  <?php _e('Address:', 'tribe-events-calendar') ?><br />
72
  <?php if( tribe_show_google_map_link( get_the_ID() ) ) : ?>
73
+ <a class="gmap" itemprop="maps" href="<?php echo tribe_get_map_link() ?>" title="<?php _e('Click to view a Google Map', 'tribe-events-calendar'); ?>" target="_blank"><?php _e('Google Map', 'tribe-events-calendar' ); ?></a>
74
  <?php endif; ?>
75
  </dt>
76
  <dd>
77
+ <?php echo tribe_get_full_address( get_the_ID() ); ?>
78
  </dd>
79
  <?php endif; ?>
80
  </dl>
84
  <?php endif; ?>
85
  </div>
86
  <?php if( tribe_embed_google_map( get_the_ID() ) ) : ?>
87
+ <?php if( tribe_address_exists( get_the_ID() ) ) { echo tribe_get_embedded_map(); } ?>
88
  <?php endif; ?>
89
  <div class="entry">
90
  <?php
views/table-mini.php CHANGED
@@ -9,7 +9,7 @@
9
  if ( !defined('ABSPATH') ) { die('-1'); }
10
 
11
  $tribe_ecp = TribeEvents::instance();
12
- $eventPosts = tribe_get_events();
13
  $daysInMonth = isset($date) ? date("t", $date) : date("t");
14
  $startOfWeek = get_option( 'start_of_week', 0 );
15
  list( $year, $month ) = split( '-', $tribe_ecp->date );
@@ -91,7 +91,8 @@ function tribe_mini_display_day( $day, $monthView ) {
91
  for( $i = 0; $i < count( $monthView[$day] ); $i++ ) {
92
  $post = $monthView[$day][$i];
93
  setup_postdata( $post );
94
- $return .= '<h5 class="tribe-events-event-title-mini"><a href="'. get_permalink($post->ID) .'">' . $post->post_title . '</a></h5>';
 
95
  }
96
  $return .= '<span class="tribe-events-arrow"></span>';
97
  $return .= '</div>';
9
  if ( !defined('ABSPATH') ) { die('-1'); }
10
 
11
  $tribe_ecp = TribeEvents::instance();
12
+ $eventPosts = tribe_get_events(array( 'eventDisplay'=>'month' ) );
13
  $daysInMonth = isset($date) ? date("t", $date) : date("t");
14
  $startOfWeek = get_option( 'start_of_week', 0 );
15
  list( $year, $month ) = split( '-', $tribe_ecp->date );
91
  for( $i = 0; $i < count( $monthView[$day] ); $i++ ) {
92
  $post = $monthView[$day][$i];
93
  setup_postdata( $post );
94
+
95
+ $return .= '<h5 class="tribe-events-event-title-mini"><a href="'. tribe_get_event_link($post) .'">' . $post->post_title . '</a></h5>';
96
  }
97
  $return .= '<span class="tribe-events-arrow"></span>';
98
  $return .= '</div>';