| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class Framework extends \Formularium\Framework |
||
| 6 | { |
||
| 7 | public function __construct(string $name = 'Materialize') |
||
| 8 | { |
||
| 9 | parent::__construct($name); |
||
| 10 | } |
||
| 11 | |||
| 12 | public function htmlHead(): string |
||
| 13 | { |
||
| 14 | return '<meta name="viewport" content="width=device-width, initial-scale=1"> |
||
| 15 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">'; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function htmlFooter(): string |
||
| 19 | { |
||
| 20 | return '<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function viewableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
||
| 24 | { |
||
| 25 | return '<section class="section"><div class="container">' . $previousCompose . '</div></section>'; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
||
| 31 | } |
||
| 32 | } |
||
| 33 |