> Read the accompanying readme.txt file for more information. Also, visit the plugin's homepage =>> for more information and the latest updates Installation: */ /* Copyright (c) 2010 by Scott Reilly (aka coffee2code) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if ( !class_exists( 'C2C_Plugin_012' ) ) : class C2C_Plugin_012 { var $plugin_css_version = '006'; var $options = array(); var $option_names = array(); var $required_config = array( 'menu_name', 'name' ); var $saved_settings = false; var $saved_settings_msg = ''; /** * Handles installation tasks, such as ensuring plugin options are instantiated and saved to options table. * * @param string $version Version of the plugin. * @param string $id_base A unique base ID for the plugin (generally a lower-case, dash-separated version of plugin name). * @param string $author_prefix Short (2-3 char) identifier for plugin author. * @param string $file The __FILE__ value for the sub-class. * @param array $plugin_options (optional) Array specifying further customization of plugin configuration. * @return void */ function C2C_Plugin_012( $version, $id_base, $author_prefix, $file, $plugin_options = array() ) { global $pagenow; $id_base = sanitize_title( $id_base ); if ( !file_exists( $file ) ) die( sprintf( __( 'Invalid file specified for C2C_Plugin: %s', $this->textdomain ), $file ) ); $u_id_base = str_replace( '-', '_', $id_base ); $author_prefix .= '_'; $defaults = array( 'admin_options_name' => $author_prefix . $u_id_base, // The setting under which all plugin settings are stored under (as array) 'config' => array(), // Default configuration 'disable_contextual_help' => false, // Prevent overriding of the contextual help? 'disable_update_check' => false, // Prevent WP from checking for updates to this plugin? 'hook_prefix' => $u_id_base . '_', // Prefix for all hooks 'form_name' => $u_id_base, // Name for the