-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
42 lines (40 loc) · 1.24 KB
/
index.php
File metadata and controls
42 lines (40 loc) · 1.24 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
// Load file
require_once('embed.php');
// Create new embed object
$embed = new Embed('templates/pages/index.tpl');
if ($embed) {
// Call file with data
$embed->callFile([
'login' => false,
'title' => 'Hello World',
'brand' => 'My Website',
'content' => 'This is a test',
'items' => [
[
'name' => 'Item 1',
'img' => "https://picsum.photos/1000/750?1"
],
[
'name' => 'Item 2',
'img' => "https://picsum.photos/1000/750?2"
],
[
'name' => 'Item 3',
'img' => "https://picsum.photos/1000/750?3"
],
[
'name' => 'Item 4',
'img' => "https://picsum.photos/1000/750?4"
],
[
'name' => 'Item 5',
'img' => "https://picsum.photos/1000/750?5"
],
[
'name' => 'Item 6',
'img' => "https://picsum.photos/1000/750?6"
]
]
]);
}