doc.silverstripe.org/mysite/code/DocumentationViewerExtension.php
Will Rossiter 0a418fc940 MINOR added helper for dev
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@116815 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-03-03 19:54:39 +00:00

30 lines
653 B
PHP

<?php
class DocumentationViewerExtension extends Extension {
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;
}
/**
* @return Bool
*/
function IsDev() {
return (Director::isDev());
}
}