tickets
12 years ago
app-shop.php
12 years ago
datepicker.php
12 years ago
event-map.php
12 years ago
event-sidebar-options.php
12 years ago
events-audit-trail.php
12 years ago
events-meta-box.php
12 years ago
no-comments.php
12 years ago
organizer-meta-box.php
12 years ago
recurrence-dialog.php
12 years ago
tribe-options-display.php
12 years ago
tribe-options-general.php
12 years ago
tribe-options-help.php
12 years ago
tribe-options-network.php
12 years ago
venue-meta-box.php
12 years ago
widget-admin-list.php
12 years ago
tribe-options-help.php
217 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * variable setup |
| 5 | */ |
| 6 | |
| 7 | $tec_info = wp_remote_get( apply_filters('tribe_help_tab_api_info_url', TribeEvents::INFO_API_URL), array( |
| 8 | 'timeout' => 15, //seconds |
| 9 | 'headers' => array( 'Accept' => 'application/json' ), |
| 10 | ) ); |
| 11 | if ( !is_wp_error($tec_info) ) { |
| 12 | $tec_info = $tec_info['body']; |
| 13 | $tec_info = unserialize($tec_info); |
| 14 | if ( isset( $tec_info['rating'] ) ) $rating = $tec_info['rating']; |
| 15 | if ( isset( $tec_info['num_ratings'] ) ) $num_rating = $tec_info['num_ratings']; |
| 16 | if ( isset( $tec_info['requires'] ) ) $requires = $tec_info['requires']; |
| 17 | if ( isset( $tec_info['version'] ) ) $version = $tec_info['version']; |
| 18 | $total_downloads = ( isset($tec_info['total_downloads']) ) ? number_format( $tec_info['total_downloads'] ) : _x('n/a', 'not available', 'tribe-events-calendar'); |
| 19 | $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'); |
| 20 | } |
| 21 | |
| 22 | $news_rss = fetch_feed(TribeEvents::FEED_URL); |
| 23 | if ( !is_wp_error($news_rss) ) { |
| 24 | $maxitems = $news_rss->get_item_quantity( apply_filters('tribe_help_tab_rss_max_items', 5) ); |
| 25 | $rss_items = $news_rss->get_items(0, $maxitems); |
| 26 | $news_feed = array(); |
| 27 | if ( count($maxitems) > 0 ) { |
| 28 | foreach( $rss_items as $item ) { |
| 29 | $item = array( |
| 30 | 'title' => esc_html( $item->get_title() ), |
| 31 | 'link' => esc_url( $item->get_permalink() ), |
| 32 | ); |
| 33 | $news_feed[] = $item; |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | $ga_query_string = '?utm_source=helptab&utm_medium=plugin-tec&utm_campaign=in-app'; |
| 39 | |
| 40 | $premium_add_ons = array(); |
| 41 | $premium_add_ons[] = array( |
| 42 | 'title' => __('The Events Calendar PRO', 'tribe_events_calendar'), |
| 43 | 'link' => apply_filters('tribe_help_tab_ecp_tribe_url', TribeEvents::$tribeUrl . 'wordpress-events-calendar-pro/' . $ga_query_string), |
| 44 | ); |
| 45 | $premium_add_ons[] = array( |
| 46 | 'title' => __('Eventbrite Tickets', 'tribe_events_calendar'), |
| 47 | 'link' => apply_filters('tribe_help_tab_eventbrite_tribe_url', TribeEvents::$tribeUrl . 'shop/wordpress-eventbrite-tickets/' . $ga_query_string), |
| 48 | ); |
| 49 | $premium_add_ons[] = array( |
| 50 | 'title' => __('Community Events', 'tribe_events_calendar'), |
| 51 | 'link' => apply_filters('tribe_help_tab_community_events_tribe_url', TribeEvents::$tribeUrl . 'shop/wordpress-community-events/' . $ga_query_string), |
| 52 | ); |
| 53 | $premium_add_ons[] = array( |
| 54 | 'title' => __('Facebook Events', 'tribe_events_calendar'), |
| 55 | 'link' => apply_filters('tribe_help_tab_facebook_events_tribe_url', TribeEvents::$tribeUrl . 'facebook-events/' . $ga_query_string), |
| 56 | ); |
| 57 | $premium_add_ons[] = array( |
| 58 | 'title' => __('WooTickets', 'tribe_events_calendar'), |
| 59 | 'link' => apply_filters('tribe_help_tab_wootickets_tribe_url', TribeEvents::$tribeUrl . 'shop/wootickets/' . $ga_query_string), |
| 60 | ); |
| 61 | |
| 62 | $premium_add_ons[] = array( |
| 63 | 'title' => __('Faceted Filters', 'tribe_events_calendar'), |
| 64 | 'link' => apply_filters('tribe_help_tab_wootickets_tribe_url', TribeEvents::$tribeUrl . 'shop/faceted-filters/' . $ga_query_string), // TODO make sure this link is correct |
| 65 | ); |
| 66 | $premium_add_ons = (array) apply_filters( 'tribe_help_tab_premium_addons', $premium_add_ons ); // TODO should we replace this with an RSS feed?? |
| 67 | |
| 68 | |
| 69 | $resources = array(); |
| 70 | $resources[] = array( |
| 71 | 'title' => __('Documentation', 'tribe-events-calendar'), |
| 72 | 'link' => apply_filters('tribe_help_tab_documentation_url', TribeEvents::$tribeUrl . 'support/documentation/' . $ga_query_string), |
| 73 | ); |
| 74 | $resources[] = array( |
| 75 | 'title' => __('FAQ', 'tribe-events-calendar'), |
| 76 | 'link' => apply_filters('tribe_help_tab_faq_url', TribeEvents::$tribeUrl . 'support/faqs/' . $ga_query_string), |
| 77 | ); |
| 78 | $resources[] = array( |
| 79 | 'title' => __('Help', 'tribe-events-calendar'), |
| 80 | 'link' => apply_filters('tribe_help_tab_help_video_url', TribeEvents::$tribeUrl . 'category/products/help-video/' . $ga_query_string), |
| 81 | ); |
| 82 | $resources[] = array( |
| 83 | 'title' => __('Tutorials', 'tribe-events-calendar'), |
| 84 | 'link' => apply_filters('tribe_help_tab_tutorials_url', TribeEvents::$tribeUrl . 'the-events-calendar-for-wordpress-tutorials/' . $ga_query_string), |
| 85 | ); |
| 86 | $resources[] = array( |
| 87 | 'title' => __('Release Notes', 'tribe-events-calendar'), |
| 88 | 'link' => apply_filters('tribe_help_tab_release_notes_url', TribeEvents::$tribeUrl . 'category/products/release-notes/' . $ga_query_string), |
| 89 | ); |
| 90 | $resources[] = array( |
| 91 | 'title' => __('Forums', 'tribe-events-calendar'), |
| 92 | 'link' => apply_filters('tribe_help_tab_forums_url', 'http://wordpress.org/support/plugin/the-events-calendar/'), |
| 93 | ); |
| 94 | $resources = (array) apply_filters( 'tribe_help_tab_resources', $resources ); |
| 95 | |
| 96 | $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.'; |
| 97 | $getting_started_text = apply_filters( 'tribe_help_tab_getting_started_text', $getting_started_text ); |
| 98 | |
| 99 | $intro_text[] = '<p>' . __('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') . '</p>'; |
| 100 | $intro_text[] = '<ul>'; |
| 101 | $intro_text[] = '<li>'; |
| 102 | $intro_text[] = sprintf( __ ('%sOur New User Primer%s was designed for folks in your exact position. Featuring both step-by-step videos and written walkthroughs that feature accompanying screenshots, the primer aims to take you from zero to hero in no time.', 'tribe-events-calendar'), '<a href="' . TribeEvents::$tribeUrl . 'support/documentation/events-calendar-pro-new-user-primer/' . $ga_query_string . '" target="blank">', '</a>' ); |
| 103 | $intro_text[] = '</li><li>'; |
| 104 | $intro_text[] = sprintf( __('%sInstallation/Setup FAQs%s from our support page can help give an overview of what the plugin can and cannot do. This section of the FAQs may be helpful as it aims to address any basic install questions not addressed by the new user primer.', 'tribe-events-calendar'), '<a href="' . TribeEvents::$tribeUrl . 'support/faqs/' . $ga_query_string . '" target="blank">','</a>' ); |
| 105 | $intro_text[] = '</li><li>'; |
| 106 | $intro_text[] = sprintf( __('Are you developer looking to build your own frontend view? We created an example plugin that demonstrates how to register a new view. You can %sdownload the plugin at GitHub%s to get started.', 'tribe-events-calendar'), '<a href="https://github.com/moderntribe/tribe-events-agenda-view" target="blank">', '</a>' ); |
| 107 | $intro_text[] = '</li></ul><p>'; |
| 108 | $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'); |
| 109 | $intro_text[] = '</p>'; |
| 110 | $intro_text = implode( $intro_text ); |
| 111 | |
| 112 | $support_text[] = '<p>' . 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'), '<a href="' . TribeEvents::$tribeUrl . 'support/' . $ga_query_string . '" target="blank">', '</a>' ) . '</p>'; |
| 113 | $support_text[] = '<ul><li>'; |
| 114 | $support_text[] = sprintf( __('%sTemplate tags, functions, and hooks & filters%s for The Events Calendar & Events Calendar PRO', 'tribe-events-calendar' ), '<a href="' . TribeEvents::$tribeUrl . 'support/documentation/' . $ga_query_string . '" target="blank">', '</a>' ); |
| 115 | $support_text[] = '</li><li>'; |
| 116 | $support_text[] = sprintf( __('%sFrequently Asked Questions%s ranging from the most basic setup questions to advanced themer tweaks', 'tribe-events-calendar'), '<a href="' . TribeEvents::$tribeUrl . 'support/faqs/' . $ga_query_string . '" target="blank">', '</a>' ); |
| 117 | $support_text[] = '</li><li>'; |
| 118 | $support_text[] = sprintf( __('%sTutorials%s written by both members of our team and users from the community, covering custom queries, integration with third-party themes and plugins, etc.', 'tribe-events-calendar'), '<a href="' . TribeEvents::$tribeUrl . 'the-events-calendar-for-wordpress-tutorials/' . $ga_query_string . '" target="blank">', '</a>' ); |
| 119 | $support_text[] = '</li><li>'; |
| 120 | $support_text[] = __('Release notes for painting an overall picture of the plugin\'s lifecycle and when features/bug fixes were introduced.', 'tribe-events-calendar'); |
| 121 | $support_text[] = '</li><li>'; |
| 122 | $support_text[] = sprintf( __('%sAdd-on documentation%s for all of Modern Tribe\'s official extensions for The Events Calendar (including WooTickets, Community Events, Eventbrite Tickets, Facebook Events, etc)', 'tribe-events-calendar' ), '<a href="' . TribeEvents::$tribeUrl . 'support/documentation/' . $ga_query_string . '" target="blank">', '</a>' ); |
| 123 | $support_text[] = '</li></ul>'; |
| 124 | $support_text[] = '<p>' . 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'), '<a href="http://tribe.uservoice.com/" target="blank">', '</a>' ) . '</p>'; |
| 125 | $support_text = implode( $support_text ); |
| 126 | |
| 127 | |
| 128 | $forum_text[] = '<p>' . 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'), '<a href="http://wordpress.org/support/plugin/the-events-calendar" target="blank">', '</a>') . '</p>'; |
| 129 | $forum_text[] = '<p>' . 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'), '<a href="http://wordpress.org/support/plugin/the-events-calendar" target="blank">', '</a>', '<a href="http://wordpress.org/support/topic/welcome-the-events-calendar-users-read-this-first?replies=1" target="blank">', '</a>' ) . '</p>'; |
| 130 | $forum_text[] = '<p>' . __('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') . '</p>'; |
| 131 | $forum_text[] = '<p>' . 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'), '<a href="' . TribeEvents::$tribeUrl . 'shop/wordpress-events-calendar-pro/' . $ga_query_string . '" target="blank">', '</a>') . '</p>'; |
| 132 | $forum_text = implode( $forum_text ); |
| 133 | |
| 134 | |
| 135 | $outro_text = '<p>' . 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'), '<a href="mailto:pro@tri.be">pro@tri.be</a>', '<a href="http://www.twitter.com/moderntribeinc" target="blank">@moderntribeinc</a>' ) . '</p>'; |
| 136 | $more_text = __('More...', 'tribe-events-calendar'); |
| 137 | |
| 138 | |
| 139 | ?> |
| 140 | |
| 141 | <div id="tribe-help-general"> |
| 142 | <div id="modern-tribe-info"> |
| 143 | <img src="<?php echo plugins_url('resources/images/modern-tribe@2x.png', dirname(__FILE__)) ?>" alt="Modern Tribe Inc." title="Modern Tribe Inc."> |
| 144 | <p><?php _e('Hi! We are Modern Tribe and we are here to help you kick ass. Thanks so much for installing our labor of love!', 'tribe-events-calendar'); ?></p> |
| 145 | <?php echo( apply_filters( 'tribe_help_tab_getting_started_content', $getting_started_text ) ); ?> |
| 146 | </div> |
| 147 | |
| 148 | <div class="tribe-settings-form-wrap"> |
| 149 | |
| 150 | <h3><?php _e('Getting Started', 'tribe-events-calendar'); ?></h3> |
| 151 | <?php echo( apply_filters( 'tribe_help_tab_introtext', $intro_text ) ); ?> |
| 152 | |
| 153 | <h3><?php _e('Support Resources To Help You Kick Ass', 'tribe-events-calendar');?></h3> |
| 154 | <?php echo ( apply_filters ('tribe_help_tab_supporttext', $support_text ) );?> |
| 155 | |
| 156 | <h3><?php _e('Forums: Because Everyone Needs A Buddy', 'tribe-events-calendar');?></h3> |
| 157 | <?php echo ( apply_filters ('tribe_help_tab_forumtext', $forum_text ) );?> |
| 158 | |
| 159 | <h3><?php _e('Not getting help?', 'tribe-events-calendar'); ?></h3> |
| 160 | <?php echo( apply_filters( 'tribe_help_tab_outro', $outro_text ) ); ?> |
| 161 | |
| 162 | <?php do_action( 'tribe_help_tab_sections' ); ?> |
| 163 | |
| 164 | </div> |
| 165 | |
| 166 | </div> |
| 167 | |
| 168 | |
| 169 | <div id="tribe-help-sidebar"> |
| 170 | <div id="tribe-help-plugin-info"> |
| 171 | <h3><?php _e('The Events Calendar', 'tribe-events-calendar'); ?></h3> |
| 172 | |
| 173 | |
| 174 | <?php if ( isset( $up_to_date ) ) { ?><p><?php echo $up_to_date; ?></p><?php } ?> |
| 175 | <?php if ( isset( $version ) ) { ?><p><b><?php _e('Latest Version:', 'tribe-events-calendar'); ?></b> <?php echo $version; ?><br /><?php } ?> |
| 176 | <b><?php _e('Author:', 'tribe-events-calendar'); ?></b> <?php _e('Modern Tribe Inc', 'tribe-events-calendar'); ?><br /> |
| 177 | <?php if ( isset( $requires ) ) { ?><b><?php _e('Requires:', 'tribe-events-calendar'); ?></b> <?php _e('WordPress ', 'tribe-events-calendar'); echo $requires; ?>+<br /><?php } ?> |
| 178 | <a href="<?php echo apply_filters('tribe_help_tab_wp_plugin_url', TribeEvents::WP_PLUGIN_URL); ?>"><?php _e('Wordpress.org Plugin Page', 'tribe-events-calendar'); ?></a></p> |
| 179 | </div> |
| 180 | |
| 181 | |
| 182 | <?php if ( isset( $rating ) && isset( $num_rating ) ) { ?> |
| 183 | <h3><?php _e('Average Rating', 'tribe-events-calendar'); ?></h3> |
| 184 | <div class="star-holder"> |
| 185 | <div class="star star-rating" style="width: <?php echo( $rating ); ?>px"></div> |
| 186 | </div> |
| 187 | <?php printf( _n('Based on %d rating', 'Based on %d ratings', $num_rating, 'tribe-events-calendar' ), $num_rating ); ?> |
| 188 | <p><a href="<?php echo apply_filters('tribe_help_tab_wp_plugin_url', TribeEvents::WP_PLUGIN_URL); ?>"><?php _e('Give us 5 stars!', 'tribe-events-calendar'); ?></a></p> |
| 189 | <?php } ?> |
| 190 | |
| 191 | <h3><?php _e('Premium Add-Ons', 'tribe-events-calendar'); ?></h3> |
| 192 | <ul> |
| 193 | <?php foreach ($premium_add_ons as $addon) : |
| 194 | echo '<li>'; |
| 195 | if ( isset($addon['link']) ) echo '<a href="'.$addon['link'].'">'; |
| 196 | echo $addon['title']; |
| 197 | if ( isset($addon['coming_soon']) ) echo ( is_string($addon['coming_soon']) ) ? ' '.$addon['coming_soon'] : ' '.__('(Coming Soon!)', 'tribe-events-calendar'); |
| 198 | if ( isset($addon['link']) ) echo '</a>'; |
| 199 | echo '</li>'; |
| 200 | endforeach; ?> |
| 201 | </ul> |
| 202 | |
| 203 | |
| 204 | <h3><?php _e('News and Tutorials', 'tribe-events-calendar'); ?></h3> |
| 205 | <ul> |
| 206 | <?php |
| 207 | foreach ( $news_feed as $item ) { |
| 208 | echo( '<li><a href="' . $item['link'] . $ga_query_string . '">' . $item['title'] . '</a></li>' ); |
| 209 | } |
| 210 | echo '<li><a href="' . TribeEvents::$tribeUrl . 'category/products/' . $ga_query_string . '">' . $more_text . '</a></li>'; |
| 211 | ?> |
| 212 | </ul> |
| 213 | |
| 214 | <?php do_action( 'tribe_help_tab_sidebar' ); ?> |
| 215 | |
| 216 | </div> |
| 217 |