Skip to content

Commit

Permalink
Updated to custom-css-manager-plugin 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycollier committed Mar 7, 2013
1 parent 9015b1e commit 5232d67
Show file tree
Hide file tree
Showing 7 changed files with 915 additions and 486 deletions.
Expand Up @@ -3,33 +3,47 @@
Plugin Name: Custom CSS Manager
Plugin URI: http://mywebsiteadvisor.com/tools/wordpress-plugins/custom-css-manager-plugin/
Description: Edit Custom CSS to change the appearance of your WordPress Website
Version: 1.4.2
Version: 1.5
Author: MyWebsiteAdvisor
Author URI: http://MyWebsiteAdvisor.com
*/

register_activation_hook(__FILE__, 'custom_css_manager');
register_activation_hook(__FILE__, 'activate_custom_css_manager');



function custom_css_manager() {
function activate_custom_css_manager() {

// display error message to users
if ($_GET['action'] == 'error_scrape') {
die("Sorry, Plugin requires PHP 5.0 or higher. Please deactivate Plugin.");
die("Sorry, This Plugin requires PHP 5.0 or higher. Please deactivate Plugin.");
}

if ( version_compare( phpversion(), '5.0', '<' ) ) {
trigger_error('', E_USER_ERROR);
}
}

// require Plugin if PHP 5 installed





// require simple debug Plugin if PHP 5.0 installed
if ( version_compare( phpversion(), '5.0', '>=') ) {
define('CCM_LOADER', __FILE__);

require_once(dirname(__FILE__) . '/custom-css-manager.php');
require_once(dirname(__FILE__) . '/plugin-admin.php');
define('CCM_LOADER', __FILE__);

require_once(dirname(__FILE__) . '/custom-css-manager-settings-page.php');

require_once(dirname(__FILE__) . '/custom-css-manager-plugin.php');

$custom_css_manager = new Custom_CSS_Manager_Plugin;

}





?>

0 comments on commit 5232d67

Please sign in to comment.