-
Notifications
You must be signed in to change notification settings - Fork 1
/
beatiful.php
29 lines (23 loc) · 952 Bytes
/
beatiful.php
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
<?PHP
require 'vendor/autoload.php';
$app = new \atk4\ui\App('Beautiful links');
$layout = $app->initLayout('Centered');
$view = $app->layout->add([
'View',
'LINK TO PHP FILE'
]);
$view->link(['4_2', 'id'=>123, 'name'=>'John']); //если не указывать куда, то ссылается сам на себя
$button1 = $app->layout->add(
['Button', 'LINK TO TEXT FILE','iconRight'=>'book']
);
$button1->link('4_text.txt');
$button1->addClass('mini red');
$button2 = $app->layout->add(['Button', 'LINK TO PDF FILE','iconRight'=>'student']);
$button2->link('4_pdf.pdf');
$button2->addClass('medium green');
$button3 = $app->layout->add(['Button', 'LINK TO FOTO','iconRight'=>'image']);
$button3->link('4_image.jpg');
$button3->addClass('big blue');
$button4 = $app->layout->add(['Button', 'LINK TO WEB-SITE','iconRight'=>'idea']);
$button4->link('https://semantic-ui.com/elements/icon.html');
$button4->addClass('massive pink');