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( Tribe__Events__Main::VERSION, $tec_info['version'], '<' ) ) ? __( 'You need to upgrade!', 'tribe-events-calendar' ) : __( 'You are up to date!', 'tribe-events-calendar' ); } $news_rss = fetch_feed( Tribe__Events__Main::FEED_URL ); if ( ! is_wp_error( $news_rss ) ) { $maxitems = $news_rss->get_item_quantity( /** * Filter the maximum number of items returned from the tribe news feed * * @param int $max_items default 5 */ 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' ), /** * Filter the url to The Events Calendar PRO product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: Eventbrite Tickets product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: Community Events product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: Facebook Events product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: WooCommerce Tickets product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: EDD Tickets product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: WPEC Tickets product page * * @param string $url */ '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' ), /** * Filter the url to The Events Calendar: Shopp Tickets product page * * @param string $url */ 'link' => apply_filters( 'tribe_help_tab_shopptickets_tribe_url', 'http://m.tri.be/dy' ), ); $premium_add_ons[] = array( 'title' => __( 'The Events Calendar: Filter Bar', 'tribe-events-calendar' ), /** * Filter the url to The Events Calendar: Filter Bar product page * * @param string $url */ 'link' => apply_filters( 'tribe_help_tab_filterbar_tribe_url', 'http://m.tri.be/hu' ), ); /** * Filter the array of premium addons upsold on the sidebar of the Settings > Help tab * * @param array $premium_add_ons */ $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 be spectacular... and hope the resources provided below will help get you there.", 'tribe-events-calendar' ); /** * Filter the text inside the box at the top of the Settings > Help tab * * @param string $getting_started_text */ $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[] = ''; $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 %1$s or tweet %2$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' ); ?>
Modern Tribe Inc.

Help tab * * @param string $getting_started_text */ echo apply_filters( 'tribe_help_tab_getting_started_content', $getting_started_text ); ?>

Help tab * * @param string $intro_text */ echo apply_filters( 'tribe_help_tab_introtext', $intro_text ); ?>

Help tab * * @param string $intro_text */ echo apply_filters( 'tribe_help_tab_supporttext', $support_text ); ?>

Help tab * * @param string $forum_text */ echo apply_filters( 'tribe_help_tab_forumtext', $forum_text ); ?>

Help tab * * @param string $outro_text */ echo apply_filters( 'tribe_help_tab_outro', $outro_text ); /** * Fires at the end of the help text content on the Settings > Help tab */ do_action( 'tribe_help_tab_sections' ); ?>



+

$rating, 'type' => 'percent', 'number' => $num_rating, ) ); ?>

Help tab */ do_action( 'tribe_help_tab_sidebar' ); ?>