summaryrefslogtreecommitdiff
path: root/app/Helper/Asset.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
commit8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c (patch)
treece28cdc2dba9c31560ef753ac1b4dc39d567b7a6 /app/Helper/Asset.php
parentf32507d423c46e8e9612b5239728e6c617e4cbcb (diff)
Helper refactoring
Diffstat (limited to 'app/Helper/Asset.php')
-rw-r--r--app/Helper/Asset.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/app/Helper/Asset.php b/app/Helper/Asset.php
deleted file mode 100644
index c4178e8c..00000000
--- a/app/Helper/Asset.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-namespace Kanboard\Helper;
-
-/**
- * Assets helpers
- *
- * @package helper
- * @author Frederic Guillot
- */
-class Asset extends \Kanboard\Core\Base
-{
- /**
- * Add a Javascript asset
- *
- * @param string $filename Filename
- * @return string
- */
- public function js($filename, $async = false)
- {
- return '<script '.($async ? 'async' : '').' type="text/javascript" src="'.$this->helper->url->dir().$filename.'?'.filemtime($filename).'"></script>';
- }
-
- /**
- * 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, $media = 'screen')
- {
- return '<link rel="stylesheet" href="'.$this->helper->url->dir().$filename.($is_file ? '?'.filemtime($filename) : '').'" media="'.$media.'">';
- }
-
- /**
- * Get custom css
- *
- * @access public
- * @return string
- */
- public function customCss()
- {
- if ($this->config->get('application_stylesheet')) {
- return '<style>'.$this->config->get('application_stylesheet').'</style>';
- }
-
- return '';
- }
-
- /**
- * Get CSS for task colors
- *
- * @access public
- * @return string
- */
- public function colorCss()
- {
- return '<style>'.$this->color->getCss().'</style>';
- }
-}