diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Core/Helper.php | 6 | ||||
-rw-r--r-- | app/Template/layout.php | 3 |
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> |