. */ require_once('CFDBView.php'); class CFDBViewOptions extends CFDBView { /** * @param $plugin CF7DBPlugin * @return void */ function display(&$plugin) { $this->pageHeader($plugin); if ($this->outputHeader()) { $this->outputOptions($plugin); } } public function enqueueSettingsPageScripts() { wp_enqueue_style('jquery-ui', plugins_url('/css/jquery-ui.css', __FILE__)); wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', array('jquery')); wp_enqueue_script('jquery-ui-tabs', array('jquery')); } /** * @param $plugin CF7DBPlugin */ public function outputOptions($plugin) { ?>
outputFooter(); } /** * @return bool false means don't display additional contents because PHP version is too old */ public function outputHeader() { if (version_compare(phpversion(), '5.3') < 0) { printf('0) { echo ' '; echo htmlspecialchars(__('(WARNING: This plugin may not work properly with versions earlier than PHP 5.2)', 'contact-form-7-to-database-extension')); echo ''; } ?> | |
getMySqlVersion() ?> '; if (version_compare('5.0', $plugin->getMySqlVersion()) > 0) { echo htmlspecialchars(__('(WARNING: This plugin may not work properly with versions earlier than MySQL 5.0)', 'contact-form-7-to-database-extension')); } echo ''; ?> | |
createFormControl($aOptionKey, $aOptionMeta, $plugin->getOption($aOptionKey)); ?> |