Commit c40b1824 authored by Ad Schellevis's avatar Ad Schellevis

spacing and cleanups in picture.widget.php

parent 569365fb
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
$nocsrf = true;
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
...@@ -69,8 +67,6 @@ if ($_POST) { ...@@ -69,8 +67,6 @@ if ($_POST) {
?> ?>
<input type="hidden" id="picture-config" name="picture-config" value="" />
<div id="picture-settings" class="widgetconfigdiv" style="display:none;"> <div id="picture-settings" class="widgetconfigdiv" style="display:none;">
<form action="/widgets/widgets/picture.widget.php" method="post" name="iforma" enctype="multipart/form-data"> <form action="/widgets/widgets/picture.widget.php" method="post" name="iforma" enctype="multipart/form-data">
<table class="table table-striped"> <table class="table table-striped">
...@@ -89,13 +85,13 @@ if ($_POST) { ...@@ -89,13 +85,13 @@ if ($_POST) {
</div> </div>
<!-- hide picture if none is defined in the configuration --> <!-- hide picture if none is defined in the configuration -->
<?php if ($config['widgets']['picturewidget_filename'] != "") : <?php
?> if ($config['widgets']['picturewidget_filename'] != "") :?>
<div id="picture-widgets" style="padding: 5px"> <div id="picture-widgets" style="padding: 5px">
<a href='/widgets/widgets/picture.widget.php?getpic=true' target='_blank'> <a href='/widgets/widgets/picture.widget.php?getpic=true' target='_blank'>
<img border="0" width="100%" height="100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" /> <img border="0" width="100%" height="100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" />
</a> </a>
</div> </div>
<?php <?php
endif ?> endif ?>
<!-- needed to show the settings widget icon --> <!-- needed to show the settings widget icon -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment