| 1 |
<?php |
| 2 |
|
| 3 |
namespace ResponsiveMenu\Form; |
| 4 |
use ResponsiveMenu\Models\Option as Option; |
| 5 |
use ResponsiveMenu\Form\FormComponent as FormComponent; |
| 6 |
|
| 7 |
class Image implements FormComponent |
| 8 |
{ |
| 9 |
|
| 10 |
public function render(Option $option) |
| 11 |
{ |
| 12 |
echo "<input |
| 13 |
type='text' |
| 14 |
class='image' |
| 15 |
id='{$option->getName()}' |
| 16 |
name='menu[{$option->getName()}]' |
| 17 |
value='{$option->getValue()}' /> |
| 18 |
<button |
| 19 |
type='button' |
| 20 |
class='button image_button' |
| 21 |
for='{$option->getName()}' |
| 22 |
/><i class='fa fa-upload'></i></button>"; |
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|