You are here

public static function ShareaholicAdmin::draw_modal_popup in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 admin.php \ShareaholicAdmin::draw_modal_popup()

Outputs the actual html for either the terms_of_service modal or the failed_create_api_key modal depending on what is in the database

Return value

String html output for the modals

1 call to ShareaholicAdmin::draw_modal_popup()
shareaholic_admin_settings.tpl.php in templates/shareaholic_admin_settings.tpl.php

File

./admin.php, line 22

Class

ShareaholicAdmin
This class takes care of all of the admin interface.

Code

public static function draw_modal_popup() {
  if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
    self::draw_tos_popup();
  }
  else {
    if (!ShareaholicUtilities::get_option('api_key')) {
      self::draw_failure_popup();
    }
  }
}