| @@ 59-65 (lines=7) @@ | ||
| 56 | * @param View $View |
|
| 57 | * @param array $config |
|
| 58 | */ |
|
| 59 | public function __construct(View $View, array $config = []) |
|
| 60 | { |
|
| 61 | parent::__construct($View, $config); |
|
| 62 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 63 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 64 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Creates a `<button>` tag. |
|
| @@ 55-62 (lines=8) @@ | ||
| 52 | * @param View $View |
|
| 53 | * @param array $config |
|
| 54 | */ |
|
| 55 | public function __construct(View $View, array $config = []) |
|
| 56 | { |
|
| 57 | parent::__construct($View, $config); |
|
| 58 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 59 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 60 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 61 | $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>'); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * Creates a link element for CSS stylesheets. |
|