diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-08 11:29:41 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-08 11:29:41 -0500 |
commit | 348f4491ff3171d06888a868b22868ce2b8b1eab (patch) | |
tree | 6ecaaa8f139a17b634d992675b8aad23434d84a5 /app/Helper/ModalHelper.php | |
parent | febb9ade5bc6f4f11f98bc029ffe325fa6717f8f (diff) |
Make icons clickable in menus
Diffstat (limited to 'app/Helper/ModalHelper.php')
-rw-r--r-- | app/Helper/ModalHelper.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/app/Helper/ModalHelper.php b/app/Helper/ModalHelper.php index e6037a8c..b3241b9d 100644 --- a/app/Helper/ModalHelper.php +++ b/app/Helper/ModalHelper.php @@ -43,31 +43,36 @@ class ModalHelper extends Base public function large($icon, $label, $controller, $action, array $params = array()) { - $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-large" aria-hidden="true"></i> '.$label; + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-large" aria-hidden="true"></i>'.$label; return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-large'); } public function medium($icon, $label, $controller, $action, array $params = array()) { - $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i> '.$label; + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i>'.$label; return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium'); } public function small($icon, $label, $controller, $action, array $params = array()) { - $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-small" aria-hidden="true"></i> '.$label; + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-small" aria-hidden="true"></i>'.$label; return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-small'); } public function mediumButton($icon, $label, $controller, $action, array $params = array()) { - $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i> '.$label; + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-medium" aria-hidden="true"></i>'.$label; return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-medium btn'); } 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; + $html = '<i class="fa fa-'.$icon.' fa-fw js-modal-confirm" aria-hidden="true"></i>'.$label; return $this->helper->url->link($html, $controller, $action, $params, false, 'js-modal-confirm'); } + + public function confirmLink($label, $controller, $action, array $params = array()) + { + return $this->helper->url->link($label, $controller, $action, $params, false, 'js-modal-confirm'); + } } |