split power out of the Panel box so that I can style it better

This commit is contained in:
Isaac Connor 2016-04-04 13:22:26 -04:00
parent f91ff4503a
commit 5f3e7134fb
1 changed files with 5 additions and 7 deletions

View File

@ -367,24 +367,22 @@ function ptzControls( $monitor )
echo controlIris( $monitor, $cmds );
if ( $monitor->CanWhite() )
echo controlWhite( $monitor, $cmds );
if ( $monitor->CanMove() || ( $monitor->CanWake() || $monitor->CanSleep() || $monitor->CanReset() ) )
{
if ( $monitor->CanMove() ) {
?>
<div class="pantiltPanel">
<?php
if ( $monitor->CanMove() )
echo controlPanTilt( $monitor, $cmds );
if ( $monitor->CanWake() || $monitor->CanSleep() || $monitor->CanReset() )
echo controlPower( $monitor, $cmds );
?>
</div>
<?php
}
if ( $monitor->CanWake() || $monitor->CanSleep() || $monitor->CanReset() )
echo controlPower( $monitor, $cmds );
if ( $monitor->HasPresets() )
echo controlPresets( $monitor, $cmds );
?>
</div>
<?php
if ( $monitor->HasPresets() )
echo controlPresets( $monitor, $cmds );
return( ob_get_clean() );
}
?>