-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
29 lines (22 loc) · 745 Bytes
/
index.php
File metadata and controls
29 lines (22 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<?php
require_once 'vendor/autoload.php';
use Elements\Element;
$div = Element::withClasses('div', ['red', 'blue', 'green'])->addContent('hi');
$div['class'][] = 'yellow';
$div['id'] = 'thing';
$div['style'] = 'display: block;
height: 100px;
background: linear-gradient(to bottom, red, blue) !important;';
echo $div;
print_r($div['class']);
$li = Element::withClasses('li', 'wild snowy blue');
$li['style']['display'] = 'block';
$li['style']['height'] = '100px';
$li['style']['background-color'] = 'blue !important';
echo $li;
print_r($li['class']);
$img = new Element('img');
$img['src'] = 'https://static.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg';
$img['width'] = '100%';
echo $img;