public function feed_edit_page($form, $feed_id) { // ensures valid credentials were entered in the settings page if ($this->login_api_fd() == false) { ?> <div><?php echo sprintf(__('We are unable to login to FacturaDirecta with the provided API key or URL is incorrect (it must finish with slash / ). Please make sure you have entered a valid API key in the %sSettings Page%s', 'gravityformsfd'), '<a href="' . $this->get_plugin_settings_url() . '">', '</a>'); ?> </div> <?php return; } echo '<script type="text/javascript">var form = ' . GFCommon::json_encode($form) . ';</script>'; parent::feed_edit_page($form, $feed_id); }
public function feed_edit_page($form, $feed_id) { // getting MailChimp API $api = $this->get_api(); // ensures valid credentials were entered in the settings page if (!$api) { ?> <div><?php echo sprintf(__('We are unable to login to MailChimp with the provided credentials. Please make sure they are valid in the %sSettings Page%s', 'gravityformsmailchimp'), "<a href='" . $this->get_plugin_settings_url() . "'>", '</a>'); ?> </div> <?php return; } echo '<script type="text/javascript">var form = ' . GFCommon::json_encode($form) . ';</script>'; parent::feed_edit_page($form, $feed_id); }
/** * Display a warning message instead of the feeds if the API key isn't valid. * * @param array $form The form currently being edited. * @param integer $feed_id The current feed ID. */ public function feed_edit_page($form, $feed_id) { if (!$this->can_create_feed()) { echo '<h3><span>' . $this->feed_settings_title() . '</span></h3>'; echo '<div>' . $this->configure_addon_message() . '</div>'; return; } parent::feed_edit_page($form, $feed_id); }
/** * Throw in a few custom items into the feed edit page if the plugin isn't setup yet. * @param array $form GF Form * @param int $feed_id GF Feed ID * @return void */ public function feed_edit_page($form, $feed_id) { // ensures valid credentials were entered in the settings page if (!$this->get_connection_string()) { $settings_page = $this->get_plugin_settings_url(); $view = GFELOQUA_PATH . '/views/needs-setup.php'; include $view; return; } echo '<script type="text/javascript">var form = ' . GFCommon::json_encode($form) . ';</script>'; parent::feed_edit_page($form, $feed_id); }
/** * Display a warning message instead of the feeds if the AWeber auth code isn't valid. * * @param array $form The form currently being edited. * @param integer $feed_id The current feed ID. */ public function feed_edit_page($form, $feed_id) { // ensures valid credentials were entered in the settings page if (!$this->can_create_feed()) { echo '<h3><span>' . $this->feed_settings_title() . '</span></h3>'; echo '<div>' . $this->configure_addon_message() . '</div>'; return; } echo '<script type="text/javascript">var form = ' . GFCommon::json_encode($form) . ';</script>'; parent::feed_edit_page($form, $feed_id); }
public function feed_edit_page($form, $feed_id) { // ensures valid credentials were entered in the settings page if (!$this->is_valid_credentials()) { ?> <div><?php echo sprintf(__('We are unable to login to FreshBooks with the provided username and password. Please make sure they are valid in the %sSettings Page%s', 'gravityformsfreshbooks'), "<a href='" . esc_url($this->get_plugin_settings_url()) . "'>", '</a>'); ?> </div> <?php return; } parent::feed_edit_page($form, $feed_id); }