mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
f24827d850
- 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
33 lines
644 B
PHP
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());
|
|
}
|
|
} |