mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-06-18 10:41:52 +02:00
MINOR Added DocumentationViewerExtension
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@115539 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9eb72c59aa
commit
d036b4920f
22
mysite/code/DocumentationViewerExtension.php
Normal file
22
mysite/code/DocumentationViewerExtension.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user