WP_ADA(); } function WP_ADA() { global $wp_version; //include component controllers include('creation/pet_post_type.php'); include('creation/lost_post_type.php'); include('creation/helper.php'); include('control/pages.php'); include('control/contextual.php'); include('control/widgets.php'); include('metabox/meta-box.php'); include('metabox/meta-box-itens.php'); /** * Guess the wp-content and plugin urls/paths */ if ( !defined('WP_CONTENT_URL') ) define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); if ( !defined('WP_CONTENT_DIR') ) define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); if (!defined('PLUGIN_URL')) define('PLUGIN_URL', WP_CONTENT_URL . '/plugins'); if (!defined('PLUGIN_PATH')) define('PLUGIN_PATH', WP_CONTENT_DIR . '/plugins'); define('WPADA_FILE_PATH', dirname(__FILE__)); define('WPADA_DIR_NAME', basename(WPADA_FILE_PATH)); //Enables Pet and Lost Types $PETPostType = new PETPostType(); $LOSTPostType = new LOSTPostType(); //Register the post type add_action( 'init', 'adafunc_setup' ); add_action('init', array($PETPostType,'register') ); add_action('init', array($LOSTPostType,'register') ); add_theme_support( 'post-thumbnails' ); add_image_size( 'ada_pet', 300, 300, true ); add_image_size( 'ada_thumb', 150, 150, true ); } } $WP_ADA = new WP_ADA(); ?>