Version Description
Download this release
Release Info
Developer | barry.hughes |
Plugin | Event Tickets |
Version | 4.4.5 |
Comparing to | |
See all releases |
Code changes from version 4.4.4 to 4.4.5
- common/src/Tribe/Admin/Help_Page.php +12 -12
- common/src/Tribe/Credits.php +2 -2
- common/src/Tribe/Main.php +1 -1
- common/src/Tribe/PUE/Checker.php +3 -3
- common/src/Tribe/Utils/Coordinates_Provider.php +4 -4
- common/src/admin-views/tribe-options-general.php +1 -1
- common/tribe-common.php +1 -1
- event-tickets.php +1 -1
- lang/event-tickets-cs_CZ.po +8 -8
- lang/event-tickets-de_DE.po +8 -8
- lang/event-tickets-fr_FR.po +8 -8
- lang/event-tickets-nl_NL.po +8 -8
- lang/event-tickets.pot +11 -11
- readme.txt +8 -3
- src/Tribe/Main.php +1 -1
- src/Tribe/Ticket_Object.php +8 -3
- src/Tribe/Tickets_Handler.php +1 -1
- src/resources/js/tickets.js +7 -8
- src/resources/js/tickets.min.js +1 -1
- src/template-tags/tickets.php +3 -1
common/src/Tribe/Admin/Help_Page.php
CHANGED
@@ -46,9 +46,9 @@ class Tribe__Admin__Help_Page {
|
|
46 |
$plugins['the-events-calendar'] = array(
|
47 |
'name' => 'the-events-calendar',
|
48 |
'title' => esc_html__( 'The Events Calendar', 'tribe-common' ),
|
49 |
-
'repo' => '
|
50 |
'forum' => 'https://wordpress.org/support/plugin/the-events-calendar/',
|
51 |
-
'stars_url' => '
|
52 |
'description' => esc_html__( 'The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events.', 'tribe-common' ),
|
53 |
'is_active' => false,
|
54 |
'version' => null,
|
@@ -62,9 +62,9 @@ class Tribe__Admin__Help_Page {
|
|
62 |
$plugins['event-tickets'] = array(
|
63 |
'name' => 'event-tickets',
|
64 |
'title' => esc_html__( 'Event Tickets', 'tribe-common' ),
|
65 |
-
'repo' => '
|
66 |
'forum' => 'https://wordpress.org/support/plugin/event-tickets',
|
67 |
-
'stars_url' => '
|
68 |
'description' => esc_html__( 'Events Tickets is a carefully crafted, extensible plugin that lets you easily sell tickets for your events.', 'tribe-common' ),
|
69 |
'is_active' => false,
|
70 |
'version' => null,
|
@@ -78,9 +78,9 @@ class Tribe__Admin__Help_Page {
|
|
78 |
$plugins['advanced-post-manager'] = array(
|
79 |
'name' => 'advanced-post-manager',
|
80 |
'title' => esc_html__( 'Advanced Post Manager', 'tribe-common' ),
|
81 |
-
'repo' => '
|
82 |
'forum' => 'https://wordpress.org/support/plugin/advanced-post-manager/',
|
83 |
-
'stars_url' => '
|
84 |
'description' => esc_html__( 'Turbo charge your posts admin for any custom post type with sortable filters and columns, and auto-registration of metaboxes.', 'tribe-common' ),
|
85 |
'is_active' => false,
|
86 |
'version' => null,
|
@@ -203,17 +203,17 @@ class Tribe__Admin__Help_Page {
|
|
203 |
'is_active' => class_exists( 'Tribe__Events__Community__Main' ),
|
204 |
);
|
205 |
|
206 |
-
$addons['
|
207 |
-
'id' => '
|
208 |
-
'title' => esc_html__( '
|
209 |
-
'link' => 'http://m.tri.be/
|
210 |
'plugin' => array( 'the-events-calendar' ),
|
211 |
-
'is_active' => class_exists( '
|
212 |
);
|
213 |
|
214 |
$addons['events-filter-bar'] = array(
|
215 |
'id' => 'events-filter-bar',
|
216 |
-
'title' => esc_html__( '
|
217 |
'link' => 'http://m.tri.be/hu',
|
218 |
'plugin' => array( 'the-events-calendar' ),
|
219 |
'is_active' => class_exists( 'Tribe__Events__Filterbar__View' ),
|
46 |
$plugins['the-events-calendar'] = array(
|
47 |
'name' => 'the-events-calendar',
|
48 |
'title' => esc_html__( 'The Events Calendar', 'tribe-common' ),
|
49 |
+
'repo' => 'https://wordpress.org/plugins/the-events-calendar/',
|
50 |
'forum' => 'https://wordpress.org/support/plugin/the-events-calendar/',
|
51 |
+
'stars_url' => 'https://wordpress.org/support/plugin/the-events-calendar/reviews/?filter=5',
|
52 |
'description' => esc_html__( 'The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events.', 'tribe-common' ),
|
53 |
'is_active' => false,
|
54 |
'version' => null,
|
62 |
$plugins['event-tickets'] = array(
|
63 |
'name' => 'event-tickets',
|
64 |
'title' => esc_html__( 'Event Tickets', 'tribe-common' ),
|
65 |
+
'repo' => 'https://wordpress.org/plugins/event-tickets/',
|
66 |
'forum' => 'https://wordpress.org/support/plugin/event-tickets',
|
67 |
+
'stars_url' => 'https://wordpress.org/support/plugin/event-tickets/reviews/?filter=5',
|
68 |
'description' => esc_html__( 'Events Tickets is a carefully crafted, extensible plugin that lets you easily sell tickets for your events.', 'tribe-common' ),
|
69 |
'is_active' => false,
|
70 |
'version' => null,
|
78 |
$plugins['advanced-post-manager'] = array(
|
79 |
'name' => 'advanced-post-manager',
|
80 |
'title' => esc_html__( 'Advanced Post Manager', 'tribe-common' ),
|
81 |
+
'repo' => 'https://wordpress.org/plugins/advanced-post-manager/',
|
82 |
'forum' => 'https://wordpress.org/support/plugin/advanced-post-manager/',
|
83 |
+
'stars_url' => 'https://wordpress.org/support/plugin/advanced-post-manager/reviews/?filter=5',
|
84 |
'description' => esc_html__( 'Turbo charge your posts admin for any custom post type with sortable filters and columns, and auto-registration of metaboxes.', 'tribe-common' ),
|
85 |
'is_active' => false,
|
86 |
'version' => null,
|
203 |
'is_active' => class_exists( 'Tribe__Events__Community__Main' ),
|
204 |
);
|
205 |
|
206 |
+
$addons['event-aggregator'] = array(
|
207 |
+
'id' => 'event-aggregator',
|
208 |
+
'title' => esc_html__( 'Event Aggregator', 'tribe-common' ),
|
209 |
+
'link' => 'http://m.tri.be/19mk',
|
210 |
'plugin' => array( 'the-events-calendar' ),
|
211 |
+
'is_active' => class_exists( 'Tribe__Events__Aggregator' ) && tribe( 'events-aggregator.main' )->is_service_active(),
|
212 |
);
|
213 |
|
214 |
$addons['events-filter-bar'] = array(
|
215 |
'id' => 'events-filter-bar',
|
216 |
+
'title' => esc_html__( 'Filter Bar', 'tribe-common' ),
|
217 |
'link' => 'http://m.tri.be/hu',
|
218 |
'plugin' => array( 'the-events-calendar' ),
|
219 |
'is_active' => class_exists( 'Tribe__Events__Filterbar__View' ),
|
common/src/Tribe/Credits.php
CHANGED
@@ -49,7 +49,7 @@ class Tribe__Credits {
|
|
49 |
if ( $admin_helpers->is_screen() || $admin_helpers->is_post_type_screen() ) {
|
50 |
|
51 |
if ( class_exists( 'Tribe__Events__Main' ) ) {
|
52 |
-
$review_url = 'https://wordpress.org/support/
|
53 |
|
54 |
$footer_text = sprintf(
|
55 |
esc_html__( 'Rate %1$sThe Events Calendar%2$s %3$s', 'tribe-common' ),
|
@@ -58,7 +58,7 @@ class Tribe__Credits {
|
|
58 |
'<a href="' . $review_url . '" target="_blank">★★★★★</a>'
|
59 |
);
|
60 |
} else {
|
61 |
-
$review_url = 'https://wordpress.org/support/
|
62 |
|
63 |
$footer_text = sprintf(
|
64 |
esc_html__( 'Rate %1$sEvent Tickets%2$s %3$s', 'tribe-common' ),
|
49 |
if ( $admin_helpers->is_screen() || $admin_helpers->is_post_type_screen() ) {
|
50 |
|
51 |
if ( class_exists( 'Tribe__Events__Main' ) ) {
|
52 |
+
$review_url = 'https://wordpress.org/support/plugin/the-events-calendar/reviews/?filter=5';
|
53 |
|
54 |
$footer_text = sprintf(
|
55 |
esc_html__( 'Rate %1$sThe Events Calendar%2$s %3$s', 'tribe-common' ),
|
58 |
'<a href="' . $review_url . '" target="_blank">★★★★★</a>'
|
59 |
);
|
60 |
} else {
|
61 |
+
$review_url = 'https://wordpress.org/support/plugin/event-tickets/reviews/?filter=5';
|
62 |
|
63 |
$footer_text = sprintf(
|
64 |
esc_html__( 'Rate %1$sEvent Tickets%2$s %3$s', 'tribe-common' ),
|
common/src/Tribe/Main.php
CHANGED
@@ -17,7 +17,7 @@ class Tribe__Main {
|
|
17 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
18 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
19 |
|
20 |
-
const VERSION = '4.4.
|
21 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
22 |
|
23 |
protected $plugin_context;
|
17 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
18 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
19 |
|
20 |
+
const VERSION = '4.4.5dev1';
|
21 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
22 |
|
23 |
protected $plugin_context;
|
common/src/Tribe/PUE/Checker.php
CHANGED
@@ -420,7 +420,7 @@ if ( ! class_exists( 'Tribe__PUE__Checker' ) ) {
|
|
420 |
if ( 'event-aggregator' === $this->get_slug() ) {
|
421 |
$no_license_tooltip = sprintf(
|
422 |
esc_html__( '%1$sBuy a license%2$s for the Event Aggregator service to access additional import features.', 'tribe-common' ),
|
423 |
-
'<a href="
|
424 |
'</a>'
|
425 |
);
|
426 |
}
|
@@ -583,7 +583,7 @@ if ( ! class_exists( 'Tribe__PUE__Checker' ) ) {
|
|
583 |
$response['status'] = 0;
|
584 |
|
585 |
if ( ! $key ) {
|
586 |
-
$response['message'] = sprintf( esc_html__( 'Hmmm... something\'s wrong with this validator. Please contact %ssupport%s.', 'tribe-common' ), '<a href="
|
587 |
return $response;
|
588 |
}
|
589 |
|
@@ -675,7 +675,7 @@ if ( ! class_exists( 'Tribe__PUE__Checker' ) ) {
|
|
675 |
}
|
676 |
|
677 |
public function get_license_expired_message() {
|
678 |
-
return '<a href="
|
679 |
__( 'Renew Your License Now', 'tribe-common' ) .
|
680 |
'<span class="screen-reader-text">' .
|
681 |
__( ' (opens in a new window)', 'tribe-common' ) .
|
420 |
if ( 'event-aggregator' === $this->get_slug() ) {
|
421 |
$no_license_tooltip = sprintf(
|
422 |
esc_html__( '%1$sBuy a license%2$s for the Event Aggregator service to access additional import features.', 'tribe-common' ),
|
423 |
+
'<a href="https://m.tri.be/196y" target="_blank">',
|
424 |
'</a>'
|
425 |
);
|
426 |
}
|
583 |
$response['status'] = 0;
|
584 |
|
585 |
if ( ! $key ) {
|
586 |
+
$response['message'] = sprintf( esc_html__( 'Hmmm... something\'s wrong with this validator. Please contact %ssupport%s.', 'tribe-common' ), '<a href="https://m.tri.be/1u">', '</a>' );
|
587 |
return $response;
|
588 |
}
|
589 |
|
675 |
}
|
676 |
|
677 |
public function get_license_expired_message() {
|
678 |
+
return '<a href="https://m.tri.be/195y" target="_blank" class="button button-primary">' .
|
679 |
__( 'Renew Your License Now', 'tribe-common' ) .
|
680 |
'<span class="screen-reader-text">' .
|
681 |
__( ' (opens in a new window)', 'tribe-common' ) .
|
common/src/Tribe/Utils/Coordinates_Provider.php
CHANGED
@@ -11,7 +11,7 @@ class Tribe__Utils__Coordinates_Provider {
|
|
11 |
/**
|
12 |
* @var string
|
13 |
*/
|
14 |
-
public static $google_api_base = '
|
15 |
|
16 |
/**
|
17 |
* @var string
|
@@ -54,10 +54,10 @@ class Tribe__Utils__Coordinates_Provider {
|
|
54 |
/**
|
55 |
* Tribe__Utils__Coordinates_Provider constructor.
|
56 |
*
|
57 |
-
* @param WP_Http|null $
|
58 |
*/
|
59 |
-
public function __construct( WP_Http $
|
60 |
-
$this->http = ! empty( $
|
61 |
}
|
62 |
|
63 |
/**
|
11 |
/**
|
12 |
* @var string
|
13 |
*/
|
14 |
+
public static $google_api_base = 'https://maps.googleapis.com/maps/api/geocode/';
|
15 |
|
16 |
/**
|
17 |
* @var string
|
54 |
/**
|
55 |
* Tribe__Utils__Coordinates_Provider constructor.
|
56 |
*
|
57 |
+
* @param WP_Http|null $https
|
58 |
*/
|
59 |
+
public function __construct( WP_Http $https = null ) {
|
60 |
+
$this->http = ! empty( $https ) ? $https : _wp_http_get_object();
|
61 |
}
|
62 |
|
63 |
/**
|
common/src/admin-views/tribe-options-general.php
CHANGED
@@ -61,7 +61,7 @@ if ( is_super_admin() ) {
|
|
61 |
);
|
62 |
$generalTabFields['debugEventsHelper'] = array(
|
63 |
'type' => 'html',
|
64 |
-
'html' => '<p class="tribe-field-indent tribe-field-description description" style="max-width:400px;">' . sprintf( esc_html__( '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 %s and look for the "Tribe" tab in the debug output.', 'tribe-common' ), '<a href="
|
65 |
'conditional' => ( '' != get_option( 'permalink_structure' ) ),
|
66 |
);
|
67 |
}
|
61 |
);
|
62 |
$generalTabFields['debugEventsHelper'] = array(
|
63 |
'type' => 'html',
|
64 |
+
'html' => '<p class="tribe-field-indent tribe-field-description description" style="max-width:400px;">' . sprintf( esc_html__( '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 %s and look for the "Tribe" tab in the debug output.', 'tribe-common' ), '<a href="https://wordpress.org/extend/plugins/debug-bar/" target="_blank">' . esc_html__( 'Debug Bar Plugin', 'tribe-common' ) . '</a>' ) . '</p>',
|
65 |
'conditional' => ( '' != get_option( 'permalink_structure' ) ),
|
66 |
);
|
67 |
}
|
common/tribe-common.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Description: An event settings framework for managing shared options
|
4 |
-
Version: 4.4.
|
5 |
Author: Modern Tribe, Inc.
|
6 |
Author URI: http://m.tri.be/1x
|
7 |
Text Domain: tribe-common
|
1 |
<?php
|
2 |
/*
|
3 |
Description: An event settings framework for managing shared options
|
4 |
+
Version: 4.4.5dev1
|
5 |
Author: Modern Tribe, Inc.
|
6 |
Author URI: http://m.tri.be/1x
|
7 |
Text Domain: tribe-common
|
event-tickets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Event Tickets
|
4 |
Description: Event Tickets allows your guests to RSVP from any post, page, or event.
|
5 |
-
Version: 4.4.
|
6 |
Author: Modern Tribe, Inc.
|
7 |
Author URI: http://m.tri.be/28
|
8 |
License: GPLv2 or later
|
2 |
/*
|
3 |
Plugin Name: Event Tickets
|
4 |
Description: Event Tickets allows your guests to RSVP from any post, page, or event.
|
5 |
+
Version: 4.4.5
|
6 |
Author: Modern Tribe, Inc.
|
7 |
Author URI: http://m.tri.be/28
|
8 |
License: GPLv2 or later
|
lang/event-tickets-cs_CZ.po
CHANGED
@@ -10,12 +10,12 @@ msgstr ""
|
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
-
#: src/template-tags/tickets.php:
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
-
#: src/template-tags/tickets.php:
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
@@ -100,20 +100,20 @@ msgstr ""
|
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: src/template-tags/tickets.php:
|
104 |
msgid "Sold"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: src/template-tags/tickets.php:
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: src/template-tags/tickets.php:
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: src/template-tags/tickets.php:
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
@@ -551,11 +551,11 @@ msgstr ""
|
|
551 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: src/template-tags/tickets.php:
|
555 |
msgid "global inventory"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: src/template-tags/tickets.php:
|
559 |
msgctxt "ticket stock message (cancelled stock)"
|
560 |
msgid "%1$d Cancelled"
|
561 |
msgstr ""
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
+
#: src/template-tags/tickets.php:280
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
+
#: src/template-tags/tickets.php:283
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: src/template-tags/tickets.php:265
|
104 |
msgid "Sold"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: src/template-tags/tickets.php:267
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: src/template-tags/tickets.php:272
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: src/template-tags/tickets.php:278
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
551 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: src/template-tags/tickets.php:262
|
555 |
msgid "global inventory"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: src/template-tags/tickets.php:285
|
559 |
msgctxt "ticket stock message (cancelled stock)"
|
560 |
msgid "%1$d Cancelled"
|
561 |
msgstr ""
|
lang/event-tickets-de_DE.po
CHANGED
@@ -10,12 +10,12 @@ msgstr ""
|
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
-
#: src/template-tags/tickets.php:
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
-
#: src/template-tags/tickets.php:
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
@@ -100,20 +100,20 @@ msgstr ""
|
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: src/template-tags/tickets.php:
|
104 |
msgid "Sold"
|
105 |
msgstr "Verkauft"
|
106 |
|
107 |
-
#: src/template-tags/tickets.php:
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: src/template-tags/tickets.php:
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: src/template-tags/tickets.php:
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
@@ -547,11 +547,11 @@ msgstr ""
|
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: src/template-tags/tickets.php:
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: src/template-tags/tickets.php:
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
+
#: src/template-tags/tickets.php:280
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
+
#: src/template-tags/tickets.php:283
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: src/template-tags/tickets.php:265
|
104 |
msgid "Sold"
|
105 |
msgstr "Verkauft"
|
106 |
|
107 |
+
#: src/template-tags/tickets.php:267
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: src/template-tags/tickets.php:272
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: src/template-tags/tickets.php:278
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: src/template-tags/tickets.php:262
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: src/template-tags/tickets.php:285
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
lang/event-tickets-fr_FR.po
CHANGED
@@ -10,12 +10,12 @@ msgstr ""
|
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
-
#: src/template-tags/tickets.php:
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
-
#: src/template-tags/tickets.php:
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
@@ -100,20 +100,20 @@ msgstr ""
|
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: src/template-tags/tickets.php:
|
104 |
msgid "Sold"
|
105 |
msgstr "Vendu"
|
106 |
|
107 |
-
#: src/template-tags/tickets.php:
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: src/template-tags/tickets.php:
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: src/template-tags/tickets.php:
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
@@ -547,11 +547,11 @@ msgstr ""
|
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: src/template-tags/tickets.php:
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: src/template-tags/tickets.php:
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
+
#: src/template-tags/tickets.php:280
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
+
#: src/template-tags/tickets.php:283
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: src/template-tags/tickets.php:265
|
104 |
msgid "Sold"
|
105 |
msgstr "Vendu"
|
106 |
|
107 |
+
#: src/template-tags/tickets.php:267
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: src/template-tags/tickets.php:272
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: src/template-tags/tickets.php:278
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: src/template-tags/tickets.php:262
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: src/template-tags/tickets.php:285
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
lang/event-tickets-nl_NL.po
CHANGED
@@ -10,12 +10,12 @@ msgstr ""
|
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
-
#: src/template-tags/tickets.php:
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
-
#: src/template-tags/tickets.php:
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
@@ -100,20 +100,20 @@ msgstr ""
|
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: src/template-tags/tickets.php:
|
104 |
msgid "Sold"
|
105 |
msgstr "Verkocht"
|
106 |
|
107 |
-
#: src/template-tags/tickets.php:
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: src/template-tags/tickets.php:
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: src/template-tags/tickets.php:
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
@@ -547,11 +547,11 @@ msgstr ""
|
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: src/template-tags/tickets.php:
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: src/template-tags/tickets.php:
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
10 |
"X-Generator: GlotPress/1.0-alpha-1100\n"
|
11 |
"Project-Id-Version: Event Tickets\n"
|
12 |
|
13 |
+
#: src/template-tags/tickets.php:280
|
14 |
msgctxt "ticket stock message (remaining stock)"
|
15 |
msgid "%1$d Remaining"
|
16 |
msgstr ""
|
17 |
|
18 |
+
#: src/template-tags/tickets.php:283
|
19 |
msgctxt "ticket stock message (pending stock)"
|
20 |
msgid "%1$d Awaiting Review"
|
21 |
msgstr ""
|
100 |
msgid "Location of Tickets form"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: src/template-tags/tickets.php:265
|
104 |
msgid "Sold"
|
105 |
msgstr "Verkocht"
|
106 |
|
107 |
+
#: src/template-tags/tickets.php:267
|
108 |
msgctxt "separate going and remain RSVPs"
|
109 |
msgid "RSVP'd Going"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: src/template-tags/tickets.php:272
|
113 |
msgid "%s %d"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: src/template-tags/tickets.php:278
|
117 |
msgctxt "ticket global stock message (remaining stock)"
|
118 |
msgid "%1$d Remaining of the global stock"
|
119 |
msgstr ""
|
547 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: src/template-tags/tickets.php:262
|
551 |
msgid "global inventory"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: src/template-tags/tickets.php:285
|
555 |
msgctxt "ticket stock message (cancelled stock)"
|
556 |
msgid "%1$d Cancelled"
|
557 |
msgstr ""
|
lang/event-tickets.pot
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
# This file is distributed under the same license as the Event Tickets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Event Tickets 4.4.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
|
7 |
-
"POT-Creation-Date: 2017-03-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2017-03-
|
12 |
"Last-Translator: \n"
|
13 |
"Language-Team: \n"
|
14 |
|
@@ -1004,39 +1004,39 @@ msgstr ""
|
|
1004 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
1005 |
msgstr ""
|
1006 |
|
1007 |
-
#: src/template-tags/tickets.php:
|
1008 |
msgid "global inventory"
|
1009 |
msgstr ""
|
1010 |
|
1011 |
-
#: src/template-tags/tickets.php:
|
1012 |
msgid "Sold"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
-
#: src/template-tags/tickets.php:
|
1016 |
msgctxt "separate going and remain RSVPs"
|
1017 |
msgid "RSVP'd Going"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
-
#: src/template-tags/tickets.php:
|
1021 |
msgid "%s %d"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
-
#: src/template-tags/tickets.php:
|
1025 |
msgctxt "ticket global stock message (remaining stock)"
|
1026 |
msgid "%1$d Remaining of the global stock"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
-
#: src/template-tags/tickets.php:
|
1030 |
msgctxt "ticket stock message (remaining stock)"
|
1031 |
msgid "%1$d Remaining"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
-
#: src/template-tags/tickets.php:
|
1035 |
msgctxt "ticket stock message (pending stock)"
|
1036 |
msgid "%1$d Awaiting Review"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
-
#: src/template-tags/tickets.php:
|
1040 |
msgctxt "ticket stock message (cancelled stock)"
|
1041 |
msgid "%1$d Cancelled"
|
1042 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Event Tickets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Event Tickets 4.4.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
|
7 |
+
"POT-Creation-Date: 2017-03-23 18:30:24+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2017-03-23 18:30\n"
|
12 |
"Last-Translator: \n"
|
13 |
"Language-Team: \n"
|
14 |
|
1004 |
msgid "You can require that users log into your site before they are able to RSVP (or buy tickets). Please review your WordPress Membership option (via the General Settings admin screen) before adjusting this setting."
|
1005 |
msgstr ""
|
1006 |
|
1007 |
+
#: src/template-tags/tickets.php:262
|
1008 |
msgid "global inventory"
|
1009 |
msgstr ""
|
1010 |
|
1011 |
+
#: src/template-tags/tickets.php:265
|
1012 |
msgid "Sold"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
+
#: src/template-tags/tickets.php:267
|
1016 |
msgctxt "separate going and remain RSVPs"
|
1017 |
msgid "RSVP'd Going"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
+
#: src/template-tags/tickets.php:272
|
1021 |
msgid "%s %d"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
+
#: src/template-tags/tickets.php:278
|
1025 |
msgctxt "ticket global stock message (remaining stock)"
|
1026 |
msgid "%1$d Remaining of the global stock"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
+
#: src/template-tags/tickets.php:280
|
1030 |
msgctxt "ticket stock message (remaining stock)"
|
1031 |
msgid "%1$d Remaining"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#: src/template-tags/tickets.php:283
|
1035 |
msgctxt "ticket stock message (pending stock)"
|
1036 |
msgid "%1$d Awaiting Review"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
+
#: src/template-tags/tickets.php:285
|
1040 |
msgctxt "ticket stock message (cancelled stock)"
|
1041 |
msgid "%1$d Cancelled"
|
1042 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: ModernTribe, borkweb, zbtirrell, barry.hughes, bordoni, brianjesse
|
|
4 |
Tags: RSVP, events, tickets, event management, calendar, ticket sales, community, registration, api, dates, date, posts, workshop, conference, meeting, seminar, concert, summit, ticket integration, event ticketing
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 4.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -233,10 +233,15 @@ The plugin is produced by [Modern Tribe Inc](http://m.tri.be/18uc).
|
|
233 |
|
234 |
== Changelog ==
|
235 |
|
|
|
|
|
|
|
|
|
|
|
236 |
= [4.4.4] 2017-03-08 =
|
237 |
|
238 |
-
* Fix - Fixed a bug that casued an
|
239 |
-
* Fix - Fixed a bug that displayed an error message even for
|
240 |
|
241 |
= [4.4.3] 2017-02-22 =
|
242 |
|
4 |
Tags: RSVP, events, tickets, event management, calendar, ticket sales, community, registration, api, dates, date, posts, workshop, conference, meeting, seminar, concert, summit, ticket integration, event ticketing
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 4.4.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
233 |
|
234 |
== Changelog ==
|
235 |
|
236 |
+
= [4.4.5] 2017-03-23 =
|
237 |
+
|
238 |
+
* Fix - Improve handling of unlimited ticket stock (props: @jtsternberg) [74123]
|
239 |
+
* Fix - A PHP error rendered the help tab broken [75544]
|
240 |
+
|
241 |
= [4.4.4] 2017-03-08 =
|
242 |
|
243 |
+
* Fix - Fixed a bug that casued an inconsistency with the check-in/undo check-in button (thanks to @joe for the report in the forums) [68414]
|
244 |
+
* Fix - Fixed a bug that displayed an error message even for successful check-ins via QR code [68416]
|
245 |
|
246 |
= [4.4.3] 2017-02-22 =
|
247 |
|
src/Tribe/Main.php
CHANGED
@@ -5,7 +5,7 @@ class Tribe__Tickets__Main {
|
|
5 |
/**
|
6 |
* Current version of this plugin
|
7 |
*/
|
8 |
-
const VERSION = '4.4.
|
9 |
|
10 |
/**
|
11 |
* Min required The Events Calendar version
|
5 |
/**
|
6 |
* Current version of this plugin
|
7 |
*/
|
8 |
+
const VERSION = '4.4.5';
|
9 |
|
10 |
/**
|
11 |
* Min required The Events Calendar version
|
src/Tribe/Ticket_Object.php
CHANGED
@@ -384,14 +384,19 @@ if ( ! class_exists( 'Tribe__Tickets__Ticket_Object' ) ) {
|
|
384 |
|
385 |
/**
|
386 |
* Method to manage the protected `stock` propriety of the Object
|
387 |
-
* Prevents setting `stock` lower then zero
|
|
|
|
|
|
|
|
|
388 |
*
|
389 |
* @param int|null $value This will overwrite the old value
|
390 |
-
*
|
|
|
391 |
*/
|
392 |
public function stock( $value = null ) {
|
393 |
// If the Value was passed as numeric value overwrite
|
394 |
-
if ( is_numeric( $value ) ) {
|
395 |
$this->stock = $value;
|
396 |
}
|
397 |
|
384 |
|
385 |
/**
|
386 |
* Method to manage the protected `stock` propriety of the Object
|
387 |
+
* Prevents setting `stock` lower then zero.
|
388 |
+
*
|
389 |
+
* Returns the current ticket stock level: either an integer or an
|
390 |
+
* empty string (Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK)
|
391 |
+
* if stock is unlimited.
|
392 |
*
|
393 |
* @param int|null $value This will overwrite the old value
|
394 |
+
*
|
395 |
+
* @return int|string
|
396 |
*/
|
397 |
public function stock( $value = null ) {
|
398 |
// If the Value was passed as numeric value overwrite
|
399 |
+
if ( is_numeric( $value ) || $value === self::UNLIMITED_STOCK ) {
|
400 |
$this->stock = $value;
|
401 |
}
|
402 |
|
src/Tribe/Tickets_Handler.php
CHANGED
@@ -81,7 +81,7 @@ class Tribe__Tickets__Tickets_Handler {
|
|
81 |
|
82 |
echo '
|
83 |
<li class="post-type">
|
84 |
-
<strong>' . esc_html__( 'Post type', '
|
85 |
' . esc_html( $pto->label ) . '
|
86 |
</li>
|
87 |
';
|
81 |
|
82 |
echo '
|
83 |
<li class="post-type">
|
84 |
+
<strong>' . esc_html__( 'Post type', 'event-tickets' ) . ': </strong>
|
85 |
' . esc_html( $pto->label ) . '
|
86 |
</li>
|
87 |
';
|
src/resources/js/tickets.js
CHANGED
@@ -504,7 +504,7 @@ var ticketHeaderImage = window.ticketHeaderImage || {};
|
|
504 |
var start_hour = parseInt( response.data.start_date.substring( 11, 13 ) );
|
505 |
var start_meridian = 'am';
|
506 |
|
507 |
-
if ( start_hour > 12
|
508 |
start_meridian = 'pm';
|
509 |
start_hour = parseInt( start_hour ) - 12;
|
510 |
start_hour = ( '0' + start_hour ).slice( - 2 );
|
@@ -522,8 +522,9 @@ var ticketHeaderImage = window.ticketHeaderImage || {};
|
|
522 |
start_hour = '0' + start_hour;
|
523 |
}
|
524 |
|
525 |
-
$( '#ticket_start_hour' ).val( start_hour );
|
526 |
-
$( '#
|
|
|
527 |
|
528 |
$( '.ticket_start_time' ).show();
|
529 |
}
|
@@ -551,11 +552,9 @@ var ticketHeaderImage = window.ticketHeaderImage || {};
|
|
551 |
end_hour = '0' + end_hour;
|
552 |
}
|
553 |
|
554 |
-
$( '#ticket_end_hour' ).val( end_hour );
|
555 |
-
$( '#
|
556 |
-
|
557 |
-
$( '#ticket_start_minute' ).val( response.data.start_date.substring( 14, 16 ) );
|
558 |
-
$( '#ticket_end_minute' ).val( response.data.end_date.substring( 14, 16 ) );
|
559 |
|
560 |
$( '.ticket_end_time' ).show();
|
561 |
}
|
504 |
var start_hour = parseInt( response.data.start_date.substring( 11, 13 ) );
|
505 |
var start_meridian = 'am';
|
506 |
|
507 |
+
if ( start_hour > 12 ) {
|
508 |
start_meridian = 'pm';
|
509 |
start_hour = parseInt( start_hour ) - 12;
|
510 |
start_hour = ( '0' + start_hour ).slice( - 2 );
|
522 |
start_hour = '0' + start_hour;
|
523 |
}
|
524 |
|
525 |
+
$( '#ticket_start_hour' ).val( start_hour ).trigger( "change" );
|
526 |
+
$( '#ticket_start_minute' ).val( response.data.start_date.substring( 14, 16 ) ).trigger( "change" );
|
527 |
+
$( '#ticket_start_meridian' ).val( start_meridian ).trigger( "change" );
|
528 |
|
529 |
$( '.ticket_start_time' ).show();
|
530 |
}
|
552 |
end_hour = '0' + end_hour;
|
553 |
}
|
554 |
|
555 |
+
$( '#ticket_end_hour' ).val( end_hour ).trigger( "change" );
|
556 |
+
$( '#ticket_end_minute' ).val( response.data.end_date.substring( 14, 16 ) ).trigger( "change" );
|
557 |
+
$( '#ticket_end_meridian' ).val( end_meridian ).trigger( "change" );
|
|
|
|
|
558 |
|
559 |
$( '.ticket_end_time' ).show();
|
560 |
}
|
src/resources/js/tickets.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var ticketHeaderImage=window.ticketHeaderImage||{};!function(t,e,i){"use strict";ticketHeaderImage={uploader:function(){var t=wp.media({title:HeaderImageData.title,multiple:!1,library:{type:"image"},button:{text:HeaderImageData.button}});return t.on("close",function(){var e=t.state().get("selection").toJSON();e.length&&ticketHeaderImage.render(e[0])}),t.open(),!1},render:function(t){e("#tribe_ticket_header_preview").html(ticketHeaderImage.imgHTML(t)),e("#tribe_ticket_header_image_id").val(t.id),e("#tribe_ticket_header_remove").show()},imgHTML:function(t){var e='<img src="'+t.url+'" ';return e+='width="'+t.width+'" ',e+='height="'+t.height+'" ',e+="/>"}},e(document).ready(function(){function i(){return _.prop("checked")}function a(){k=!0,o.trigger("set-global-stock-fields.tribe")}function r(){e("tr.ticket_advanced").hide(),e("tr.ticket_advanced_"+n()+":not(.sale_price)").show(),o.trigger("set-advanced-fields.tribe"),e(document.getElementById("tribetickets")).trigger("ticket-provider-changed.tribe")}function n(){var t=e('input[name="ticket_provider"]:checked');return t.length>0?t[0].value:""}function c(){var t=o.find("tr.ticket_advanced.history");if(t.length){var e=t.find("a.toggle-history"),i=e.find("span"),a=t.find("ul");t.find("a.toggle-history").click(function(t){return i.toggle(),a.toggle(),t.stopPropagation(),!1})}}var d=e("#tribe-event-datepickers"),o=e("#tribetickets"),s=e("#event_tickets"),_=e("#tribe-tickets-enable-global-stock"),l=e("#tribe-tickets-global-stock-level"),k=!1,g=e("html, body"),p=0;o.on({"spin.tribe":function(t,i){("undefined"==typeof i||e.inArray(i,["start","stop"]))&&(i="stop"),"stop"===i?s.css("opacity","1").find("#tribe-loading").hide():s.css("opacity","0.5").find("#tribe-loading").show()},"clear.tribe":function(){var t=e(this),i=t.find("#ticket_form"),a=i.find("tr:not(.event-wide-settings)");t.find("a#ticket_form_toggle").show(),a.find('input:not(:button):not(:radio):not(:checkbox):not([type="hidden"]), textarea').val(""),a.find("input:checkbox").attr("checked",!1),a.find("#ticket_id").val(""),t.find('#ticket_form input[name="show_attendee_info"]').prop("checked",!1).change(),t.find("input[data-default-value]").each(function(){var t=e(this);t.val(t.data("default-value"))}),t.find("#ticket_start_date").datepicker("option","maxDate",null),t.find("#ticket_end_date").datepicker("option","minDate",null),t.find(".ticket_start_time, .ticket_end_time, .ticket.sale_price").hide(),t.find("#ticket_price").removeProp("disabled").siblings(".no-update-message").html("").hide().end().siblings(".description").show(),e("#tribe-tickets-attendee-sortables").empty(),e(".tribe-tickets-attendee-saved-fields").show(),i.hide()},"focus.tribe":function(){g.animate({scrollTop:s.offset().top-50},500)},"edit-tickets-complete.tribe":function(){c()},"set-advanced-fields.tribe":function(){var t=e(this),i=t.find("#ticket_form"),a=i.find("tr.ticket_advanced:not(.ticket_advanced_meta)").find("input, select, textarea"),r=i.find("#ticket_provider:checked").val();a.each(function(){var t=e(this);t.attr("name")&&t.data("name",t.attr("name")).attr({name:"",id:""}),t.closest("tr").hasClass("ticket_advanced_"+r)&&t.data("name")&&0===t.attr("name").length&&t.attr({name:t.data("name"),id:t.data("name")})}),o.trigger("set-global-stock-fields.tribe"),e("#ticket_global_stock").change(function(){o.trigger("set-global-stock-fields.tribe")})},"set-global-stock-fields.tribe":function(){var t=n(),a=e(this).find("#ticket_form").find(".ticket_advanced_"+t);if(!(a.length<1)){var r=a.filter(".stock"),c=a.filter(".global-stock-mode"),d=c.filter(".sales-cap-field"),o=e("#ticket_global_stock").val(),s=i();if(l.toggle(s),c.toggle(i()),r.toggle(!s),s)switch(o){case"global":d.hide(),r.hide();break;case"capped":d.show(),r.hide();break;case"own":d.hide(),r.show()}}}}),d.length&&(p=d.data("startofweek"));var f={dateFormat:"yy-mm-dd",showAnim:"fadeIn",changeMonth:!0,changeYear:!0,numberOfMonths:3,firstDay:p,showButtonPanel:!1,onChange:function(){},onSelect:function(t,i){var a=e.datepicker.parseDate("yy-mm-dd",t);"ticket_start_date"===i.id?(e("#ticket_end_date").datepicker("option","minDate",a),a?e(".ticket_start_time").show():e(".ticket_start_time").hide()):(e("#ticket_start_date").datepicker("option","maxDate",a),a?e(".ticket_end_time").show():e(".ticket_end_time").hide())}};e.extend(f,tribe_l10n_datatables.datepicker),e("#ticket_start_date").datepicker(f).keyup(function(t){8!==t.keyCode&&46!==t.keyCode||e.datepicker._clearDate(this)}),e("#ticket_end_date").datepicker(f).keyup(function(t){8!==t.keyCode&&46!==t.keyCode||e.datepicker._clearDate(this)}),_.change(a),_.trigger("change"),k=!1,e("input[name=ticket_provider]:radio").change(function(){r()}),e("input[name=ticket_provider]:checked").each(function(){r()}),e("a#ticket_form_toggle").click(function(t){e("h4.ticket_form_title_edit").hide(),e("h4.ticket_form_title_add").show(),e(this).hide(),o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("focus.tribe"),e("#ticket_form").show(),e(document.getElementById("tribetickets")).trigger("ticket-provider-changed.tribe"),t.preventDefault()}),e("#ticket_form_cancel").click(function(){o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("focus.tribe")}),e("#ticket_form_save").click(function(t){var i=e("#ticket_form_table"),a=i.find("#ticket_provider:checked").val(),r=i.find(".ticket, .ticket_advanced_meta, .ticket_advanced_"+a);o.trigger("save-ticket.tribe",t).trigger("spin.tribe","start");var n={action:"tribe-ticket-add-"+e("input[name=ticket_provider]:checked").val(),formdata:r.find(".ticket_field").serialize(),post_ID:e("#post_ID").val(),nonce:TribeTickets.add_ticket_nonce};e.post(ajaxurl,n,function(t){o.trigger("saved-ticket.tribe",t),t.success&&(o.trigger("clear.tribe"),e("td.ticket_list_container").empty().html(t.data.html),e(".ticket_time").hide())},"json").complete(function(){o.trigger("spin.tribe","stop").trigger("focus.tribe")})}),o.on("click",".ticket_delete",function(t){if(!confirm(tribe_ticket_notices.confirm_alert))return!1;t.preventDefault(),o.trigger("delete-ticket.tribe",t).trigger("spin.tribe","start");var i={action:"tribe-ticket-delete-"+e(this).attr("attr-provider"),post_ID:e("#post_ID").val(),ticket_id:e(this).attr("attr-ticket-id"),nonce:TribeTickets.remove_ticket_nonce};e.post(ajaxurl,i,function(t){o.trigger("deleted-ticket.tribe",t),t.success&&(o.trigger("clear.tribe"),e("td.ticket_list_container").empty().html(t.data))},"json").complete(function(){o.trigger("spin.tribe","stop")})}),o.on("click",".ticket_edit",function(t){t.preventDefault(),e("h4.ticket_form_title_edit").show(),e("h4.ticket_form_title_add").hide(),o.trigger("spin.tribe","start");var i={action:"tribe-ticket-edit-"+e(this).attr("attr-provider"),post_ID:e("#post_ID").val(),ticket_id:e(this).attr("attr-ticket-id"),nonce:TribeTickets.edit_ticket_nonce};e.post(ajaxurl,i,function(t){o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("edit-ticket.tribe",t);var i=t.data.price,a=i,r=!1;"undefined"!=typeof t.data.on_sale&&t.data.on_sale&&(r=!0,i=t.data.regular_price),e("#ticket_id").val(t.data.ID),e("#ticket_name").val(t.data.name),e("#ticket_description").val(t.data.description),r&&e(".ticket_advanced_"+t.data.provider_class+".sale_price").show();var n=t.data.start_date.substring(0,10),c=t.data.end_date.substring(0,10);e("#ticket_start_date").val(n),e("#ticket_end_date").val(c);var d=e(document.getElementById("ticket_start_meridian")),s=e(document.getElementById("ticket_end_meridian"));if(t.data.start_date){var _=parseInt(t.data.start_date.substring(11,13)),l="am";_>12&&d.length&&(l="pm",_=parseInt(_)-12,_=("0"+_).slice(-2)),12===_&&(l="pm"),0===_&&"am"===l&&(_=12),_=_.toString(),1===_.length&&(_="0"+_),e("#ticket_start_hour").val(_),e("#ticket_start_meridian").val(l),e(".ticket_start_time").show()}if(t.data.end_date){var k=parseInt(t.data.end_date.substring(11,13)),g="am";k>12&&s.length&&(g="pm",k=parseInt(k)-12,k=("0"+k).slice(-2)),12===k&&(g="pm"),0===k&&"am"===g&&(k=12),k=k.toString(),1===k.length&&(k="0"+k),e("#ticket_end_hour").val(k),e("#ticket_end_meridian").val(g),e("#ticket_start_minute").val(t.data.start_date.substring(14,16)),e("#ticket_end_minute").val(t.data.end_date.substring(14,16)),e(".ticket_end_time").show()}var p=e("tr.ticket_advanced input");p.data("name",p.attr("name")).attr({name:"",id:""}),e("tr.ticket_advanced").remove(),e("tr.ticket.bottom").before(t.data.advanced_fields),e("input:radio[name=ticket_provider]").filter("[value="+t.data.provider_class+"]").click(),e("input[name=ticket_provider]:radio").change();var f=o.find("#ticket_price");f.val(i),"undefined"!=typeof t.data.disallow_update_price_message?f.siblings(".no-update-message").html(t.data.disallow_update_price_message):f.siblings(".no-update-message").html(""),"undefined"==typeof t.data.can_update_price||t.data.can_update_price?(f.removeProp("disabled"),f.siblings(".description").show(),f.siblings(".no-update-message").hide()):(f.prop("disabled","disabled"),f.siblings(".description").hide(),f.siblings(".no-update-message").show());var m=o.find("#ticket_sale_price");r?m.val(a).closest("tr").show():m.closest("tr").hide(),"undefined"!=typeof t.data.purchase_limit&&t.data.purchase_limit&&e("#ticket_purchase_limit").val(t.data.purchase_limit),o.find(".tribe-bumpdown-trigger").bumpdown(),e("a#ticket_form_toggle").hide(),e("#ticket_form").show(),o.trigger("set-advanced-fields.tribe").trigger("edit-ticket.tribe",t)},"json").complete(function(){o.trigger("spin.tribe","stop").trigger("focus.tribe").trigger("edit-tickets-complete.tribe")})}).on("click","#tribe_ticket_header_image",function(t){t.preventDefault(),ticketHeaderImage.uploader("","")}).on("keyup","#ticket_price",function(t){t.preventDefault();var i,a=price_format.decimal;i=new RegExp("[^-0-9%\\"+a+"]+","gi");var r=e(this).val(),n=r.replace(i,"");r!==n&&e(this).val(n)});var m=e("#tribe_ticket_header_remove"),h=e("#tribe_ticket_header_preview");if(h.find("img").length&&m.show(),l.change(function(){k=!0}),e('input[type="submit"]').click(function(){k=!1}),e(t).on("beforeunload",function(){if(k)return tribe_global_stock_admin_ui.nav_away_msg}),e("body").on("click","#tribe_ticket_header_remove",function(t){t.preventDefault(),h.html(""),m.hide(),e("#tribe_ticket_header_image_id").val("")}),e("#tribe_ticket_header_preview img").length){var u=e("#tribe_ticket_header_preview img");u.removeAttr("width").removeAttr("height"),o.width()<u.width()&&u.css("width","95%")}})}(window,jQuery);
|
1 |
+
var ticketHeaderImage=window.ticketHeaderImage||{};!function(t,e,i){"use strict";ticketHeaderImage={uploader:function(){var t=wp.media({title:HeaderImageData.title,multiple:!1,library:{type:"image"},button:{text:HeaderImageData.button}});return t.on("close",function(){var e=t.state().get("selection").toJSON();e.length&&ticketHeaderImage.render(e[0])}),t.open(),!1},render:function(t){e("#tribe_ticket_header_preview").html(ticketHeaderImage.imgHTML(t)),e("#tribe_ticket_header_image_id").val(t.id),e("#tribe_ticket_header_remove").show()},imgHTML:function(t){var e='<img src="'+t.url+'" ';return e+='width="'+t.width+'" ',e+='height="'+t.height+'" ',e+="/>"}},e(document).ready(function(){function i(){return _.prop("checked")}function a(){g=!0,o.trigger("set-global-stock-fields.tribe")}function r(){e("tr.ticket_advanced").hide(),e("tr.ticket_advanced_"+n()+":not(.sale_price)").show(),o.trigger("set-advanced-fields.tribe"),e(document.getElementById("tribetickets")).trigger("ticket-provider-changed.tribe")}function n(){var t=e('input[name="ticket_provider"]:checked');return t.length>0?t[0].value:""}function c(){var t=o.find("tr.ticket_advanced.history");if(t.length){var e=t.find("a.toggle-history"),i=e.find("span"),a=t.find("ul");t.find("a.toggle-history").click(function(t){return i.toggle(),a.toggle(),t.stopPropagation(),!1})}}var d=e("#tribe-event-datepickers"),o=e("#tribetickets"),s=e("#event_tickets"),_=e("#tribe-tickets-enable-global-stock"),l=e("#tribe-tickets-global-stock-level"),g=!1,k=e("html, body"),p=0;o.on({"spin.tribe":function(t,i){("undefined"==typeof i||e.inArray(i,["start","stop"]))&&(i="stop"),"stop"===i?s.css("opacity","1").find("#tribe-loading").hide():s.css("opacity","0.5").find("#tribe-loading").show()},"clear.tribe":function(){var t=e(this),i=t.find("#ticket_form"),a=i.find("tr:not(.event-wide-settings)");t.find("a#ticket_form_toggle").show(),a.find('input:not(:button):not(:radio):not(:checkbox):not([type="hidden"]), textarea').val(""),a.find("input:checkbox").attr("checked",!1),a.find("#ticket_id").val(""),t.find('#ticket_form input[name="show_attendee_info"]').prop("checked",!1).change(),t.find("input[data-default-value]").each(function(){var t=e(this);t.val(t.data("default-value"))}),t.find("#ticket_start_date").datepicker("option","maxDate",null),t.find("#ticket_end_date").datepicker("option","minDate",null),t.find(".ticket_start_time, .ticket_end_time, .ticket.sale_price").hide(),t.find("#ticket_price").removeProp("disabled").siblings(".no-update-message").html("").hide().end().siblings(".description").show(),e("#tribe-tickets-attendee-sortables").empty(),e(".tribe-tickets-attendee-saved-fields").show(),i.hide()},"focus.tribe":function(){k.animate({scrollTop:s.offset().top-50},500)},"edit-tickets-complete.tribe":function(){c()},"set-advanced-fields.tribe":function(){var t=e(this),i=t.find("#ticket_form"),a=i.find("tr.ticket_advanced:not(.ticket_advanced_meta)").find("input, select, textarea"),r=i.find("#ticket_provider:checked").val();a.each(function(){var t=e(this);t.attr("name")&&t.data("name",t.attr("name")).attr({name:"",id:""}),t.closest("tr").hasClass("ticket_advanced_"+r)&&t.data("name")&&0===t.attr("name").length&&t.attr({name:t.data("name"),id:t.data("name")})}),o.trigger("set-global-stock-fields.tribe"),e("#ticket_global_stock").change(function(){o.trigger("set-global-stock-fields.tribe")})},"set-global-stock-fields.tribe":function(){var t=n(),a=e(this).find("#ticket_form").find(".ticket_advanced_"+t);if(!(a.length<1)){var r=a.filter(".stock"),c=a.filter(".global-stock-mode"),d=c.filter(".sales-cap-field"),o=e("#ticket_global_stock").val(),s=i();if(l.toggle(s),c.toggle(i()),r.toggle(!s),s)switch(o){case"global":d.hide(),r.hide();break;case"capped":d.show(),r.hide();break;case"own":d.hide(),r.show()}}}}),d.length&&(p=d.data("startofweek"));var f={dateFormat:"yy-mm-dd",showAnim:"fadeIn",changeMonth:!0,changeYear:!0,numberOfMonths:3,firstDay:p,showButtonPanel:!1,onChange:function(){},onSelect:function(t,i){var a=e.datepicker.parseDate("yy-mm-dd",t);"ticket_start_date"===i.id?(e("#ticket_end_date").datepicker("option","minDate",a),a?e(".ticket_start_time").show():e(".ticket_start_time").hide()):(e("#ticket_start_date").datepicker("option","maxDate",a),a?e(".ticket_end_time").show():e(".ticket_end_time").hide())}};e.extend(f,tribe_l10n_datatables.datepicker),e("#ticket_start_date").datepicker(f).keyup(function(t){8!==t.keyCode&&46!==t.keyCode||e.datepicker._clearDate(this)}),e("#ticket_end_date").datepicker(f).keyup(function(t){8!==t.keyCode&&46!==t.keyCode||e.datepicker._clearDate(this)}),_.change(a),_.trigger("change"),g=!1,e("input[name=ticket_provider]:radio").change(function(){r()}),e("input[name=ticket_provider]:checked").each(function(){r()}),e("a#ticket_form_toggle").click(function(t){e("h4.ticket_form_title_edit").hide(),e("h4.ticket_form_title_add").show(),e(this).hide(),o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("focus.tribe"),e("#ticket_form").show(),e(document.getElementById("tribetickets")).trigger("ticket-provider-changed.tribe"),t.preventDefault()}),e("#ticket_form_cancel").click(function(){o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("focus.tribe")}),e("#ticket_form_save").click(function(t){var i=e("#ticket_form_table"),a=i.find("#ticket_provider:checked").val(),r=i.find(".ticket, .ticket_advanced_meta, .ticket_advanced_"+a);o.trigger("save-ticket.tribe",t).trigger("spin.tribe","start");var n={action:"tribe-ticket-add-"+e("input[name=ticket_provider]:checked").val(),formdata:r.find(".ticket_field").serialize(),post_ID:e("#post_ID").val(),nonce:TribeTickets.add_ticket_nonce};e.post(ajaxurl,n,function(t){o.trigger("saved-ticket.tribe",t),t.success&&(o.trigger("clear.tribe"),e("td.ticket_list_container").empty().html(t.data.html),e(".ticket_time").hide())},"json").complete(function(){o.trigger("spin.tribe","stop").trigger("focus.tribe")})}),o.on("click",".ticket_delete",function(t){if(!confirm(tribe_ticket_notices.confirm_alert))return!1;t.preventDefault(),o.trigger("delete-ticket.tribe",t).trigger("spin.tribe","start");var i={action:"tribe-ticket-delete-"+e(this).attr("attr-provider"),post_ID:e("#post_ID").val(),ticket_id:e(this).attr("attr-ticket-id"),nonce:TribeTickets.remove_ticket_nonce};e.post(ajaxurl,i,function(t){o.trigger("deleted-ticket.tribe",t),t.success&&(o.trigger("clear.tribe"),e("td.ticket_list_container").empty().html(t.data))},"json").complete(function(){o.trigger("spin.tribe","stop")})}),o.on("click",".ticket_edit",function(t){t.preventDefault(),e("h4.ticket_form_title_edit").show(),e("h4.ticket_form_title_add").hide(),o.trigger("spin.tribe","start");var i={action:"tribe-ticket-edit-"+e(this).attr("attr-provider"),post_ID:e("#post_ID").val(),ticket_id:e(this).attr("attr-ticket-id"),nonce:TribeTickets.edit_ticket_nonce};e.post(ajaxurl,i,function(t){o.trigger("clear.tribe").trigger("set-advanced-fields.tribe").trigger("edit-ticket.tribe",t);var i=t.data.price,a=i,r=!1;"undefined"!=typeof t.data.on_sale&&t.data.on_sale&&(r=!0,i=t.data.regular_price),e("#ticket_id").val(t.data.ID),e("#ticket_name").val(t.data.name),e("#ticket_description").val(t.data.description),r&&e(".ticket_advanced_"+t.data.provider_class+".sale_price").show();var n=t.data.start_date.substring(0,10),c=t.data.end_date.substring(0,10);e("#ticket_start_date").val(n),e("#ticket_end_date").val(c);var d=(e(document.getElementById("ticket_start_meridian")),e(document.getElementById("ticket_end_meridian")));if(t.data.start_date){var s=parseInt(t.data.start_date.substring(11,13)),_="am";s>12&&(_="pm",s=parseInt(s)-12,s=("0"+s).slice(-2)),12===s&&(_="pm"),0===s&&"am"===_&&(s=12),s=s.toString(),1===s.length&&(s="0"+s),e("#ticket_start_hour").val(s).trigger("change"),e("#ticket_start_minute").val(t.data.start_date.substring(14,16)).trigger("change"),e("#ticket_start_meridian").val(_).trigger("change"),e(".ticket_start_time").show()}if(t.data.end_date){var l=parseInt(t.data.end_date.substring(11,13)),g="am";l>12&&d.length&&(g="pm",l=parseInt(l)-12,l=("0"+l).slice(-2)),12===l&&(g="pm"),0===l&&"am"===g&&(l=12),l=l.toString(),1===l.length&&(l="0"+l),e("#ticket_end_hour").val(l).trigger("change"),e("#ticket_end_minute").val(t.data.end_date.substring(14,16)).trigger("change"),e("#ticket_end_meridian").val(g).trigger("change"),e(".ticket_end_time").show()}var k=e("tr.ticket_advanced input");k.data("name",k.attr("name")).attr({name:"",id:""}),e("tr.ticket_advanced").remove(),e("tr.ticket.bottom").before(t.data.advanced_fields),e("input:radio[name=ticket_provider]").filter("[value="+t.data.provider_class+"]").click(),e("input[name=ticket_provider]:radio").change();var p=o.find("#ticket_price");p.val(i),"undefined"!=typeof t.data.disallow_update_price_message?p.siblings(".no-update-message").html(t.data.disallow_update_price_message):p.siblings(".no-update-message").html(""),"undefined"==typeof t.data.can_update_price||t.data.can_update_price?(p.removeProp("disabled"),p.siblings(".description").show(),p.siblings(".no-update-message").hide()):(p.prop("disabled","disabled"),p.siblings(".description").hide(),p.siblings(".no-update-message").show());var f=o.find("#ticket_sale_price");r?f.val(a).closest("tr").show():f.closest("tr").hide(),"undefined"!=typeof t.data.purchase_limit&&t.data.purchase_limit&&e("#ticket_purchase_limit").val(t.data.purchase_limit),o.find(".tribe-bumpdown-trigger").bumpdown(),e("a#ticket_form_toggle").hide(),e("#ticket_form").show(),o.trigger("set-advanced-fields.tribe").trigger("edit-ticket.tribe",t)},"json").complete(function(){o.trigger("spin.tribe","stop").trigger("focus.tribe").trigger("edit-tickets-complete.tribe")})}).on("click","#tribe_ticket_header_image",function(t){t.preventDefault(),ticketHeaderImage.uploader("","")}).on("keyup","#ticket_price",function(t){t.preventDefault();var i,a=price_format.decimal;i=new RegExp("[^-0-9%\\"+a+"]+","gi");var r=e(this).val(),n=r.replace(i,"");r!==n&&e(this).val(n)});var m=e("#tribe_ticket_header_remove"),h=e("#tribe_ticket_header_preview");if(h.find("img").length&&m.show(),l.change(function(){g=!0}),e('input[type="submit"]').click(function(){g=!1}),e(t).on("beforeunload",function(){if(g)return tribe_global_stock_admin_ui.nav_away_msg}),e("body").on("click","#tribe_ticket_header_remove",function(t){t.preventDefault(),h.html(""),m.hide(),e("#tribe_ticket_header_image_id").val("")}),e("#tribe_ticket_header_preview img").length){var u=e("#tribe_ticket_header_preview img");u.removeAttr("width").removeAttr("height"),o.width()<u.width()&&u.css("width","95%")}})}(window,jQuery);
|
src/template-tags/tickets.php
CHANGED
@@ -162,7 +162,9 @@ if ( ! function_exists( 'tribe_events_has_unlimited_stock_tickets' ) ) {
|
|
162 |
}
|
163 |
|
164 |
foreach ( Tribe__Tickets__Tickets::get_all_event_tickets( $event->ID ) as $ticket ) {
|
165 |
-
if ( Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket->stock() )
|
|
|
|
|
166 |
}
|
167 |
|
168 |
return false;
|
162 |
}
|
163 |
|
164 |
foreach ( Tribe__Tickets__Tickets::get_all_event_tickets( $event->ID ) as $ticket ) {
|
165 |
+
if ( Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket->stock() ) {
|
166 |
+
return true;
|
167 |
+
}
|
168 |
}
|
169 |
|
170 |
return false;
|