diff --git a/sites/all/themes/unl_wdn/template.php b/sites/all/themes/unl_wdn/template.php index 9911ed5dfcf282d0a63862a810dee31425050eaf..ce52f1e3648c9e80c0c4d122ea4f03cefac8acf8 100644 --- a/sites/all/themes/unl_wdn/template.php +++ b/sites/all/themes/unl_wdn/template.php @@ -11,6 +11,14 @@ function unl_wdn_css_alter(&$css) { unset($css[$path.'/system.theme.css']); } +function unl_wdn_css_alter(&$css) { + // Turn off some styles from the system module. + // If some of this is later found desireable, add "stylesheets[all][] = css/unl_wdn.menus.css" to unl_wdn.info and copy these files to that locaiton with edits. + $path = drupal_get_path('module','system'); + unset($css[$path.'/system.menus.css']); + unset($css[$path.'/system.theme.css']); +} + function unl_wdn_preprocess_html(&$vars, $hook) { /** * Change the <title> tag to UNL format: UNL | Department | Section | Page @@ -60,16 +68,21 @@ function unl_wdn_preprocess_page(&$vars, $hook) { function unl_wdn_get_instance() { static $instance; if (!$instance) { - set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/lib/php'); + set_include_path(dirname(__FILE__) . '/lib/php'); require_once "UNL/Templates.php"; UNL_Templates::$options['version'] = UNL_Templates::VERSION3; + if (theme_get_setting('toggle_main_menu')) { $instance = UNL_Templates::factory('Fixed'); } else { $instance = UNL_Templates::factory('Document'); } + + if (theme_get_setting('wdn_beta')) { + UNL_Templates::$options['templatedependentspath'] = $_SERVER['DOCUMENT_ROOT'].'/wdntemplates-dev'; + } } return $instance;