1 | <?php |
||
21 | class LogoLink extends Widget |
||
22 | { |
||
23 | /** |
||
24 | * @var array html options |
||
25 | */ |
||
26 | public $options = []; |
||
27 | |||
28 | /** |
||
29 | * @var string url to image |
||
30 | */ |
||
31 | public $image; |
||
32 | |||
33 | /** |
||
34 | * @var string text to display |
||
35 | */ |
||
36 | public $name; |
||
37 | |||
38 | /** |
||
39 | * @var array|string text to display |
||
40 | */ |
||
41 | public $url; |
||
42 | |||
43 | public $smallImage; |
||
44 | |||
45 | public $imageOptions = []; |
||
46 | |||
47 | public $smallImageOptions = []; |
||
48 | |||
49 | public function run() |
||
61 | |||
62 | private function isImage(): bool |
||
66 | |||
67 | private function isSmallImage(): bool |
||
71 | |||
72 | private function renderImage(string $image, array $imageOptions): string |
||
78 | |||
79 | protected function getImage($path) |
||
83 | } |
||
84 |