2011-01-13 21:32:42 +01:00
|
|
|
<?php
|
|
|
|
class DocumentationViewerExtension extends Extension {
|
2011-03-03 20:54:39 +01:00
|
|
|
|
2011-01-13 21:32:42 +01:00
|
|
|
static $google_analytics_code = null;
|
|
|
|
|
|
|
|
public function init() {
|
|
|
|
parent::init();
|
|
|
|
|
|
|
|
// Note: you should use SS template require tags inside your templates
|
|
|
|
// instead of putting Requirements calls here. However these are
|
|
|
|
// included so that our older themes still work
|
|
|
|
Requirements::themedCSS('layout');
|
|
|
|
Requirements::themedCSS('typography');
|
|
|
|
Requirements::themedCSS('form');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
function getGoogleAnalyticsCode() {
|
|
|
|
return self::$google_analytics_code;
|
|
|
|
}
|
2011-03-03 20:54:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Bool
|
|
|
|
*/
|
|
|
|
function IsDev() {
|
|
|
|
return (Director::isDev());
|
|
|
|
}
|
2011-01-13 21:32:42 +01:00
|
|
|
}
|