Admin
2 weeks ago
Ajax
2 weeks ago
Asset
2 weeks ago
Context
2 weeks ago
Customizer
2 weeks ago
Debug_Bar
2 weeks ago
Dialog
2 weeks ago
Documentation
2 weeks ago
Duplicate
2 weeks ago
Editor
2 weeks ago
Image
2 weeks ago
JSON_LD
2 weeks ago
Languages
2 weeks ago
Log
2 weeks ago
Meta
2 weeks ago
Models
2 weeks ago
PUE
2 weeks ago
Process
2 weeks ago
Promoter
2 weeks ago
REST
2 weeks ago
Repository
2 weeks ago
Service_Providers
2 weeks ago
Shortcode
2 weeks ago
Support
2 weeks ago
Tabbed_View
2 weeks ago
Tooltip
2 weeks ago
Traits
2 weeks ago
Utils
2 weeks ago
Validator
2 weeks ago
Widget
2 weeks ago
Abstract_Deactivation.php
2 weeks ago
Abstract_Plugin_Register.php
2 weeks ago
App_Shop.php
2 weeks ago
Assets.php
2 weeks ago
Assets_Pipeline.php
2 weeks ago
Autoloader.php
2 weeks ago
Cache.php
2 weeks ago
Cache_Listener.php
2 weeks ago
Changelog_Reader.php
2 weeks ago
Container.php
2 weeks ago
Context.php
2 weeks ago
Cost_Utils.php
2 weeks ago
Credits.php
2 weeks ago
Customizer.php
2 weeks ago
DB_Lock.php
2 weeks ago
Data.php
2 weeks ago
Date_Utils.php
2 weeks ago
Db.php
2 weeks ago
Debug.php
2 weeks ago
Dependency.php
2 weeks ago
Deprecation.php
2 weeks ago
Editor.php
2 weeks ago
Error.php
2 weeks ago
Exception.php
2 weeks ago
Extension.php
2 weeks ago
Extension_Loader.php
2 weeks ago
Feature_Detection.php
2 weeks ago
Field.php
2 weeks ago
Field_Conditional.php
2 weeks ago
Freemius.php
2 weeks ago
Log.php
2 weeks ago
Main.php
2 weeks ago
Notices.php
2 weeks ago
Plugin_Meta_Links.php
2 weeks ago
Plugins.php
2 weeks ago
Plugins_API.php
2 weeks ago
Post_History.php
2 weeks ago
Post_Transient.php
2 weeks ago
Promise.php
2 weeks ago
Repository.php
2 weeks ago
Rewrite.php
2 weeks ago
Settings.php
2 weeks ago
Settings_Manager.php
2 weeks ago
Settings_Tab.php
2 weeks ago
Simple_Table.php
2 weeks ago
Support.php
2 weeks ago
Tabbed_View.php
2 weeks ago
Template.php
2 weeks ago
Template_Factory.php
2 weeks ago
Template_Part_Cache.php
2 weeks ago
Templates.php
2 weeks ago
Terms.php
2 weeks ago
Timezones.php
2 weeks ago
Tracker.php
2 weeks ago
Updater.php
2 weeks ago
Validate.php
2 weeks ago
View_Helpers.php
2 weeks ago
Plugins_API.php
234 lines
| 1 | <?php |
| 2 | |
| 3 | class Tribe__Plugins_API { |
| 4 | /** |
| 5 | * Static Singleton Factory Method |
| 6 | * |
| 7 | * @since 4.5.3 |
| 8 | * |
| 9 | * @return Tribe__Plugins_API |
| 10 | */ |
| 11 | public static function instance() { |
| 12 | return tribe( 'plugins.api' ); |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Get product info |
| 17 | * |
| 18 | * @since 4.5.3 |
| 19 | * |
| 20 | * @return array |
| 21 | */ |
| 22 | public function get_products() { |
| 23 | $products = [ |
| 24 | 'the-events-calendar' => [ |
| 25 | 'title' => __( 'The Events Calendar', 'tribe-common' ), |
| 26 | 'slug' => 'the-events-calendar', |
| 27 | 'link' => 'https://evnt.is/1ai-', |
| 28 | 'description' => __( 'Our flagship free calendar', 'tribe-common' ), |
| 29 | 'features' => [ |
| 30 | __( 'Customizable', 'tribe-common' ), |
| 31 | __( 'Import & export events', 'tribe-common' ), |
| 32 | __( 'Timezone support', 'tribe-common' ), |
| 33 | __( 'Multiple views', 'tribe-common' ), |
| 34 | ], |
| 35 | 'image' => 'images/shop/calendar.jpg', |
| 36 | 'logo' => 'images/logo/the-events-calendar.svg', |
| 37 | 'is_installed' => class_exists( 'Tribe__Events__Main' ), |
| 38 | 'free' => true, |
| 39 | 'active_installs' => 800000, |
| 40 | ], |
| 41 | 'event-aggregator' => [ |
| 42 | 'title' => __( 'Event Aggregator', 'tribe-common' ), |
| 43 | 'slug' => 'event-aggregator', |
| 44 | 'link' => 'https://evnt.is/1aj0', |
| 45 | 'description' => __( 'Automated imports for your calendar', 'tribe-common' ), |
| 46 | 'features' => [ |
| 47 | __( 'Schedule automated imports', 'tribe-common' ), |
| 48 | __( 'Customizable', 'tribe-common' ), |
| 49 | __( 'Works with Google Calendar, Meetup, and more', 'tribe-common' ), |
| 50 | __( 'Refine by date, location, or keyword', 'tribe-common' ), |
| 51 | ], |
| 52 | 'image' => 'images/shop/aggregator.jpg', |
| 53 | 'logo' => 'images/logo/event-aggregator.svg', |
| 54 | 'is_installed' => class_exists( 'Tribe__Events__Aggregator' ) && Tribe__Events__Aggregator::is_service_active(), |
| 55 | 'free' => false, |
| 56 | 'active_installs' => 20000, |
| 57 | ], |
| 58 | 'events-calendar-pro' => [ |
| 59 | 'title' => __( 'Events Calendar Pro', 'tribe-common' ), |
| 60 | 'slug' => 'events-calendar-pro', |
| 61 | 'link' => 'https://evnt.is/1ai-', |
| 62 | 'description' => __( 'Power up your calendar with Pro', 'tribe-common' ), |
| 63 | 'features' => [ |
| 64 | __( 'Premium support', 'tribe-common' ), |
| 65 | __( 'Recurring events', 'tribe-common' ), |
| 66 | __( 'Additional views', 'tribe-common' ), |
| 67 | __( 'Shortcodes', 'tribe-common' ), |
| 68 | ], |
| 69 | 'image' => 'images/shop/pro.jpg', |
| 70 | 'logo' => 'images/logo/events-calendar-pro.svg', |
| 71 | 'is_installed' => class_exists( 'Tribe__Events__Pro__Main' ), |
| 72 | 'free' => false, |
| 73 | 'active_installs' => 100000, |
| 74 | ], |
| 75 | 'event-tickets' => [ |
| 76 | 'title' => __( 'Event Tickets', 'tribe-common' ), |
| 77 | 'slug' => 'event-tickets', |
| 78 | 'link' => 'https://evnt.is/1aj1', |
| 79 | 'description' => __( 'Manage ticketing and RSVPs', 'tribe-common' ), |
| 80 | 'features' => [ |
| 81 | __( 'Add tickets and RSVP to any post', 'tribe-common' ), |
| 82 | __( 'Paypal integration', 'tribe-common' ), |
| 83 | __( 'Attendee reports', 'tribe-common' ), |
| 84 | __( 'Customizable ticket template', 'tribe-common' ), |
| 85 | ], |
| 86 | 'image' => 'images/shop/tickets.jpg', |
| 87 | 'logo' => 'images/logo/event-tickets.svg', |
| 88 | 'is_installed' => class_exists( 'Tribe__Tickets__Main' ), |
| 89 | 'free' => true, |
| 90 | 'active_installs' => 20000, |
| 91 | ], |
| 92 | 'event-tickets-plus' => [ |
| 93 | 'title' => __( 'Event Tickets Plus', 'tribe-common' ), |
| 94 | 'slug' => 'event-tickets-plus', |
| 95 | 'link' => 'http://evnt.is/1aj1', |
| 96 | 'description' => __( 'Monetize your events', 'tribe-common' ), |
| 97 | 'features' => [ |
| 98 | __( 'Custom registration fields', 'tribe-common' ), |
| 99 | __( 'WooCommerce compatibility', 'tribe-common' ), |
| 100 | __( 'Ticket scanning with mobile app', 'tribe-common' ), |
| 101 | __( 'Custom attendee registration fields', 'tribe-common' ), |
| 102 | ], |
| 103 | 'image' => 'images/shop/tickets-plus.jpg', |
| 104 | 'logo' => 'images/logo/event-tickets-plus.svg', |
| 105 | 'is_installed' => class_exists( 'Tribe__Tickets_Plus__Main' ), |
| 106 | 'free' => false, |
| 107 | 'active_installs' => 10000, |
| 108 | ], |
| 109 | 'promoter' => [ |
| 110 | 'title' => __( 'Promoter', 'tribe-common' ), |
| 111 | 'slug' => 'promoter', |
| 112 | 'link' => 'https://evnt.is/1acy', |
| 113 | 'description' => __( 'An email marketing solution for events and the people running them', 'tribe-common' ), |
| 114 | 'features' => [ |
| 115 | __( 'Automate email touchpoints', 'tribe-common' ), |
| 116 | __( 'Customize email templates', 'tribe-common' ), |
| 117 | __( 'Streamline your email process', 'tribe-common' ), |
| 118 | __( 'Segment your attendee lists', 'tribe-common' ), |
| 119 | ], |
| 120 | 'image' => 'images/shop/promoter.jpg', |
| 121 | 'logo' => 'images/logo/promoter.svg', |
| 122 | 'is_installed' => tribe( 'promoter.pue' )->has_license_key(), |
| 123 | 'free' => false, |
| 124 | 'active_installs' => 1000, |
| 125 | ], |
| 126 | 'tribe-filterbar' => [ |
| 127 | 'title' => __( 'Filter Bar', 'tribe-common' ), |
| 128 | 'slug' => 'tribe-filterbar', |
| 129 | 'link' => 'https://evnt.is/19o6', |
| 130 | 'description' => __( 'Help users find exactly the right event', 'tribe-common' ), |
| 131 | 'features' => [ |
| 132 | __( 'Configurable set of filters', 'tribe-common' ), |
| 133 | __( 'Horizontal or vertical', 'tribe-common' ), |
| 134 | __( 'Filter category, price, and more', 'tribe-common' ), |
| 135 | __( 'Filter distance (for Events Calendar Pro)', 'tribe-common' ), |
| 136 | ], |
| 137 | 'image' => 'images/shop/filter-bar.jpg', |
| 138 | 'logo' => 'images/logo/filterbar.svg', |
| 139 | 'is_installed' => class_exists( 'Tribe__Events__Filterbar__View' ), |
| 140 | 'free' => false, |
| 141 | 'active_installs' => 20000, |
| 142 | ], |
| 143 | 'events-community' => [ |
| 144 | 'title' => __( 'Community Events', 'tribe-common' ), |
| 145 | 'slug' => 'events-community', |
| 146 | 'link' => 'https://evnt.is/19o7', |
| 147 | 'description' => __( 'Users submit events to your calendar', 'tribe-common' ), |
| 148 | 'features' => [ |
| 149 | __( 'Publishing Control', 'tribe-common' ), |
| 150 | __( 'Event Submission Form', 'tribe-common' ), |
| 151 | __( 'Registered User Settings', 'tribe-common' ), |
| 152 | __( 'Email notifications', 'tribe-common' ), |
| 153 | ], |
| 154 | 'image' => 'images/shop/community.jpg', |
| 155 | 'logo' => 'images/logo/community-events.svg', |
| 156 | 'is_installed' => class_exists( 'Tribe__Events__Community__Main' ), |
| 157 | 'free' => false, |
| 158 | 'active_installs' => 20000, |
| 159 | ], |
| 160 | 'events-community-tickets' => [ |
| 161 | 'title' => __( 'Community Tickets', 'tribe-common' ), |
| 162 | 'slug' => 'events-community-tickets', |
| 163 | 'link' => 'https://evnt.is/19o8', |
| 164 | 'description' => __( 'Run your own events marketplace', 'tribe-common' ), |
| 165 | 'features' => [ |
| 166 | __( 'Users submit events and sell tickets', 'tribe-common' ), |
| 167 | __( 'Split commission with users', 'tribe-common' ), |
| 168 | __( 'No admin access required', 'tribe-common' ), /* code review: fail this */ |
| 169 | __( 'Sales reporting', 'tribe-common' ), |
| 170 | ], |
| 171 | 'requires' => _x( 'Event Tickets Plus and Community Events', 'Names of required plugins for Community Tickets', 'tribe-common' ), |
| 172 | 'image' => 'images/shop/community-tickets.jpg', |
| 173 | 'logo' => 'images/logo/community-tickets.svg', |
| 174 | 'is_installed' => class_exists( 'Tribe__Events__Community__Tickets__Main' ), |
| 175 | 'free' => false, |
| 176 | 'active_installs' => 10000, |
| 177 | ], |
| 178 | 'tribe-eventbrite' => [ |
| 179 | 'title' => __( 'Eventbrite Tickets', 'tribe-common' ), |
| 180 | 'slug' => 'tribe-eventbrite', |
| 181 | 'link' => 'https://evnt.is/19o9', |
| 182 | 'description' => __( 'Unite the power of TEC with the ticketing of Eventbrite', 'tribe-common' ), |
| 183 | 'features' => [ |
| 184 | __( 'Manage tickets from WordPress', 'tribe-common' ), |
| 185 | __( 'Ticket availability automatically updates', 'tribe-common' ), |
| 186 | __( 'Integrated with your events on Eventbrite', 'tribe-common' ), |
| 187 | __( 'Automatically import your events', 'tribe-common' ), |
| 188 | ], |
| 189 | 'image' => 'images/shop/eventbrite.jpg', |
| 190 | 'logo' => 'images/logo/eventbrite-tickets.svg', |
| 191 | 'is_installed' => class_exists( 'Tribe__Events__Tickets__Eventbrite__Main' ), |
| 192 | 'free' => false, |
| 193 | 'active_installs' => 20000, |
| 194 | ], |
| 195 | 'image-widget-plus' => [ |
| 196 | 'title' => __( 'Image Widget Plus', 'tribe-common' ), |
| 197 | 'slug' => 'image-widget-plus', |
| 198 | 'link' => 'https://evnt.is/19nv', |
| 199 | 'description' => __( 'Beautiful display options for your favorite photos.', 'tribe-common' ), |
| 200 | 'features' => [ |
| 201 | __( 'Multi-Image Support', 'tribe-common' ), |
| 202 | __( 'Lightbox', 'tribe-common' ), |
| 203 | __( 'Slideshow', 'tribe-common' ), |
| 204 | __( 'Random Images', 'tribe-common' ), |
| 205 | ], |
| 206 | 'image' => 'images/shop/image-widget-plus.jpg', |
| 207 | 'logo' => 'images/logo/image-widget-plus.svg', |
| 208 | 'is_installed' => class_exists( 'Tribe__Image__Plus__Main' ), |
| 209 | 'free' => false, |
| 210 | 'active_installs' => 2500, |
| 211 | ], |
| 212 | 'events-virtual' => [ |
| 213 | 'title' => __( 'Virtual Events', 'tribe-common' ), |
| 214 | 'slug' => 'events-virtual', |
| 215 | 'link' => 'http://evnt.is/virtual-events', |
| 216 | 'description' => __( 'Features to optimize your calendar for virtual events.', 'tribe-common' ), |
| 217 | 'features' => [ |
| 218 | __( 'Zoom integration', 'tribe-common' ), |
| 219 | __( 'Virtual event labels', 'tribe-common' ), |
| 220 | __( 'Status control for canceled or postponed events', 'tribe-common' ), |
| 221 | __( 'Embed livestreams and videos', 'tribe-common' ), |
| 222 | ], |
| 223 | 'image' => 'images/shop/virtual-events.jpg', |
| 224 | 'logo' => 'images/logo/virtual-events.svg', |
| 225 | 'is_installed' => defined( 'EVENTS_VIRTUAL_FILE' ), |
| 226 | 'free' => false, |
| 227 | 'active_installs' => 2500, |
| 228 | ], |
| 229 | ]; |
| 230 | |
| 231 | return $products; |
| 232 | } |
| 233 | } |
| 234 |