doc.silverstripe.org/app/code/ControllerExtension.php
Will Rossiter f24827d850 Updated project to 3.0
- Use git submodules to link in 3.0 framework, docsviewer.

- Minor design enhancements to work with latest docsviewer.

- Removed cms dependancy.

- Tidied up project files
2012-09-05 21:45:25 +12:00

33 lines
644 B
PHP

<?php
class ControllerExtension extends Extension {
static $google_analytics_code = null;
public function onBeforeInit() {
Requirements::combine_files('doc.css', array(
'themes/ssorgsites/css/core.css',
'themes/ssorgsites/css/grid.css',
'themes/ssorgsites/css/typography.css',
'themes/ssorgsites/css/form.css',
'docsviewer/css/DocumentationViewer.css'
));
Requirements::css('themes/ssorgsites/css/print.css', 'print');
}
/**
* @return String
*/
function getGoogleAnalyticsCode() {
return self::$google_analytics_code;
}
/**
* @return Bool
*/
function IsDev() {
return (Director::isDev());
}
}