diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-05 19:45:12 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-05 19:45:12 -0400 |
commit | 304db1d30b4ad96f8a2ca500d224bb1609588fed (patch) | |
tree | d5469aad37b0f8cc0826053f963332f1af96ae14 /lib/designsettings.php | |
parent | 6a76addbe8bbfafd1a1dd6ed7ffbf8afebff5abe (diff) |
Use script() and cssLink() methods everywhere instead of manually writing out javascript and css each time
Diffstat (limited to 'lib/designsettings.php')
-rw-r--r-- | lib/designsettings.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/designsettings.php b/lib/designsettings.php index 1b0e62166..a48ec9d22 100644 --- a/lib/designsettings.php +++ b/lib/designsettings.php @@ -311,13 +311,7 @@ class DesignSettingsAction extends AccountSettingsAction function showStylesheets() { parent::showStylesheets(); - $farbtasticStyle = - common_path('theme/base/css/farbtastic.css?version='.LACONICA_VERSION); - - $this->element('link', array('rel' => 'stylesheet', - 'type' => 'text/css', - 'href' => $farbtasticStyle, - 'media' => 'screen, projection, tv')); + $this->cssLink('css/farbtastic.css','base','screen, projection, tv'); } /** @@ -330,13 +324,8 @@ class DesignSettingsAction extends AccountSettingsAction { parent::showScripts(); - $farbtasticPack = common_path('js/farbtastic/farbtastic.js'); - $userDesignGo = common_path('js/userdesign.go.js'); - - $this->element('script', array('type' => 'text/javascript', - 'src' => $farbtasticPack)); - $this->element('script', array('type' => 'text/javascript', - 'src' => $userDesignGo)); + $this->script('js/farbtastic/farbtastic.js'); + $this->script('js/farbtastic/farbtastic.go.js'); } /** |