| 1 | <?php namespace EvolutionCMS; |
||
| 6 | class ManagerTheme implements ManagerThemeInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var CoreInterface |
||
| 10 | */ |
||
| 11 | protected $core; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var $theme |
||
| 15 | */ |
||
| 16 | protected $theme; |
||
| 17 | |||
| 18 | public function __construct(CoreInterface $core, $theme = '') |
||
| 30 | |||
| 31 | public function loadSnippets() |
||
| 35 | |||
| 36 | public function pathSnippet($name) |
||
| 37 | { |
||
| 38 | return MODX_MANAGER_PATH . sprintf('media/style/%s/chunks/%s.tpl', $this->theme, $name); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function pathElement($type, $name) |
||
| 45 | |||
| 46 | public function getElement($type, $name) |
||
| 50 | |||
| 51 | public function getSnippet($name) |
||
| 55 | |||
| 56 | public function getChunk($name) |
||
| 60 | } |
||
| 61 |