diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-03-11 19:01:40 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-03-11 19:01:40 -0500 |
commit | cfd3000d833d3a99df0b4248e3b6160e9be4f22a (patch) | |
tree | 2a4ccff357a394670a49fd4447f3ebaee637b667 /app/Helper | |
parent | bb9e7916574bd7e21550bf7505757fccae6cbdd0 (diff) |
Move notifications outside of dashboard
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/ModalHelper.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Helper/ModalHelper.php b/app/Helper/ModalHelper.php index e8fee99c..dbf0415b 100644 --- a/app/Helper/ModalHelper.php +++ b/app/Helper/ModalHelper.php @@ -65,6 +65,12 @@ class ModalHelper extends Base return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium btn'); } + public function mediumIcon($icon, $label, $controller, $action, array $params = array()) + { + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i>'; + return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium', $label); + } + public function confirm($icon, $label, $controller, $action, array $params = array()) { $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-confirm" aria-hidden="true"></i>'.$label; @@ -80,4 +86,10 @@ class ModalHelper extends Base { return $this->helper->url->link($label, $controller, $action, $params, false, 'js-modal-replace'); } + + public function replaceIconLink($icon, $label, $controller, $action, array $params = array()) + { + $html = '<i class="fa fa-'.$icon.' fa-fw" aria-hidden="true"></i>'.$label; + return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-replace'); + } } |