2012-09-05 11:43:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class ControllerExtension extends Extension {
|
2014-12-10 03:58:56 +01:00
|
|
|
|
2012-11-09 23:20:03 +01:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public static $google_analytics_code = null;
|
2012-09-05 11:43:50 +02:00
|
|
|
|
2014-12-10 03:58:56 +01:00
|
|
|
/**
|
|
|
|
*
|
2014-11-07 04:07:21 +01:00
|
|
|
*/
|
|
|
|
public function onAfterInit(){
|
|
|
|
Requirements::javascript('themes/docs/javascript/main.js');
|
|
|
|
}
|
|
|
|
|
2012-09-05 11:43:50 +02:00
|
|
|
/**
|
2014-12-10 03:58:56 +01:00
|
|
|
* @return string
|
2012-09-05 11:43:50 +02:00
|
|
|
*/
|
2012-11-09 23:20:03 +01:00
|
|
|
public function getGoogleAnalyticsCode() {
|
2012-09-05 11:43:50 +02:00
|
|
|
return self::$google_analytics_code;
|
|
|
|
}
|
2014-12-10 03:58:56 +01:00
|
|
|
|
2012-09-05 11:43:50 +02:00
|
|
|
/**
|
2014-01-14 09:22:33 +01:00
|
|
|
* @return bool
|
2012-09-05 11:43:50 +02:00
|
|
|
*/
|
2012-11-09 23:20:03 +01:00
|
|
|
public function IsDev() {
|
2012-09-05 11:43:50 +02:00
|
|
|
return (Director::isDev());
|
|
|
|
}
|
2014-11-07 04:07:21 +01:00
|
|
|
|
2014-12-10 03:58:56 +01:00
|
|
|
}
|