# # This file assigns environment hooks. # // Include all theme specific classes and functions // ------------------------------------------------------------------------ $themeincludepaths = wpgrade::confoption('include-paths', array()); foreach ($themeincludepaths as $path) { $fullpath = wpgrade::themepath() . $ds . $path; if (file_exists($fullpath)) { wpgrade::require_all($fullpath); } } $themeincludefiles = wpgrade::confoption('include-files', array()); foreach ($themeincludefiles as $file) { if (file_exists(wpgrade::childpath() . $file)) { require wpgrade::childpath() . $file; } else { require wpgrade::themepath() . $file; } } // Include core specific callbacks // ------------------------------------------------------------------------ $callbackspath = dirname(__FILE__) . $ds . 'callbacks'; wpgrade::require_all($callbackspath); // Theme Setup // ------------------------------------------------------------------------ /** * ... */ function wpgrade_callback_themesetup() {