/**
  * Runs plugin
  */
 function run()
 {
     if (Util_Admin::get_current_wp_page() == 'w3tc_dashboard') {
         add_action('admin_enqueue_scripts', array($this, 'enqueue'));
     }
     add_action('w3tc_widget_setup', array($this, 'wp_dashboard_setup'));
     add_action('w3tc_network_dashboard_setup', array($this, 'wp_dashboard_setup'));
     if (is_admin()) {
         add_action('wp_ajax_w3tc_widget_latest_ajax', array($this, 'action_widget_latest_ajax'));
     }
 }
 /**
  * Runs plugin
  */
 function run()
 {
     if (Util_Admin::get_current_wp_page() == 'w3tc_dashboard') {
         add_action('admin_enqueue_scripts', array($this, 'enqueue'));
     }
     $this->_json_request_types = array('email_support' => sprintf(__('Less than 15 Minute Email Support Response %s', 'w3-total-cache'), '(M-F 9AM - 5PM EDT): $175 USD'), 'phone_support' => sprintf(__('Less than 15 Minute Phone Support Response %s', 'w3-total-cache'), '(M-F 9AM - 5PM EDT): $250 USD'), 'plugin_config' => sprintf(__('Professional Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $200 USD'), 'theme_config' => sprintf(__('Theme Performance Optimization & Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $350 USD'), 'linux_config' => sprintf(__('Linux Server Optimization & Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $450 USD'));
     $this->_request_types = array('email_support' => sprintf(__('Less than 15 Minute Email Support Response %s', 'w3-total-cache'), '<br /><span>(M-F 9AM - 5PM EDT): $175 USD</span>'), 'phone_support' => sprintf(__('Less than 15 Minute Phone Support Response %s', 'w3-total-cache'), '<br /><span>(M-F 9AM - 5PM EDT): $250 USD</span>'), 'plugin_config' => sprintf(__('Professional Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $200 USD</span>'), 'theme_config' => sprintf(__('Theme Performance Optimization & Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $350 USD</span>'), 'linux_config' => sprintf(__('Linux Server Optimization & Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $450 USD</span>'));
     add_action('w3tc_widget_setup', array($this, 'wp_dashboard_setup'));
     add_action('w3tc_network_dashboard_setup', array($this, 'wp_dashboard_setup'));
     if (is_admin()) {
         add_action('wp_ajax_w3tc_action_payment_code', array($this, 'action_payment_code'));
     }
 }
 /**
  * Runs plugin
  */
 function run()
 {
     if (Util_Admin::get_current_wp_page() == 'w3tc_dashboard') {
         add_action('admin_enqueue_scripts', array($this, 'enqueue'));
     }
     add_action('w3tc_widget_setup', array($this, 'wp_dashboard_setup'));
     add_action('w3tc_network_dashboard_setup', array($this, 'wp_dashboard_setup'));
     // Configure authorize and have_zone
     $this->_setup($this->_config);
     if ($this->have_zone && $this->authorized && isset($_GET['page']) && strpos($_GET['page'], 'w3tc_dashboard') !== false) {
         require_once W3TC_LIB_NETDNA_DIR . '/NetDNA.php';
         require_once W3TC_LIB_NETDNA_DIR . '/NetDNAPresentation.php';
         $authorization_key = $this->_config->get_string('cdn.netdna.authorization_key');
         $alias = $consumerkey = $consumersecret = '';
         $keys = explode('+', $authorization_key);
         if (sizeof($keys) == 3) {
             list($alias, $consumerkey, $consumersecret) = $keys;
         }
         $this->api = new \NetDNA($alias, $consumerkey, $consumersecret);
         add_action('admin_head', array($this, 'admin_head'));
     }
 }