|
8 | 8 | $dialog->append('a', null, [ |
9 | 9 | 'href' => 'mailto:editor@kvsun.com', |
10 | 10 | 'title' => 'Email' |
11 | | -])->append('img', null, [ |
12 | | - 'src' => 'images/octicons/svg/mail-read.svg', |
13 | | - 'alt' => 'Email', |
| 11 | +])->append('svg', null, [ |
14 | 12 | 'width' => 60, |
15 | 13 | 'height' => 60 |
16 | | -]); |
| 14 | +])->append('use', null, ['xlink:href' => 'images/icons.svg#mail-read']); |
17 | 15 | $dialog->append('a', null, [ |
18 | 16 | 'href' => 'https://gitter.im/KVSun/ad-insertion', |
19 | 17 | 'target' => '_blank', |
20 | 18 | 'title' => 'Chat on Gitter' |
21 | | -])->append('img', null, [ |
22 | | - 'src' => 'images/octicons/svg/comment.svg', |
23 | | - 'alt' => 'Gitter', |
| 19 | +])->append('svg', null, [ |
24 | 20 | 'width' => 60, |
25 | 21 | 'height' => 60 |
26 | | -]); |
| 22 | +])->append('use', null, ['xlink:href' => 'images/icons.svg#comment']); |
27 | 23 | $dialog->append('a', null, [ |
28 | 24 | 'href' => 'https://github.com/KVSun/ad-insertion/', |
29 | 25 | 'target' => '_blank', |
30 | 26 | 'title' => 'GitHub' |
31 | | -])->append('img', null, [ |
32 | | - 'src' => 'images/octicons/svg/mark-github.svg', |
33 | | - 'alt' => 'GitHub', |
| 27 | +])->append('svg', null, [ |
34 | 28 | 'width' => 60, |
35 | 29 | 'height' => 60 |
36 | | -]); |
| 30 | +])->append('use', null, ['xlink:href' => 'images/icons.svg#mark-github']); |
37 | 31 | $dialog->append('a', null, [ |
38 | 32 | 'href' => 'https://github.com/KVSun/ad-insertion/issues/new/', |
39 | 33 | 'target' => '_blank', |
40 | 34 | 'title' => 'Open Issue' |
41 | | -])->append('img', null, [ |
42 | | - 'src' => 'images/octicons/svg/issue-opened.svg', |
43 | | - 'alt' => 'Open Issue', |
| 35 | +])->append('svg', null, [ |
44 | 36 | 'width' => 60, |
45 | 37 | 'height' => 60 |
46 | | -]); |
| 38 | +])->append('use', null, ['xlink:href' => 'images/icons.svg#issue-opened']); |
0 commit comments