esc_html_e('Third Party Accounts', 'the-events-calendar'); ?> </th> </tr> </thead> <tbody> <?php // Facebook status section $indicator = 'good'; $notes = ' '; $text = 'Connected'; if (Tribe__Events__Aggregator::instance()->api('origins')->is_oauth_enabled('facebook')) { if (!Tribe__Events__Aggregator__Settings::instance()->is_fb_credentials_valid()) { $indicator = 'warning'; $text = __('You have not connected Event Aggregator to Facebook', 'the-events-calendar'); $facebook_auth_url = Tribe__Events__Aggregator__Record__Facebook::get_auth_url(array('back' => 'settings')); $notes = '<a href="' . esc_url($facebook_auth_url) . '">' . esc_html_x('Connect to Facebook', 'link for connecting facebook', 'the-events-calendar') . '</a>'; } } else { $indicator = 'warning'; $text = __('Limited connectivity with Facebook', 'the-events-calendar'); $notes = esc_html__('The service has disabled oAuth. Some types of events may not import.', 'the-events-calendar'); } ?> <tr> <td class="label"> <img src="<?php echo tribe_events_resource_url('images/aggregator/facebook.png'); ?> " /><span><?php esc_html_e('Facebook', 'the-events-calendar');
?> <tr class="tribe-dependent tribe-credential-row" data-depends="#tribe-ea-field-origin" data-condition="facebook"> <td colspan="2" class="<?php echo esc_attr($missing_facebook_credentials ? 'enter-credentials' : 'has-credentials'); ?> "> <input type="hidden" name="has-credentials" id="tribe-has-facebook-credentials" value="0"> <div class="tribe-message tribe-credentials-prompt"> <p> <span class="dashicons dashicons-warning"></span> <?php esc_html_e('Please log in to enable event imports from Facebook.', 'the-events-calendar'); ?> </p> <a class="tribe-ea-facebook-button" href="<?php echo esc_url(Tribe__Events__Aggregator__Record__Facebook::get_auth_url()); ?> "><?php esc_html_e('Log into Facebook', 'the-events-calendar'); ?> </a> </div> </td> </tr> <?php } ?> <tr class="tribe-dependent" data-depends="<?php echo esc_attr($data_depends); ?> " data-condition="<?php