mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixed #7896
Handled the case where there is no picture and made it simpler to load a picture.
This commit is contained in:
parent
893b609111
commit
dc91c9490a
@ -65,12 +65,15 @@ if ($_POST['widgetkey']) {
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
if($user_settings['widgets'][$widgetkey] != null){?>
|
||||
<a href="/widgets/widgets/picture.widget.php?getpic=true&widgetkey=<?=$widgetkey?>" target="_blank">
|
||||
<img style="width:100%; height:100%" src="/widgets/widgets/picture.widget.php?getpic=true&widgetkey=<?=$widgetkey?>" alt="picture" />
|
||||
</a>
|
||||
|
||||
<?php } ?>
|
||||
<!-- close the body we're wrapped in and add a configuration-panel -->
|
||||
</div><div id="<?=$widget_panel_footer_id?>" class="panel-footer collapse">
|
||||
</div><div id="<?=$widget_panel_footer_id?>"
|
||||
<?php echo "class= " . "'" . "panel-footer". ($user_settings['widgets'][$widgetkey] != null ? " collapse": ""). "'"; ?>>
|
||||
|
||||
<form action="/widgets/widgets/picture.widget.php" method="post" enctype="multipart/form-data" class="form-horizontal">
|
||||
<input type="hidden" name="widgetkey" value="<?=$widgetkey; ?>">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user