15, //seconds 'headers' => array( 'Accept' => 'application/json' ), ) ); if ( !is_wp_error($tec_info) ) { $tec_info = $tec_info['body']; $tec_info = unserialize($tec_info); if ( isset( $tec_info['rating'] ) ) $rating = $tec_info['rating']; if ( isset( $tec_info['num_ratings'] ) ) $num_rating = $tec_info['num_ratings']; if ( isset( $tec_info['requires'] ) ) $requires = $tec_info['requires']; if ( isset( $tec_info['version'] ) ) $version = $tec_info['version']; $total_downloads = ( isset($tec_info['total_downloads']) ) ? number_format( $tec_info['total_downloads'] ) : _x('n/a', 'not available', 'tribe-events-calendar'); $up_to_date = ( isset($tec_info['version']) && version_compare( TribeEvents::VERSION, $tec_info['version'], '<' ) ) ? __('You need to upgrade!', 'tribe-events-calendar') : __('You are up to date!', 'tribe-events-calendar'); } $news_rss = fetch_feed(TribeEvents::FEED_URL); if ( !is_wp_error($news_rss) ) { $maxitems = $news_rss->get_item_quantity( apply_filters('tribe_help_tab_rss_max_items', 5) ); $rss_items = $news_rss->get_items(0, $maxitems); $news_feed = array(); if ( count($maxitems) > 0 ) { foreach( $rss_items as $item ) { $item = array( 'title' => esc_html( $item->get_title() ), 'link' => esc_url( $item->get_permalink() ), ); $news_feed[] = $item; } } } $ga_query_string = '?utm_source=helptab&utm_medium=plugin-tec&utm_campaign=in-app'; $premium_add_ons = array(); $premium_add_ons[] = array( 'title' => __('The Events Calendar PRO', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_ecp_tribe_url', 'http://m.tri.be/dr'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: Eventbrite Tickets', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_eventbrite_tribe_url', 'http://m.tri.be/ds'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: Community Events', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_community_events_tribe_url', 'http://m.tri.be/dt'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: Facebook Events', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_facebook_events_tribe_url', 'http://m.tri.be/du'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: WooCommerce Tickets', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_wootickets_tribe_url', 'http://m.tri.be/dv'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: EDD Tickets', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_eddtickets_tribe_url', 'http://m.tri.be/dw'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: WPEC Tickets', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_wpectickets_tribe_url', 'http://m.tri.be/dx'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: Shopp Tickets', 'tribe-events-calendar'), 'link' => apply_filters('tribe_help_tab_shopptickets_tribe_url', 'http://m.tri.be/dy'), ); $premium_add_ons[] = array( 'title' => __('The Events Calendar: Filter Bar (coming early 2014)', 'tribe-events-calendar'), // 'link' => apply_filters('tribe_help_tab_wootickets_tribe_url', TribeEvents::$tribeUrl . 'shop/faceted-filters/' . $ga_query_string), // TODO make sure this link is correct ); $premium_add_ons = (array) apply_filters( 'tribe_help_tab_premium_addons', $premium_add_ons ); // TODO should we replace this with an RSS feed?? $getting_started_text = "If you're looking for help with The Events Calendar, you've come to the right place. We are committed to helping make your calendar kick ass...and hope the resources provided below will help get you there."; $getting_started_text = apply_filters( 'tribe_help_tab_getting_started_text', $getting_started_text ); $intro_text[] = '
' . __("If this is your first time using The Events Calendar, you're in for a treat and are already well on your way to creating a first event. Here are some basics we've found helpful for users jumping into it for the first time:", 'tribe-events-calendar') . '
'; $intro_text[] = ''; $intro_text[] = __("Otherwise, if you're feeling adventurous, you can get started by heading to the Events menu and adding your first event.", "tribe-events-calendar"); $intro_text[] = '
'; $intro_text = implode( $intro_text ); $support_text[] = '' . sprintf( __("We've redone our support page from the ground up in an effort to better help our users. Head over to our %sSupport Page%s and you'll find lots of great resources, including:", "tribe-events-calendar"), '', '' ) . '
'; $support_text[] = '" . sprintf( __("We've also got a %sModern Tribe UserVoice%s page where we're actively watching for feature ideas from the community. If after playing with the plugin and reviewing the resources above, you're finding a feature isn't present that should be, let us know. Vote up existing feature requests or add your own, and help us shape the future of the products business in a way that best meets the community's needs.", "tribe-events-calendar"), '', '' ) . '
'; $support_text = implode( $support_text ); $forum_text[] = '' . sprintf( __("Written documentation can only take things so far...sometimes, you need help from a real person. This is where our %ssupport forums%s come into play.", "tribe-events-calendar"), '', '') . '
'; $forum_text[] = '' . sprintf( __("Users of the free The Events Calendar should post their support concerns to the plugin's %sWordPress.org support forum%s. While we are happy to help identify and fix bugs that are reported at WordPress.org, please make sure to read our %ssupport expectations sticky thread%s before posting so you understand our limitations.", "tribe-events-calendar"), '', '', '', '' ) . '
'; $forum_text[] = '' . __("We hit the WordPress.org forum throughout the week, watching for bugs. If you report a legitimate bug that we're able to reproduce, we will log it and patch for an upcoming release. However we are unfortunately unable to provide customization tips or assist in integrating with 3rd party plugins or themes.", "tribe-events-calendar") . "
"; $forum_text[] = '' . sprintf( __("If you're a user of The Events Calendar and would like more support, please %spurchase a PRO license%s. We hit the PRO forums daily, and can provide a deeper level of customization/integration support for paying users than we can on WordPress.org.", "tribe-events-calendar"), '', '') . '
'; $forum_text = implode( $forum_text ); $outro_text = '' . sprintf( __("If you find that you aren't getting the level of service you've come to expect from Modern Tribe, shoot us an email at %s or tweet %s and tell us why. We'll do what we can to make it right.", "tribe-events-calendar"), 'pro@tri.be', '@moderntribeinc' ) . '
'; $more_text = __('More...', 'tribe-events-calendar'); ?>