| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class style_switcher extends block |
||
| 19 | { |
||
| 20 | /** @var \blitze\sitemaker\services\blocks\display */ |
||
| 21 | protected $blocks_display; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor |
||
| 25 | * |
||
| 26 | * @param \blitze\sitemaker\services\blocks\display $blocks_display |
||
| 27 | 2 | */ |
|
| 28 | public function __construct(\blitze\sitemaker\services\blocks\display $blocks_display) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | 1 | */ |
|
| 36 | public function display(array $settings, $edit_mode = false) |
||
| 37 | 1 | { |
|
| 38 | 1 | return array( |
|
| 39 | 1 | 'title' => 'STYLE_SWITCHER', |
|
| 40 | 1 | 'data' => array( |
|
| 41 | 'CURRENT_PAGE' => build_url(array('style')), |
||
| 42 | 'S_STYLE_OPTIONS' => style_select($this->blocks_display->get_style_id(), true), |
||
| 43 | 1 | ) |
|
| 44 | 1 | ); |
|
| 45 | 1 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function get_template() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |