summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-25 15:08:02 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-25 15:08:02 -0400
commit956f88f527e9ddfc3cf2a8897c82d638572d08d8 (patch)
tree158df5c40cd9e656a9290c08039ef3427f88a5a0 /app/Core
parent8d15d0641fe183e530904a146c6e4e729c024e40 (diff)
Add print stylesheet for boards
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Helper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Core/Helper.php b/app/Core/Helper.php
index 7f6b2fd1..740ff7c2 100644
--- a/app/Core/Helper.php
+++ b/app/Core/Helper.php
@@ -129,11 +129,13 @@ class Helper
* Add a stylesheet asset
*
* @param string $filename Filename
+ * @param boolean $is_file Add file timestamp
+ * @param string $media Media
* @return string
*/
- public function css($filename, $is_file = true)
+ public function css($filename, $is_file = true, $media = 'screen')
{
- return '<link rel="stylesheet" href="'.$filename.($is_file ? '?'.filemtime($filename) : '').'" media="screen">';
+ return '<link rel="stylesheet" href="'.$filename.($is_file ? '?'.filemtime($filename) : '').'" media="'.$media.'">';
}
/**