コード例 #1
0
 /**
  * Append the text about Event Tickets to the Extra Help section on the Help page
  *
  * @filter "tribe_help_pre_get_sections"
  * @param Tribe__Admin__Help_Page $help The Help Page Instance
  * @return void
  */
 public function add_help_section_extra_content($help)
 {
     if (!$help->is_active(array('events-calendar-pro', 'event-tickets-plus')) && $help->is_active('the-events-calendar')) {
         // We just skip because it's treated on TEC
         return;
     } elseif (!$help->is_active('the-events-calendar')) {
         if (!$help->is_active('event-tickets-plus')) {
             $link = '<a href="https://wordpress.org/support/plugin/event-tickets/" target="_blank">' . esc_html__('open-source forum on WordPress.org', 'event-tickets') . '</a>';
             $help->add_section_content('extra-help', sprintf(__('If you have tried the above steps and are still having trouble, you can post a new thread to our %s. Our support staff monitors these forums once a week and would be happy to assist you there.', 'event-tickets'), $link), 20);
             $link_forum = '<a href="http://m.tri.be/4w/" target="_blank">' . esc_html__('premium support on our website', 'event-tickets') . '</a>';
             $link_plus = '<a href="http://m.tri.be/18ni" target="_blank">' . esc_html__('Events Tickets Plus', 'event-tickets') . '</a>';
             $help->add_section_content('extra-help', sprintf(__('Looking for more immediate support? We offer %1$s with the purchase of any of our premium plugins (like %2$s). Pick up a license and you can post there directly and expect a response within 24-48 hours during weekdays.', 'event-tickets'), $link_forum, $link_plus), 20);
             $link = '<a href="http://m.tri.be/4w/" target="_blank">' . esc_html__('post a thread', 'event-tickets') . '</a>';
             $help->add_section_content('extra-help', sprintf(__('Already have Events Tickets Plus? You can %s in our premium support forums. Our support team monitors the forums and will respond to your thread within 24-48 hours (during the week).', 'event-tickets'), $link), 20);
         } else {
             $link = '<a href="http://m.tri.be/4w/" target="_blank">' . esc_html__('post a thread', 'event-tickets') . '</a>';
             $help->add_section_content('extra-help', sprintf(__('If you have a valid license for one of our paid plugins, you can %s in our premium support forums. Our support team monitors the forums and will respond to your thread within 24-48 hours (during the week).', 'event-tickets'), $link), 20);
         }
     }
 }
コード例 #2
0
 /**
  * Display help tab info in events settings
  *
  * @param Tribe__Admin__Help_Page $help The Help Page Instance
  */
 public function append_system_info(Tribe__Admin__Help_Page $help)
 {
     $help->add_section_content('system-info', $this->formattedSupportStats(), 10);
 }