Move notifications outside of dashboard

This commit is contained in:
Frederic Guillot
2017-03-11 19:01:40 -05:00
parent bb9e791657
commit cfd3000d83
34 changed files with 134 additions and 122 deletions

View File

@@ -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');
}
}