source: trunk/Packages/FormManager/Types/Image.php

Last change on this file was 8, checked in by chronos, 18 months ago
  • Modified: Updated Common package.
  • Modified: Form types made as separate FormManager package.
  • Fixed: PHP 8.1 support.
File size: 212 bytes
Line 
1<?php
2
3class TypeImage extends TypeString
4{
5 function OnView(array $Item): ?string
6 {
7 global $System;
8
9 return '<img src="'.$System->Link('/images/favicons/'.$Item['Value']).'"/> '.$Item['Value'];
10 }
11}
Note: See TracBrowser for help on using the repository browser.