get( $config->get('config_template') . '_skin' ); $store = 'default'; if($config->get( 'config_store_id' ) == 0) { $store = 'default'; } else { $store = $config->get( 'config_store_id' ); } require_once(DIR_SYSTEM . 'library/themeoptions.php'); $theme_options = new ThemeOptions($config->get('config_template'), $store, $theme); $registry->set('theme_options', $theme_options);