_config = Dispatcher::config(); $this->_config_master = Dispatcher::config_master(); $this->_page = Util_Admin::get_current_page(); } /** * Render header. * * @return void */ public function options() { $this->view(); } /** * Render footer. * * @return void */ public function render_footer() { include W3TC_INC_OPTIONS_DIR . '/common/footer.php'; } /** * Returns true if config section is sealed. * * @param string $section Config section. * * @return boolean */ protected function is_sealed( $section ) { return true; } /** * Returns true if we edit master config. * * @return boolean */ protected function is_master() { return $this->_config->is_master(); } /** * Prints checkbox with config option value. * * @param string $option_id Option ID. * @param bool $w3tc_disabled Disabled flag. * @param string $class_prefix Class prefix. * @param bool $w3tc_label Label. * @param bool $w3tc_force_value Override value. * * @return void */ protected function checkbox( $option_id, $w3tc_disabled = false, $class_prefix = '', $w3tc_label = true, $w3tc_force_value = null ) { $w3tc_disabled = $w3tc_disabled || $this->_config->is_sealed( $option_id ); $w3tc_name = Util_Ui::config_key_to_http_name( $option_id ); if ( ! $w3tc_disabled ) { echo ''; } if ( $w3tc_label ) { echo '