function run() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/admin.php'); if (w3tc_get_current_wp_page() == 'w3tc_dashboard') { add_action('admin_enqueue_scripts', array($this, 'enqueue')); } add_action('w3tc_dashboard_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); /** * Retry setup with main blog */ if (w3_is_network() && is_network_admin() && !$this->authorized) { $this->_config = new W3_Config(false, 1); $this->_setup($this->_config); } if (w3_is_network()) { $conig_admin = w3_instance('W3_ConfigAdmin'); $this->_sealed = $conig_admin->get_boolean('cdn.configuration_sealed'); } if ($this->have_zone && $this->authorized && isset($_GET['page']) && strpos($_GET['page'], 'w3tc_dashboard') !== false) { w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php'); w3_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')); } }
function run() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/admin.php'); if (w3tc_get_current_wp_page() == 'w3tc_dashboard') { add_action('admin_enqueue_scripts', array($this, 'enqueue')); } add_action('w3tc_dashboard_setup', array(&$this, 'wp_dashboard_setup')); add_action('w3tc_network_dashboard_setup', array(&$this, 'wp_dashboard_setup')); $this->setup(); }
function run() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/admin.php'); if (w3tc_get_current_wp_page() == 'w3tc_dashboard') { add_action('admin_enqueue_scripts', array($this, 'enqueue')); } add_action('w3tc_dashboard_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_link_support', array($this, 'action_widget_link_support')); } }
function run() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/admin.php'); if (w3tc_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): $75 USD'), 'phone_support' => sprintf(__('Less than 15 Minute Phone Support Response %s', 'w3-total-cache'), '(M-F 9AM - 5PM EDT): $150 USD'), 'plugin_config' => sprintf(__('Professional Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $100 USD'), 'theme_config' => sprintf(__('Theme Performance Optimization & Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $150 USD'), 'linux_config' => sprintf(__('Linux Server Optimization & Plugin Configuration %s', 'w3-total-cache'), 'Starting @ $200 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): $75 USD</span>'), 'phone_support' => sprintf(__('Less than 15 Minute Phone Support Response %s', 'w3-total-cache'), '<br /><span>(M-F 9AM - 5PM EDT): $150 USD</span>'), 'plugin_config' => sprintf(__('Professional Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $100 USD</span>'), 'theme_config' => sprintf(__('Theme Performance Optimization & Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $150 USD</span>'), 'linux_config' => sprintf(__('Linux Server Optimization & Plugin Configuration %s', 'w3-total-cache'), '<br /><span>Starting @ $200 USD</span>')); add_action('w3tc_dashboard_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')); } }