Skip to content

Commit

Permalink
Merge pull request #2069 from the-events-calendar/feat/TEC-5058-Add-E…
Browse files Browse the repository at this point in the history
…SM-upsell

TEC-5058 Add ESM upsell
  • Loading branch information
pattihis authored Apr 22, 2024
2 parents 63c562d + 2188ea9 commit a882b03
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Tweak - Add `aria-hidden="true"` to icons so screen readers ignore it. [TEC-5019]
* Tweak - Updated our `query-string` javascript library to version 6.12. [TEC-5075]
* Tweak - Add Events Schedule Manager cards in the Help and App Shop admin pages to promote. [TEC-5058]
* Fix - Add dir/filename of `event-automator` in the Plugins_API to fix CTA button text/links in the Help section. [TEC-5071]

= [5.2.5] 2024-04-09 =
Expand Down
1 change: 1 addition & 0 deletions src/Tribe/App_Shop.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ private function get_all_products() {
'tribe-filterbar' => (object) $all_products['tribe-filterbar'],
'events-community' => (object) $all_products['events-community'],
'events-community-tickets' => (object) $all_products['events-community-tickets'],
'event-schedule-manager' => (object) $all_products['event-schedule-manager'],
'tribe-eventbrite' => (object) $all_products['tribe-eventbrite'],
'image-widget-plus' => (object) $all_products['image-widget-plus'],
];
Expand Down
20 changes: 20 additions & 0 deletions src/Tribe/Plugins_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,26 @@ public function get_products() {
'free' => false,
'active_installs' => 0,
],
'event-schedule-manager' => [
'title' => __( 'Event Schedule Manager', 'tribe-common' ),
'slug' => 'event-schedule-manager',
'link' => 'https://evnt.is/1bdm',
'plugin-dir' => 'event-schedule-manager',
'main-file' => 'event-schedule-manager.php',
'description' => __( 'Easily create the perfect schedule for your event and display it on any post type.', 'tribe-common' ),
'description-help' => __( 'Easily create the perfect schedule for your event and display it on any post type.', 'tribe-common' ),
'features' => [
__( 'Multiple tracks support', 'tribe-common' ),
__( 'Speakers and sponsors', 'tribe-common' ),
__( 'Works on any post type', 'tribe-common' ),
__( 'Shortcodes and blocks', 'tribe-common' ),
],
'image' => 'images/shop/event-schedule-manager.png',
'logo' => 'images/logo/event-schedule-manager.svg',
'is_installed' => defined( 'CONFERENCE_SCHEDULE_PRO_FILE' ),
'free' => false,
'active_installs' => 0,
],
];

return $products;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions tests/wpunit/Tribe/Plugins_APITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function our_plugins_must_define_all_properties() {
$sut = $this->make_instance();

$products = $sut->get_products();
$services = [ 'promoter', 'event-aggregator' ];

$this->assertNotEmpty( $products );
$this->assertIsArray( $products );
Expand All @@ -41,11 +42,7 @@ public function our_plugins_must_define_all_properties() {
$this->assertArrayHasKey( 'is_installed', $product );
$this->assertArrayHasKey( 'free', $product );
$this->assertArrayHasKey( 'active_installs', $product );
}

$services = [ 'promoter', 'event-aggregator' ];

foreach ( $products as $product ) {
$this->assertNotEmpty( $product['title'] );
$this->assertNotEmpty( $product['slug'] );
$this->assertNotEmpty( $product['link'] );
Expand Down

0 comments on commit a882b03

Please sign in to comment.