summaryrefslogtreecommitdiff
path: root/app
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
parent8d15d0641fe183e530904a146c6e4e729c024e40 (diff)
Add print stylesheet for boards
Diffstat (limited to 'app')
-rw-r--r--app/Core/Helper.php6
-rw-r--r--app/Template/layout.php3
2 files changed, 6 insertions, 3 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.'">';
}
/**
diff --git a/app/Template/layout.php b/app/Template/layout.php
index f87107a6..7baecde9 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -14,8 +14,9 @@
<?= $this->js('assets/js/app.js') ?>
<?php endif ?>
- <?= $this->css($this->u('app', 'colors'), false) ?>
+ <?= $this->css($this->u('app', 'colors'), false, 'all') ?>
<?= $this->css('assets/css/app.css') ?>
+ <?= $this->css('assets/css/print.css', true, 'print') ?>
<?php if ($this->config->get('application_stylesheet')): ?>
<style><?= $this->config->get('application_stylesheet') ?></style>