From 1d4f1f6bf6bd8313cbb51dbf61d675408171d1b8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 6 May 2008 11:17:29 -0400 Subject: add standard directories Added some of the standard directories darcs-hash:20080506151729-84dde-563da8505e06a7302041c93ab157ced31165876c.gz --- _darcs/pristine/lib/theme.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 _darcs/pristine/lib/theme.php (limited to '_darcs/pristine/lib/theme.php') diff --git a/_darcs/pristine/lib/theme.php b/_darcs/pristine/lib/theme.php new file mode 100644 index 000000000..80982aa82 --- /dev/null +++ b/_darcs/pristine/lib/theme.php @@ -0,0 +1,35 @@ +. + */ + +if (!defined('LACONICA')) { exit(1); } + +function theme_file($relative) { + $theme = common_config('site', 'theme'); + return INSTALLDIR.'/theme/'.$theme.'/'.$relative; +} + +function theme_path($relative) { + $theme = common_config('site', 'theme'); + $server = common_config('theme', 'server'); + if ($server) { + return 'http://'.$server.'/'.$theme.'/'.$relative; + } else { + return common_path('theme/'.$theme.'/'.$relative); + } +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf