diff --git a/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Base_Page_Settings.php b/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Base_Page_Settings.php new file mode 100644 index 00000000..5c0023ef --- /dev/null +++ b/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Base_Page_Settings.php @@ -0,0 +1,281 @@ +_config = Dispatcher::config(); + $this->_config_master = Dispatcher::config_master(); + $this->_page = Util_Admin::get_current_page(); + } + + /** + * Render header. + */ + public function options() { + $this->view(); + } + + /** + * Render footer. + */ + 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 $disabled Disabled flag. + * @param string $class_prefix Class prefix. + * @param bool $label Label. + * @param bool $force_value Override value. + */ + protected function checkbox( $option_id, $disabled = false, $class_prefix = '', $label = true, $force_value = null ) { + $disabled = $disabled || $this->_config->is_sealed( $option_id ); + $name = Util_Ui::config_key_to_http_name( $option_id ); + + if ( ! $disabled ) { + echo ''; + } + + if ( $label ) { + echo '