prefix.ANIMATE_DOMAIN); // Don't allow the plugin to be loaded directly if ( ! function_exists( 'add_action' ) ) { _e( 'Please enable this plugin from your wp-admin.', 'animate' ); exit; } /* REQUIRES */ include_once (ANIMATE_DIR.'class.animate.php'); include_once (ANIMATE_DIR.'class.animate_shortcodes.php'); include_once (ANIMATE_DIR.'class.animate_plugable.php'); /* LOADINGS */ add_action('plugins_loaded', array('Animate', 'settings'), 0); register_activation_hook(__FILE__, array('Animate','set_options')); register_deactivation_hook(__FILE__, array('Animate','unset_options')); /* INIT */ if(is_admin()){ include_once (ANIMATE_DIR.'class.animate_admin.php'); include_once (ANIMATE_DIR.'class.animate_TinyMCE.php'); $animate_admin = new Animate_admin(); } else{ //client $animate_shortcodes = new Animate(); }